Skip to content

Commit 7d888fc

Browse files
authored
Missing mandatory parameter in the Inspector's CLI command
Attempts to execute this command will fail: npx @modelcontextprotocol/inspector --cli http://127.0.0.1:8000 --transport http. The error indicates that --method is a mandatory parameter: "Method is required. Use --method to specify the method to invoke. Failed with exit code: 1". That's why the right command may look like this: npx @modelcontextprotocol/inspector --cli http://127.0.0.1:8000 --transport http --method tools/list.
1 parent c57dc78 commit 7d888fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ npx @modelcontextprotocol/inspector --cli node build/index.js --method prompts/l
303303
npx @modelcontextprotocol/inspector --cli https://my-mcp-server.example.com
304304

305305
# Connect to a remote MCP server (with Streamable HTTP transport)
306-
npx @modelcontextprotocol/inspector --cli https://my-mcp-server.example.com --transport http
306+
npx @modelcontextprotocol/inspector --cli https://my-mcp-server.example.com --transport http --method tools/list
307307

308308
# Call a tool on a remote server
309309
npx @modelcontextprotocol/inspector --cli https://my-mcp-server.example.com --method tools/call --tool-name remotetool --tool-arg param=value

0 commit comments

Comments
 (0)