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
99client /tsconfig.node.tsbuildinfo
1010cli /build
1111test-output
12+ # symlinked by `npm run link:sdk`:
13+ sdk
1214client /playwright-report /
1315client /results.json
1416client /test-results /
15-
Original file line number Diff line number Diff line change @@ -254,6 +254,12 @@ Development mode:
254254
255255``` bash
256256npm 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
257263```
258264
259265> ** Note for Windows users:**
Original file line number Diff line number Diff line change 2929 "clean" : " rimraf ./node_modules ./client/node_modules ./cli/node_modules ./build ./client/dist ./server/build ./cli/build ./package-lock.json && npm install" ,
3030 "dev" : " node client/bin/start.js --dev" ,
3131 "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" ,
3235 "start" : " node client/bin/start.js" ,
3336 "start-server" : " cd server && npm run start" ,
3437 "start-client" : " cd client && npm run preview" ,
You can’t perform that action at this time.
0 commit comments