diff --git a/modelcontextprotocol/README.md b/modelcontextprotocol/README.md index c573c672548ee..3a17837aa218b 100644 --- a/modelcontextprotocol/README.md +++ b/modelcontextprotocol/README.md @@ -39,6 +39,31 @@ If you're running MCP servers for your app, you'll likely want to use the [SSE i If your user `123` wants to connect to the `slack` MCP server, your MCP client would make a request to the `/123/slack` route. [See the SSE docs below](#sse) for more detail. +### Running the server via locally for development + +sse +```bash +npm run dev:sse +``` + +stdio +```bash +npm run dev:stdio +``` + +optionally you can add add the env var `PD_SDK_DEBUG=true` to the above commands to dump requests and responses to the Pipecream Connect API. + +sse +```bash +PD_SDK_DEBUG=true npm run dev:sse +``` + +stdio +```bash +PD_SDK_DEBUG=true npm run dev:stdio +``` + + ### Running the server via `npx` Pipedream MCP servers provide [two interfaces](https://modelcontextprotocol.io/docs/concepts/architecture#transport-layer) clients can connect to: diff --git a/modelcontextprotocol/package-lock.json b/modelcontextprotocol/package-lock.json index 69be4c7e36c75..de69d75845752 100644 --- a/modelcontextprotocol/package-lock.json +++ b/modelcontextprotocol/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.1", "dependencies": { "@modelcontextprotocol/sdk": "^1.7.0", - "@pipedream/sdk": "^1.4.0", + "@pipedream/sdk": "^1.5.2", "commander": "^13.1.0", "cors": "^2.8.5", "express": "^4.21.2", @@ -776,9 +776,9 @@ } }, "node_modules/@pipedream/sdk": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@pipedream/sdk/-/sdk-1.4.0.tgz", - "integrity": "sha512-mVjYoDF6MNOWMi+UjzAz7T8GgjHI1f9IrPFhfd0VH968QP9k1HtJDfEZFhfJf+hKxKFCT8XRE7npJAX8efr0uw==", + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/@pipedream/sdk/-/sdk-1.5.2.tgz", + "integrity": "sha512-E7t0swpugUqY1EXRnYP6aH0yiltCbLJwXJnt0NYebW2X1i7X+7qwMLZOoOeXJScpMaf0UlHTKiBGHG/cl0Q1dQ==", "dependencies": { "@rails/actioncable": "^8.0.0", "commander": "^12.1.0", diff --git a/modelcontextprotocol/package.json b/modelcontextprotocol/package.json index 66dcfc52f5859..220666f8c9163 100644 --- a/modelcontextprotocol/package.json +++ b/modelcontextprotocol/package.json @@ -7,8 +7,8 @@ "@pipedream/mcp": "./dist/src/cli.js" }, "scripts": { - "dev:stdio": "tsx watch src/stdio.ts", - "dev:sse": "tsx watch src/sse.ts", + "dev:stdio": "tsx watch -r dotenv/config src/stdio.ts", + "dev:sse": "tsx watch -r dotenv/config src/sse.ts", "start:stdio": "tsx src/cli.ts stdio", "start:sse": "tsx src/cli.ts sse", "start:stdio:app": "tsx src/cli.ts stdio --app", @@ -20,7 +20,7 @@ }, "dependencies": { "@modelcontextprotocol/sdk": "^1.7.0", - "@pipedream/sdk": "^1.4.0", + "@pipedream/sdk": "^1.5.2", "commander": "^13.1.0", "cors": "^2.8.5", "express": "^4.21.2",