{"id":"6e4b512d-2f5c-40c5-ac95-087529f178e3","slug":"mcp-leytonliu-leyton-library","name":"leyton-library","description":"OpenClaw agent: leyton-library","canonicalUrl":"https://www.xpersona.co/mcp/mcp-leytonliu-leyton-library","sourceUrl":"https://github.com/leytonliu/leyton-library","homepage":null,"source":"GITHUB_MCP","vendor":{"slug":"leytonliu","label":"Leytonliu","url":"https://github.com/leytonliu/leyton-library"},"protocols":["MCP"],"capabilities":["cli"],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"7.0.11","freshnessAt":"2026-02-22T13:01:30.650Z","freshnessLabel":"Feb 22, 2026","securityReviewed":true,"openapiReady":true,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"MCP"},{"label":"Freshness","value":"Feb 22, 2026"},{"label":"Vendor","value":"Leytonliu"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"7.0.11"}],"factsPreview":[{"factKey":"docs_crawl","category":"integration","label":"Crawlable docs","value":"6 indexed pages on the official domain","href":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceUrl":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceType":"search_document","confidence":"medium","observedAt":"2026-04-15T05:03:46.393Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"MCP","href":"https://www.xpersona.co/api/v1/agents/mcp-leytonliu-leyton-library/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/mcp-leytonliu-leyton-library/contract","sourceType":"contract","confidence":"high","observedAt":"2026-02-24T19:45:49.203Z","isPublic":true},{"factKey":"auth_modes","category":"compatibility","label":"Auth modes","value":"mcp, api_key","href":"https://www.xpersona.co/api/v1/agents/mcp-leytonliu-leyton-library/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/mcp-leytonliu-leyton-library/contract","sourceType":"contract","confidence":"high","observedAt":"2026-02-24T19:45:49.203Z","isPublic":true},{"factKey":"schema_refs","category":"artifact","label":"Machine-readable schemas","value":"OpenAPI or schema references published","href":"https://github.com/leytonliu/leyton-library#input","sourceUrl":"https://www.xpersona.co/api/v1/agents/mcp-leytonliu-leyton-library/contract","sourceType":"contract","confidence":"high","observedAt":"2026-02-24T19:45:49.203Z","isPublic":true},{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Leytonliu","href":"https://github.com/leytonliu/leyton-library","sourceUrl":"https://github.com/leytonliu/leyton-library","sourceType":"profile","confidence":"medium","observedAt":"2026-02-24T19:43:14.176Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/mcp-leytonliu-leyton-library/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/mcp-leytonliu-leyton-library/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["Schema refs published","Trust evidence available"],"agentCard":{"name":"leyton-library","description":"OpenClaw agent: leyton-library","source":"GITHUB_MCP","sourceId":"github-mcp:1053094519","repository":"https://github.com/leytonliu/leyton-library","documentation":"https://www.xpersona.co/mcp/mcp-leytonliu-leyton-library/agent/mcp-leytonliu-leyton-library","protocols":["MCP"],"capabilities":["cli"],"languages":["typescript"],"install":{"command":"git clone https://github.com/leytonliu/leyton-library.git","ecosystem":"git"},"examples":[{"kind":"example","language":"bash","snippet":"# 使用 npm\nnpm install leyton-library\n\n# 使用 pnpm\npnpm add leyton-library\n\n# 使用 yarn\nyarn add leyton-library"},{"kind":"example","language":"typescript","snippet":"import { sayHello, setupCounter, PromiseQueue, union, intersection, encodeBase64, E2EEncryption } from 'leyton-library';\n\n// 基础工具\nsayHello(); // 输出: Hello\n\n// DOM 操作\nconst button = document.querySelector('#counter') as HTMLButtonElement;\nsetupCounter(button);\n\n// 数组操作\nconst arr1 = [1, 2, 3];\nconst arr2 = [2, 3, 4];\nconsole.log(union(arr1, arr2)); // [1, 2, 3, 4]\nconsole.log(intersection(arr1, arr2)); // [2, 3]\n\n// Base64 编码\nconst encoded = encodeBase64('hello world'); // \"aGVsbG8gd29ybGQ=\"\n\n// Promise 队列\nconst queue = new PromiseQueue(2); // 最大并发数 2\nqueue.add(() => fetch('/api/data1'));\nqueue.add(() => fetch('/api/data2'));\n\n// 端到端加密\nconst alice = new E2EEncryption();\nconst bob = new E2EEncryption();\nawait alice.generateKeys();\nawait bob.generateKeys();\n\nconst message = 'Hello, this is a secret message!';\nconst encrypted = await alice.encrypt(message, bob.getPublicKey());\nconst decrypted = await bob.decrypt(encrypted);\nconsole.log(decrypted); // \"Hello, this is a secret message!\""}]}}