Repository navigation
Conversation
With frames.enabled on, the gateway mounts /frames/mcp, behind cross- origin protection, RequireAgentToken and a Frames cap check. Only a coding agent app's own live token whose template sets agentFrames gets through; anything else is refused before the broker or Frames is asked. The handler asks the broker for the token's person's Frames token and forwards the call; each broker error reaches the agent as its own text. The internal host pods call serves /frames/mcp as well as /api/. At start a background probe checks Frames is reachable without holding start. The local build mounts nothing. contracts.md gains the endpoint and the internal-host change, patterns.md names the new route on the internal host, and the plan's evidence, checkpoint review and deviations are updated.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice 22: Frames endpoint in the gateway
With Frames on, a coding agent's app token reaches
/frames/mcpon the gateway (including its internal host) and gets Frames' answer for its own person, using the broker's token, and anything else is refused.Spec: nebari-dev/tapas/docs/superpowers/specs/2026-11-30-frames-integration-design.md
Plan: nebari-dev/tapas/docs/superpowers/plans/2026-12-01-agent-tokens-and-frames.md (Slice 22)
Contracts touched: Gateway Frames endpoint
/frames/mcp, The internal host serves the Frames endpointDepends on: #85
/frames/mcp=CrossOriginProtection(RequireAgentToken(requireFramesCap(forwarder))): cookie 401; personal, job, shared-app, or non-Frames agent tokens 403 before any broker or Frames call./frames/mcp; a background start probe; nothing mounted in the local build.Reviewer notes:
-racerun fails in packages this PR does not touch (load-dependent races and timing; also at the base). CI runs without-race./frames/mcpis not refused by go-sdk's loopback Host check.Validation
go test -count=1 -race ./internal/gateway/... ./internal/cli/...-race: ok; Frames tests ok under-race; other packages' existing-racefailures noted abovemake test-local