{"id":28619673,"url":"https://github.com/moeru-ai/xsmcp","last_synced_at":"2025-06-12T04:41:17.958Z","repository":{"id":285875118,"uuid":"959629464","full_name":"moeru-ai/xsmcp","owner":"moeru-ai","description":"🤖📎 extra-small MCP SDK.","archived":false,"fork":false,"pushed_at":"2025-06-07T09:09:00.000Z","size":791,"stargazers_count":22,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T09:32:51.604Z","etag":null,"topics":["mcp","modelcontextprotocol","typescript","web-standards"],"latest_commit_sha":null,"homepage":"https://xsmcp.js.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moeru-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-03T05:15:01.000Z","updated_at":"2025-06-07T09:09:03.000Z","dependencies_parsed_at":"2025-04-03T06:31:03.654Z","dependency_job_id":"26acbe2a-3d84-49a7-a68f-05de3e101c33","html_url":"https://github.com/moeru-ai/xsmcp","commit_stats":null,"previous_names":["moeru-ai/xsmcp"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/moeru-ai/xsmcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeru-ai%2Fxsmcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeru-ai%2Fxsmcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeru-ai%2Fxsmcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeru-ai%2Fxsmcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moeru-ai","download_url":"https://codeload.github.com/moeru-ai/xsmcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeru-ai%2Fxsmcp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259400479,"owners_count":22851818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mcp","modelcontextprotocol","typescript","web-standards"],"created_at":"2025-06-12T04:40:55.890Z","updated_at":"2025-06-12T04:41:17.948Z","avatar_url":"https://github.com/moeru-ai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xsMCP\n\nextra-small MCP SDK for mcp builders hating bloat.\n\n## About\n\n\u003e 🚧 This project is under active development, stay tuned!\n\n### Why is there this project?\n\n[`@modelcontextprotocol/sdk` is large](https://pkg-sized.dev/@modelcontextprotocol/sdk) and has dependencies on libraries like `zod`, `express`, etc. that you probably don't even want to use.\n\nLike [xsAI](https://github.com/moeru-ai/xsai), xsMCP does not force you to use a particular server or schema library and is very small.\n\n### Roadmap\n\nOur current target is Streamable HTTP Client / Server, Stdio have lower priority.\n\n### Compatibility\n\nxsMCP v0.1 is targeted to be compatible with the `2025-03-26` revision and is not backward compatible.\n\n### HTTP Server Structure\n\n`@xsmcp/server-http` is based on [Web Standards](https://hono.dev/docs/concepts/web-standard), not Express.\n\n```ts\nimport { createFetch } from '@xsmcp/server-http'\nimport { createServer } from '@xsmcp/server-shared'\nimport { serve } from 'srvx'\n\nimport * as tools from '...'\n\nconst server = createServer({ ...options })\n\nfor (const tool of tools) {\n  server.addTool(tool)\n}\n\n// (req: Request) =\u003e Promise\u003cResponse\u003e\nconst fetch = createFetch(server)\n\n// node.js, deno, bun\nserve({ fetch })\n\n// cloudflare workers, pages\nexport default { fetch }\n```\n\nIt can be used as a server on its own or with `hono`, `elysia` and `itty-router` for more features:\n\n```ts\nimport { createFetch } from '@xsmcp/server-http'\nimport { createServer } from '@xsmcp/server-shared'\nimport { Elysia } from 'elysia'\nimport { Hono } from 'hono'\nimport { AutoRouter } from 'itty-router'\n\nimport * as tools from '...'\n\nconst server = createServer({ ...options })\n\nfor (const tool of tools) {\n  server.addTool(tool)\n}\n\nconst fetch = createFetch(server)\n\n// hono\nnew Hono()\n  .post('/mcp', ({ req }) =\u003e fetch(req.raw))\n\n// elysia\nnew Elysia()\n  .post('/mcp', ({ request }) =\u003e fetch(request))\n\n// itty-router\nAutoRouter()\n  .post('/mcp', req =\u003e fetch(req))\n```\n\nAt the same time, it does not depends on any server framework thus minimizing the size.\n\nFor simplicity reasons, this server only returns JSON Response, not SSE.\n\n## License\n\n[MIT](LICENSE.md)\n\n### Third Party Licenses\n\nThis project partially copies code from the following projects:\n\n| Project | License |\n| -- | -- |\n| [modelcontextprotocol/specification](https://github.com/modelcontextprotocol/specification) | [MIT](https://github.com/modelcontextprotocol/specification/blob/main/LICENSE) |\n| [modelcontextprotocol/servers](https://github.com/modelcontextprotocol/servers) | [MIT](https://github.com/modelcontextprotocol/servers/blob/main/LICENSE) |\n| [modelcontextprotocol/typescript-sdk](https://github.com/modelcontextprotocol/typescript-sdk) | [MIT](https://github.com/modelcontextprotocol/typescript-sdk/blob/main/LICENSE) |\n| [crouchcd/pkce-challenge](https://github.com/crouchcd/pkce-challenge) | [MIT](https://github.com/crouchcd/pkce-challenge/blob/master/LICENSE) |\n| [denoland/std](https://github.com/denoland/std) | [MIT](https://github.com/denoland/std/blob/main/LICENSE) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeru-ai%2Fxsmcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoeru-ai%2Fxsmcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeru-ai%2Fxsmcp/lists"}