You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move authorization orchestration out of the server #2530
About 1,300 lines of MCP authorization orchestration live in the server and reach the broker by type assertion, so broker changes also touch the server.
About 1,300 lines of MCP authorization orchestration (present, recheck, cancel) live in the server (internal/adapter/server/mcp_authorization.go), and the server reaches some broker features by interface assertion on the attachment (internal/adapter/server/mcp_broker.go, internal/adapter/server/workspace_enrollment.go). Move the orchestration behind the broker contract so the server only maps requests and responses.
Leave the session connector inventory (ListSessionMcpConnectors, internal/adapter/server/connector_status.go) behaving as it does now. #1699 extends it to direct mode and builds on this ticket, so keep the broker-side inventory behind a contract method #1699 can reuse (today mcpbroker.ConnectorInspector, internal/mcpbroker/connector.go) rather than a type assertion.
How it fits
Slice 4 (#2455) changes how the broker obtains credentials for gateway calls. If that logic is spread across the server, the change touches both; behind the contract, it stays inside the broker.
Done when
The server calls explicit contract methods instead of type assertions, and authorization behavior and its wire API are unchanged.
Activity