Skip to content

Commit cf5978c

Browse files
committed
Add stdio transport entry point for Claude Desktop
Claude Desktop uses stdio, not HTTP. Adds src/stdio.ts as a separate entry point alongside the existing HTTP server.
1 parent bdd69c2 commit cf5978c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

apps/mcp/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
"main": "dist/index.js",
77
"scripts": {
88
"dev": "tsx watch src/index.ts",
9+
"dev:stdio": "tsx src/stdio.ts",
910
"build": "tsc",
1011
"start": "node dist/index.js",
12+
"start:stdio": "node dist/stdio.js",
1113
"lint": "tsc --noEmit"
1214
},
1315
"keywords": ["mcp", "model-context-protocol", "generative-ui", "design-system"],

apps/mcp/src/stdio.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
2+
import { createMcpServer } from "./server.js";
3+
4+
const server = createMcpServer();
5+
const transport = new StdioServerTransport();
6+
await server.connect(transport);

0 commit comments

Comments
 (0)