diff --git a/docs/tools/inspector.mdx b/docs/tools/inspector.mdx index ace90b0..f6cdb2f 100644 --- a/docs/tools/inspector.mdx +++ b/docs/tools/inspector.mdx @@ -11,15 +11,63 @@ The [MCP Inspector](https://github.com/modelcontextprotocol/inspector) is an int The Inspector runs directly through `npx` without requiring installation: + ```bash -npx @modelcontextprotocol/inspector path/to/server.js +npx @modelcontextprotocol/inspector ``` -Pass arguments to your server after the path: ```bash -npx @modelcontextprotocol/inspector path/to/server.js arg1 arg2 +npx @modelcontextprotocol/inspector ``` +#### Inspecting servers from NPM or PyPi + +A common way to start server packages from [NPM](https://npmjs.com) or [PyPi](https://pypi.com). + + + + + ```bash + npx -y @modelcontextprotocol/inspector npx + # For example + npx -y @modelcontextprotocol/inspector npx server-postgres postgres://127.0.0.1/testdb + ``` + + + + ```bash + npx @modelcontextprotocol/inspector uvx + # For example + npx @modelcontextprotocol/inspector uvx mcp-server-git --repository ~/code/mcp/servers.git + ``` + + + +#### Inspecting locally developed servers + +To inspect servers locally developed or downloaded as a repository, the most common +way is: + + + + ```bash + npx @modelcontextprotocol/inspector node path/to/server/index.js args... + ``` + + + ```bash + npx @modelcontextprotocol/inspector \ + uv \ + --directory path/to/server \ + run \ + package-name \ + args... + ``` + + + +Please carefully read any attached README for the most accurate instructions. + ## Feature overview