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
Commit 57b3d8c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(box): give no MCP route to a project gateway with only HTTP targets (#2971)
On AgentCore Runtime, build routes each other gateway of a Box project to the boxed agent as
`[mcp.<gateway>]`. Box parses each POST to that host as an MCP message, so a POST to an HTTP
target of the gateway (`passthrough` or `httpRuntime`) was refused with "MCP frame refused",
while a GET passed. `add gateway` writes `protocolType: "None"` by default, so the default
gateway with a passthrough target hit this.
- **Which gateways get a route.** `unroutedReason` is the one rule: a Box gateway, a
`CUSTOM_JWT` gateway, and now a gateway whose targets are all HTTP targets get none.
A gateway with no target yet, with MCP targets only, or with both kinds keeps its route,
whatever its protocolType. A passthrough target with `protocolType: "MCP"` counts as HTTP:
a chain of gateways that ends at an MCP server is out of scope.
- **Notices, at the write.** `add gateway-target` gives a notice when it adds an HTTP target,
`remove gateway-target` when the gateway is left with only HTTP targets (a new `notices`
field on the removal result, printed as a warning and shown in the TUI), and `add runtime`
for each gateway with HTTP targets. Each only when a boxed runtime that is not PRIVATE_VPC
exists. A gateway with both kinds is told that its HTTP targets are not supported yet.
- **CUSTOM_JWT with only HTTP targets** gets one notice, which no longer says that AWS_IAM
would give it a route.
- **Rebuild.** Build removes the `egress-gateway-<name>` target of such a gateway, and the step
now says why.
- **Text.** The UNSIGNABLE_HOST reason, the gateway rule's doc table, and
docs/box-local-testing.md say which gateways get a route.
A boxed agent still cannot POST to the HTTP targets of a gateway that also has MCP targets.
Routing HTTP targets through an `[egress]` route is a follow-up.
Co-authored-by: Abhilash Panigrahi <pabhila@amazon.com>
0 commit comments