Skip to content

run example http_server.rb with npx @modelcontextprotocol/inspector #141

@mmgreiner

Description

@mmgreiner

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions