[mcp] Add inspect script (#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). * #32932 * #32931 * #32930 * #32929 * __->__ #32928
lauren committed
Apr 16, 2025 at 17:48 UTC
35ab8ffef7b755c899d9e19d61277a4fceb760d1
1 file changed
+2
compiler/packages/react-mcp-server/package.json
+2
@@ -8,6 +8,8 @@
8
"scripts": {
9
"build": "rimraf dist && tsup",
10
"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",
13
"watch": "yarn build --watch"
14
},
15
"dependencies": {