Skip to content

Build the embedded gateway outside the MCP client #2919

Open

Description

@ChrisJBurns

Related: #2807 (the embedded gateway as its own deployment), #2422 (MCP broker cleanup), #2533, #2537

Depends on: #2728 (the MCP client reaches the gateway for calls and listing only through the gateway abstraction)

Problem

The code that builds the embedded gateway is part of the MCP client: the authorization server, AS-2, the vMCP, their handlers, and their lifecycle. So the client depends on ToolHive. Changes to the embedded gateway's configuration touch client code, and the embedded gateway can't become its own deployment without first being separated out.

Implements

Scope

Decide before starting

Workspace enrollment and AS-2 share one embedded authorization server and one issuer. The client's calls outside the gateway, and its query calls, also reach the vMCP at a URL derived from that issuer. Before starting, decide and write into this ticket's scope:

  • where the embedded gateway's construction lives;
  • whether calls outside the gateway and query calls move to the gateway abstraction here, or keep their issuer-derived endpoint until a later ticket names its remover.

Done when

  • The MCP client builds with no ToolHive import, and the boundary check fails if one is added back.
  • The existing embedded-gateway, enrollment, and call tests pass with the same assertions.
  • With the identity broker flag off, nothing changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions