ruby-sdk icon indicating copy to clipboard operation
ruby-sdk copied to clipboard

run example http_server.rb with npx @modelcontextprotocol/inspector

Open mmgreiner opened this issue 3 months ago • 0 comments

I am trying to run

$ rb example/http_server.rb

which works.

But I would like to check it with

$  npx @modelcontextprotocol/inspector

using url http://127.0.0.1:9292 and transport type SSH. Unfortunately, the connection always fails, even when I set the under the tab authentication the Json header to:

{
  "Mcp-Session-Id": “xxxx"
}

where xxxx is what I got from

curl -i http://localhost:9292 --json '{"jsonrpc":"2.0","method":"initialize","id":1,"params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}’`

questions

  • how do I have to configure modelcontextprotocol/inspector?
  • doesn’t the inspector itself do the necessary initialization?

suggestion

Could the documentation be enhanced to include a comment how to use the inspector for the examples?

mmgreiner avatar Sep 23 '25 03:09 mmgreiner