From 561ea9150437a746a1c1cb4c59c4f8e20489e8cb Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 25 Nov 2024 10:26:35 -0800 Subject: [PATCH] Skip the dist/index.js bit The `dist/index.js` bit is confusing. Running without that gives you a working web UI. --- README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8a6fa99..81c76b6 100644 --- a/README.md +++ b/README.md @@ -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