Skip to content

Unable to run the hello-world-mcp-server example #69

@m5p3nc3r

Description

@m5p3nc3r

Describe the bug
When trying to launch hello-world-mcp-server using npx -y @modelcontextprotocol/inspector ./target/release/hello-world-mcp-server, I am unable to connect to the server

I get an error message in the inspector saying 'Server started successfully', so to me it looks like a protocol error between the server and the inspector?

What are you using rust-mcp-sdk for?
Select all that apply:

  • Developing a MCP Server
  • Developing a MCP Client

Technical details:

  • rust-mcp-sdk Version : .0.4.7
  • Cargo features enabled for rust-mcp-sdk : "server","macros","hyper-server","ssl","2025_03_26"
  • Environment/OS (Mac, Linux, Windows, etc) : WSL2 (Ubuntu 24.04)

To Reproduce
Steps to reproduce the behavior:

  1. Download the git repo @ 42292f9
  2. Follow the instructions in the example readme.

Expected behavior
I can connect to the server and exercise the available tools

Screenshots

Image

Additional context
The terminal output when attempting to connect to the server is:

New STDIO connection request
Query parameters: {"command":"./target/release/hello-world-mcp-server","args":"","env":"{\"HOME\":\"/home/matt\",\"LOGNAME\":\"matt\",\"PATH\":__REDACTED__,\"SHELL\":\"/bin/bash\",\"TERM\":\"xterm-256color\",\"USER\":\"matt\"}","transportType":"stdio"}
STDIO transport: command=./target/release/hello-world-mcp-server, args=
Created server transport
Created client transport
Received POST message for sessionId 637b4e8c-738d-4912-a8fe-ccc87d385b29

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions