Skip to content

RFC: vMCP Core Interface — Splitting Domain Logic from Transport#76

Merged
tgrunnagle merged 1 commit into
mainfrom
rfc/thv-XXXX-vmcp-core-interface
Jun 2, 2026
Merged

RFC: vMCP Core Interface — Splitting Domain Logic from Transport#76
tgrunnagle merged 1 commit into
mainfrom
rfc/thv-XXXX-vmcp-core-interface

Conversation

@tgrunnagle

Copy link
Copy Markdown
Contributor

Summary

Proposes extracting a small, identity-parameterized VMCP domain interface from the Virtual MCP Server, paired with New(cfg) -> VMCP to construct the core and Serve(ctx, VMCP, serverCfg) -> *Server to stand up the transport. Embedders can wrap the core with their own decorators to augment behavior — without reimplementing aggregation/routing/composition, and without coupling to the mcp-go SDK lifecycle, the HTTP middleware chain, or request-context contracts. The existing server.New(...) entry point is preserved as a thin wrapper over Serve(ctx, New(cfg), serverCfg), so current embedders are unaffected.

Key points

  • Minimal VMCP interface exposing the MCP capability surface (list/call tools, list/read resources, list/get prompts, lookup) with identity as an explicit parameter — removing the auth.IdentityFromContext coupling on the domain path.
  • New relocates (not rewrites) the collaborator wiring server.New does today; Serve owns all transport concerns (mcp-go, middleware chain, embedded AS, status, telemetry, health).
  • Decoration is the supported domain-extension mechanism; list and call share one source of truth so a decorator cannot drift or widen access.
  • No change to serialized config, CRD/YAML, data model, or incoming/outgoing auth strategies. server.New signature stays stable throughout; the split lands behind it across small, sequenced PRs.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tgrunnagle tgrunnagle force-pushed the rfc/thv-XXXX-vmcp-core-interface branch from cfadb11 to 0ca43f7 Compare June 2, 2026 15:04
@tgrunnagle tgrunnagle requested review from JAORMX and jerm-dro June 2, 2026 15:05

@jerm-dro jerm-dro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Let 'er rip!

Comment thread rfcs/THV-0076-vmcp-core-interface.md
@tgrunnagle tgrunnagle merged commit 2ba17ae into main Jun 2, 2026
1 check passed
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.

3 participants