Skip to content

fix(examples): serve the example MCP servers over stateless MCP 2026-07-28 - #325

Merged
edenreich merged 2 commits into
mainfrom
fix/example-mcp-servers-stateless
Nov 8, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/example-mcp-servers-stateless

Conversation

@edenreich

@edenreich edenreich commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Both example MCP servers, examples/orchestrator/mcp-server-time and examples/mcp-server/mcp-memory-server, move from metoro-io/mcp-golang to the official MCP Go SDK (v1.8.0) with a stateless Streamable HTTP handler. They now speak MCP 2026-07-28, the revision the Gateway and the infer CLI speak, so both connect to them again.

  • The tools, their arguments, the ports, the paths and the Dockerfiles stay the same.
  • Required arguments are declared in each tool's schema, so the hand-written required checks are gone. memory_get and memory_delete share one argument type.
  • The servers run an http.Server with a read-header timeout instead of a bare listener.
  • 06-mcps.yaml, examples/mcp-server/mcp.yaml, the three example READMEs and the root README name the official SDK and the protocol revision instead of claiming the Gateway's client uses mcp-golang.
  • The memory server's in-cluster tools/list check sends the 2026-07-28 headers and _meta each request carries.

Closes #323

Verification

  • infer mcp status (infer v0.249.0) against both servers running locally: 2/2 connected with all 6 tools. Before, the same check failed with server/discover: ... EOF.
  • Raw 2026-07-28 tools/call requests returned correct results for convert_time, memory_set and memory_list.
  • Both Docker images build, and the README's exact tools/list command returned all four memory tools from the container.
  • No reference to mcp-golang is left in the repository.

The Gateway was not run against them. Its README requires the same 2026-07-28 servers.

Behavior change

An empty string for key or to_timezone is now accepted rather than refused. The schema requires the argument to be present, not non-empty. An empty to_timezone converts to UTC.

Cross-repo impact

…07-28

The example MCP servers were built on metoro-io/mcp-golang, which speaks
the legacy stateful protocol. The Gateway and the infer CLI only speak
MCP 2026-07-28 and open with server/discover, so neither connected to
them.

Both servers now run on the official MCP Go SDK with a stateless
Streamable HTTP handler and keep their tools, ports and paths. The
example docs name the SDK and the protocol revision, and the memory
server's curl check sends the 2026-07-28 headers.

Closes #323
@edenreich
edenreich requested a review from a team as a code owner November 8, 2026 21:13
@edenreich
edenreich merged commit 6d34978 into main Nov 8, 2026
1 check passed
@edenreich
edenreich deleted the fix/example-mcp-servers-stateless branch November 8, 2026 21:47
inference-gateway-releaser Bot added a commit that referenced this pull request Nov 8, 2026
## [0.33.0](v0.32.0...v0.33.0) (2026-11-08)

### ✨ Features

* **gateway:** tune MCP health polling with spec.mcp.healthCheck ([#328](#328)) ([ff0867c](ff0867c))
* **orchestrator:** give spec.mcp.servers names and headers in the pod's mcp.yaml ([#324](#324)) ([56f4ff8](56f4ff8)), closes [#321](#321)
* **orchestrator:** pass through binding Service annotations and labels ([#320](#320)) ([d543db8](d543db8))

### ♻️ Improvements

* **orchestrator:** export the status contract from api/v1alpha1 ([#330](#330)) ([4b5d854](4b5d854))

### 🐛 Bug Fixes

* **examples:** serve the example MCP servers over stateless MCP 2026-07-28 ([#325](#325)) ([6d34978](6d34978)), closes [#323](#323)
* **samples:** make the Gateway and MCP samples pass CRD validation ([#329](#329)) ([e2e5d2a](e2e5d2a))

### 👷 CI

* **deps:** bump the gomod group with 4 updates ([#319](#319)) ([67f1bde](67f1bde))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.33.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant