[mcp] Add inspect script

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.
This commit is contained in:
Lauren Tan
2025-04-16 17:39:42 -04:00
parent 68013725ac
commit cc8c8716d1
@@ -8,6 +8,8 @@
"scripts": {
"build": "rimraf dist && tsup",
"test": "echo 'no tests'",
"dev": "concurrently --kill-others -n build,inspect \"yarn run watch\" \"wait-on dist/index.js && yarn run inspect\"",
"inspect": "npx @modelcontextprotocol/inspector node dist/index.js",
"watch": "yarn build --watch"
},
"dependencies": {