Skip to content

Commit 35ab8ff

Browse files
authored
[mcp] Add inspect script (facebook#32928)
Uses https://github.com/modelcontextprotocol/inspector to inspect and debug the mcp server. `yarn workspace react-mcp-server dev` will build the server in watch mode and launch the inspector. Default address is http://127.0.0.1:6274. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32928). * facebook#32932 * facebook#32931 * facebook#32930 * facebook#32929 * __->__ facebook#32928
1 parent 6801372 commit 35ab8ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/packages/react-mcp-server/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"scripts": {
99
"build": "rimraf dist && tsup",
1010
"test": "echo 'no tests'",
11+
"dev": "concurrently --kill-others -n build,inspect \"yarn run watch\" \"wait-on dist/index.js && yarn run inspect\"",
12+
"inspect": "npx @modelcontextprotocol/inspector node dist/index.js",
1113
"watch": "yarn build --watch"
1214
},
1315
"dependencies": {

0 commit comments

Comments
 (0)