Skip to content

Commit ec25747

Browse files
committed
bump sdk version, update readme
1 parent 9dbabea commit ec25747

File tree

4 files changed

+33
-8
lines changed

4 files changed

+33
-8
lines changed

modelcontextprotocol/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,31 @@ If you're running MCP servers for your app, you'll likely want to use the [SSE i
3939

4040
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.
4141

42+
### Running the server via locally for development
43+
44+
sse
45+
```bash
46+
npm run dev:sse
47+
```
48+
49+
stdio
50+
```bash
51+
npm run dev:stdio
52+
```
53+
54+
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.
55+
56+
sse
57+
```bash
58+
PD_SDK_DEBUG=true npm run dev:sse
59+
```
60+
61+
stdio
62+
```bash
63+
PD_SDK_DEBUG=true npm run dev:stdio
64+
```
65+
66+
4267
### Running the server via `npx`
4368

4469
Pipedream MCP servers provide [two interfaces](https://modelcontextprotocol.io/docs/concepts/architecture#transport-layer) clients can connect to:

modelcontextprotocol/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modelcontextprotocol/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"@pipedream/mcp": "./dist/src/cli.js"
88
},
99
"scripts": {
10-
"dev:stdio": "tsx watch src/stdio.ts",
11-
"dev:sse": "tsx watch src/sse.ts",
10+
"dev:stdio": "tsx watch -r dotenv/config src/stdio.ts",
11+
"dev:sse": "tsx watch -r dotenv/config src/sse.ts",
1212
"start:stdio": "tsx src/cli.ts stdio",
1313
"start:sse": "tsx src/cli.ts sse",
1414
"start:stdio:app": "tsx src/cli.ts stdio --app",
@@ -20,7 +20,7 @@
2020
},
2121
"dependencies": {
2222
"@modelcontextprotocol/sdk": "^1.7.0",
23-
"@pipedream/sdk": "^1.4.0",
23+
"@pipedream/sdk": "^1.5.2",
2424
"commander": "^13.1.0",
2525
"cors": "^2.8.5",
2626
"express": "^4.21.2",

modelcontextprotocol/src/sse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export async function main(appName?: string, portOption?: string) {
160160
})
161161

162162
app
163-
.listen(port, () => {
163+
.listen(port,"0.0.0.0", () => {
164164
console.log(`Server is running on port ${port}`)
165165
console.log("Routes configured:")
166166
console.log("- GET / - Health check")

0 commit comments

Comments
 (0)