Mapping a shared MCP platform onto Bedrock AgentCore

Bedrock AgentCore Gateway, Runtime, Identity and Observability cover each layer of a shared MCP platform. Verify per-tool authorization before you commit.

Chatis Santos · October 19, 2026 · 6 min read · For engineers

AgentCore has a component for each layer of the shared MCP platform I designed for Northfield Energy, which is why I recommended building on it. MCP here is the Model Context Protocol, the way Claude.ai, Cursor and the agents call tools. AgentCore Gateway can only be the front door if it can authorize per tool on the roles in a FusionAuth JWT and filter tools/list by those roles, and I could not confirm that from where I sat, so the plan puts a two-week spike in front of the build to find out with code. Nothing below is safe to build on until it has.

A caveat up front. I wrote this from what I and the model knew about AgentCore at the time, without re-reading the current docs. It went generally available in late 2025 and has added features quickly since, so read the current docs before you commit and treat each claim below as something to confirm.

Why AgentCore was in the frame

The platform team had already picked AgentCore for the agents they build, so the only question was whether the MCP layer lived beside it or inside it. I put it inside. That way an engineer in Claude.ai and an agent in production reach the same gateway with a FusionAuth token and get the same per-tool decision, where agents going straight to tools would mean a second authorization path and one of the two would drift.

The layer-by-layer mapping

Each layer of the design has an AgentCore component, and each component has one thing I'd check before trusting it.

Layer AgentCore component What it gives you Verify first
Gateway AgentCore Gateway One MCP endpoint. Targets are Lambda functions, OpenAPI and Smithy APIs and other MCP servers. Inbound JWT validation against a custom OpenID Connect (OIDC) issuer such as FusionAuth. Built-in semantic tool search Per-tool authorization on JWT claims, and whether it filters tools/list or only denies tools/call
Backend runtime AgentCore Runtime Serverless hosting for containerized MCP servers, per-session isolation, long-lived sessions Cold-start latency and cost at your call volume. Image size limits
Outbound auth AgentCore Identity Token vault, OAuth credential providers for Google and Salesforce, three-legged consent flow, workload identity for agents Whether FusionAuth-issued users map cleanly onto its user identity, and what consent looks like from inside Claude.ai
Audit AgentCore Observability OpenTelemetry traces and CloudWatch logs per tool call Whether the log carries the FusionAuth subject and roles rather than only a request ID

Every row has a fallback. Runtime falls back to ECS or Lambda. Identity falls back to a small token broker of your own. If the Observability log lacks the subject and roles, the targets can write that line from the forwarded claims. None of those change the architecture, and the first row's fallback is the only one that would make me swap the gateway out.

Gateway: one or a few

Both shapes are AgentCore Gateway with team-owned targets behind them. I went with two to four gateways, one per domain, to keep each tool list under roughly 40 tools. The comparison is in the five architectures article.

Per-tool authorization on Gateway

Whether AgentCore can make a per-tool decision from FusionAuth roles is the claim I couldn't confirm. Gateway validates the JWT for the whole endpoint, which answers "is this a Northfield engineer". The design needs a second decision per tool: may team-data call run_sql, and should eng-all even see it listed. There are three ways it could land, in the order I'd try them.

  1. AgentCore Policy. Cedar policies generated from each manifest's access block. This is the clean answer if Policy is generally available in your region and can filter tools/list per caller rather than only deny tools/call.
  2. A request interceptor. If Gateway exposes a hook on inbound requests, the same Cedar rules can run there.
  3. One gateway per access tier, each with its own FusionAuth application. Coarser than per tool, but it holds default deny.

If the policy layer only rejects calls, every engineer still sees every tool. Filtered tools/list is the goal. I'd rather learn in week one than month three that option 3 is where it lands.

Runtime for team-owned MCP servers

Teams with stateful or long-running tools need somewhere to host a real MCP server rather than a Lambda handler, and AgentCore Runtime is that place. The rule that goes with it is one execution role per target, scoped to that team's secrets prefix (/mcp/<team>/*). CI and IAM enforce that, since Runtime doesn't on its own.

The architecture doc also assumes Runtime hands the inbound JWT to the agent it hosts, so an agent acting for a person can present that person's token to the gateway (its intended audience) instead of its own. I'd verify that in the spike and weigh it against the design doc's alternative, where the agent keeps its own roles and carries the person as a separate claim. The gateway then authorizes on the intersection of the two.

Identity as the token vault

If you adopt AgentCore, Identity is the token vault and FusionAuth stays out of this part. FusionAuth answers "who is calling". Identity answers "with what credential does this tool reach Salesforce or Google".

Identity supports both modes, so service identity versus on-behalf-of (the tool acting as the signed-in user) is a per-target line in the manifest. Service identity uses a credential provider backed by a client-credentials grant, an API key or a Secrets Manager secret. On-behalf-of runs an authorization-code flow once per user and keeps the refresh token in the vault, and teams reference either kind of provider by name in the manifest.

The open question is the consent experience. When a tool first needs a user's Salesforce token, how does the consent link reach someone sitting in Claude.ai or Cursor? I'd prototype that with one tool before promising on-behalf-of to any team.

Observability and the gateway log

AgentCore Observability writes OpenTelemetry traces and CloudWatch logs per tool call. The design wants one structured line per call with subject, roles, gateway, tool, argument hash, decision, result status and latency, because the gateway log is the only one that spans every team and a request ID alone can't answer "who called what against Salesforce last Tuesday". That's the question security will ask first. So the line has to carry the FusionAuth subject and roles.

The verification list

These are the AgentCore claims I'd settle with running code before anyone builds on the platform. If the spike fails on the OAuth handshake, a thin proxy in front of the gateway fixes it and the architecture stands. If it fails on per-tool authorization, the fallback is coarser, and the exit is covered below.

  • Gateway serves /.well-known/oauth-protected-resource, so Claude.ai, Cursor and Claude Code find FusionAuth on their own. Fallback is a thin reverse proxy in front of each gateway.
  • AgentCore Policy can filter tools/list per caller and is generally available in your region. Fallback is a FusionAuth application per gateway.
  • Gateway forwards sub, email and roles to Lambda and MCP-server targets. In-tool checks and the audit log depend on it.
  • Gateway quotas: targets per gateway, tools per target, request and response size, timeout. These decide how many domain gateways you need.
  • Gateway accepts an MCP server hosted on Runtime as a target.
  • One FusionAuth sign-in covers several gateways, through resource indicators or per-gateway audiences. Both are workable, so this one only changes the onboarding doc.
  • The on-behalf-of consent link reaches a chat client.
  • Region availability and pricing for Gateway tool calls and Runtime session hours at your call volume.

That's about two weeks of work. The spike article covers how to run it and what the exit gate looks like. The ninth item on the spike list, Dynamic Client Registration, is a FusionAuth question rather than an AgentCore one, so it isn't here.

Keeping the exit open

I kept the lock-in boundary at the manifest and the policy format, both vendor-neutral. The gateway is an implementation detail behind them. If AgentCore Gateway can't authorize per tool and the fallback is too coarse for Northfield, a small proxy built with an MCP framework such as FastMCP, or an open-source MCP gateway, reads the same manifests and compiles the same Cedar or OPA (Open Policy Agent) rules. Teams' manifests and tool code shouldn't change. What you lose is the plumbing Gateway did for free, the target adapters and the outbound credential injection.

If you're deciding this

If your platform team already runs agents on AgentCore, I'd build the MCP layer on it and spend the first two weeks proving the per-tool authorization claim with code. If you're not on AgentCore yet, the same design works with a FastMCP proxy and a token broker, and I'd pick based on where your agents will run. In both cases, don't commit until the spike has filtered a tools/list by role with a real FusionAuth token from a real client.

More in this series

All articles in the series