File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ client/tsconfig.app.tsbuildinfo
9
9
client /tsconfig.node.tsbuildinfo
10
10
cli /build
11
11
test-output
12
+ # symlinked by `npm run link:sdk`:
13
+ sdk
12
14
client /playwright-report /
13
15
client /results.json
14
16
client /test-results /
15
-
Original file line number Diff line number Diff line change @@ -254,6 +254,12 @@ Development mode:
254
254
255
255
``` bash
256
256
npm run dev
257
+
258
+ # To co-develop with the typescript-sdk package (assuming it's cloned in ../typescript-sdk; set MCP_SDK otherwise):
259
+ npm run dev:sdk " cd sdk && npm run examples:simple-server:w"
260
+ # then open http://localhost:3000/mcp as SHTTP in the inspector.
261
+ # To go back to the deployed SDK version:
262
+ # npm run unlink:sdk && npm i
257
263
```
258
264
259
265
> ** Note for Windows users:**
Original file line number Diff line number Diff line change 29
29
"clean" : " rimraf ./node_modules ./client/node_modules ./cli/node_modules ./build ./client/dist ./server/build ./cli/build ./package-lock.json && npm install" ,
30
30
"dev" : " node client/bin/start.js --dev" ,
31
31
"dev:windows" : " node client/bin/start.js --dev" ,
32
+ "dev:sdk" : " npm run link:sdk && concurrently \" npm run dev\" \" cd sdk && npm run build:esm:w\" " ,
33
+ "link:sdk" : " (test -d sdk || ln -sf ${MCP_SDK:-$PWD/../typescript-sdk} sdk) && (cd sdk && npm link && (test -d node_modules || npm i)) && npm link @modelcontextprotocol/sdk" ,
34
+ "unlink:sdk" : " (cd sdk && npm unlink -g) && rm sdk && npm unlink @modelcontextprotocol/sdk" ,
32
35
"start" : " node client/bin/start.js" ,
33
36
"start-server" : " cd server && npm run start" ,
34
37
"start-client" : " cd client && npm run preview" ,
You can’t perform that action at this time.
0 commit comments