Skip the dist/index.js bit

The `dist/index.js` bit is confusing. Running without that gives you a working web UI.
This commit is contained in:
Simon Willison
2024-11-25 10:26:35 -08:00
committed by GitHub
parent 7c2be8d139
commit 561ea91504

View File

@@ -2,17 +2,12 @@
The MCP inspector is a developer tool for testing and debugging MCP servers.
It can be run easily from `npx`. For example, in a folder where there's a built JavaScript server at `build/index.js`:
It can be run easily from `npx`:
```
npx @modelcontextprotocol/inspector build/index.js
```
You can also pass arguments along to the server:
```
npx @modelcontextprotocol/inspector build/index.js arg1 arg2 ...
npx @modelcontextprotocol/inspector
```
This starts a localhost web server on port 5173. You can then visit http://localhost:5173/ to interact with the tool.
## License