Skip to content

[BUG] Example MCP servers don't speak MCP 2026-07-28, so neither the Gateway nor infer connects to them #323

Closed

Description

@edenreich

Summary

Both example MCP servers, examples/orchestrator/mcp-server-time and examples/mcp-server/mcp-memory-server, are built on github.com/metoro-io/mcp-golang v0.16.1, which does not speak MCP 2026-07-28. The Gateway and the infer CLI speak only 2026-07-28, where every request carries its protocol version and client capabilities in _meta and the MCP-Protocol-Version header (the Gateway README says the servers in MCP_SERVERS must speak 2026-07-28). The example servers close the connection on these requests, so nothing in the examples gets an MCP tool.

06-mcps.yaml still says the servers use "the same metoro-io/mcp-golang library that the inference-gateway uses on its client side", which is no longer true.

Found while verifying #321 on a k3d cluster. The orchestrator pod rendered and mounted mcp.yaml correctly, but could not connect mcp-server-time. The same check with a server built on github.com/modelcontextprotocol/go-sdk (a stateless Streamable HTTP handler, as in inference-gateway/cli examples/mcp/mcp-server) connected with all its tools.

Steps to Reproduce

  1. Build and import the example server: docker build -t mcp-server-time:dev examples/orchestrator/mcp-server-time and k3d image import mcp-server-time:dev.
  2. Apply an MCP CR running it and an Orchestrator with ghcr.io/inference-gateway/cli:latest (infer v0.249.0) whose spec.mcp reaches it, through serviceDiscovery or a static server.
  3. Run kubectl exec deploy/<orchestrator> -- infer mcp status.

Expected Behavior

The server is connected and its tools are listed, as examples/orchestrator/README.md and examples/mcp-server/README.md describe.

Actual Behavior

MCP 0/1
| x | mcp-time-hosted | 0 | server/discover: Post "http://mcp-time-hosted-service.demo.svc.cluster.local:8080/mcp": EOF |

The Gateway's MCP discovery of the same servers fails the same way.

A fix moves both servers to github.com/modelcontextprotocol/go-sdk with a stateless Streamable HTTP handler, keeps their tools and ports, and corrects the comments in 06-mcps.yaml and the example READMEs.

Activity

  1. added
    bug
    on Nov 8, 2026
  2. added theissue type on Nov 8, 2026
  3. moved this to Todo in 2026on Nov 8, 2026
  4. moved this from Todo to In progress in 2026on Nov 8, 2026
  5. moved this from In progress to QA in 2026on Nov 8, 2026
  6. changed the title [-][BUG] Example MCP servers speak the legacy protocol, so neither the Gateway nor infer connects to them[/-] [+][BUG] Example MCP servers don't speak MCP 2026-07-28, so neither the Gateway nor infer connects to them[/+] on Nov 8, 2026
  7. moved this from QA to Done in 2026on Nov 8, 2026
  8. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.33.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions