Add inspector package script

This commit is contained in:
Justin Spahr-Summers 2024-11-20 14:42:35 +00:00
commit 4d2668721f
No known key found for this signature in database

View file

@ -61,10 +61,10 @@ On Windows: `%APPDATA%/Claude/claude_desktop_config.json`
### Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector):
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a package script:
```bash
npx @modelcontextprotocol/inspector /path/to/<%= name %>/build/index.js
npm run inspector
```
The Inspector will provide a URL to access debugging tools in your browser.