Skip to content

gateway/mcp: swappable Resolver + mountable JSON-RPC HTTP handler#3331

Merged
asim merged 3 commits into
masterfrom
feat/mcp-gateway-resolver
Jun 29, 2026
Merged

gateway/mcp: swappable Resolver + mountable JSON-RPC HTTP handler#3331
asim merged 3 commits into
masterfrom
feat/mcp-gateway-resolver

Conversation

@asim

@asim asim commented Jun 29, 2026

Copy link
Copy Markdown
Member

Separates the MCP protocol/transport (the gateway's job) from what tools exist and how they execute (the product's job).

  • interface with (register tools explicitly, execute via your own logic) and (auto-discover go-micro services via the proven ). Neither exposes the internal store/broker tools.
  • serving standard MCP JSON-RPC 2.0 over HTTP (///) — mountable on your own mux (e.g. ), so the library serves the protocol while the product keeps its routes, auth/metering and its own docs page.

Additive: the existing /REST path and tests are untouched. Motivation: dogfooding mu on go-micro — a product wants to expose its full tool set (services and non-services) over a mounted MCP endpoint without the gateway exposing raw store/broker internals.


Generated by Claude Code

asim added 3 commits June 29, 2026 07:03
Adds a Resolver interface (Manual/Registry) so the tool source is
pluggable, and NewHandler(resolver) serving standard MCP JSON-RPC over
HTTP as an http.Handler you can mount on your own server. Neither
resolver exposes the internal store/broker tools. Additive — the
existing Serve() path is unchanged.
Adds a Resolver interface (Manual/Registry) so the tool source is
pluggable, and NewHandler(resolver) serving standard MCP JSON-RPC over
HTTP as an http.Handler you can mount on your own server. Neither
resolver exposes the internal store/broker tools. Additive — the
existing Serve() path is unchanged.
Adds a Resolver interface (Manual/Registry) so the tool source is
pluggable, and NewHandler(resolver) serving standard MCP JSON-RPC over
HTTP as an http.Handler you can mount on your own server. Neither
resolver exposes the internal store/broker tools. Additive — the
existing Serve() path is unchanged.
@asim asim merged commit 5939783 into master Jun 29, 2026
This was referenced Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant