Maple

Field Notes, October 29, 2026

AgentCore Gateway and the 20-MCP-server problem

MoEngage had roughly 400 private APIs and the option of 20-plus MCP servers. It chose one platform-owned gateway instead, and the reasoning applies to any team exposing internal APIs to agents.

The first MCP decision is who does not write MCP

When teams start exposing internal APIs to agents, the default path is for each team to stand up its own MCP server. AWS's write-up of how MoEngage turned over 400 APIs into agent tools with AgentCore Gateway is a good argument for skipping that path. MoEngage runs roughly 400 internal REST APIs, built by 25 engineering teams, in private VPCs across seven AWS Regions, isolated for data residency and never exposed to the public internet.

MoEngage costed out per-team MCP servers and rejected the idea. Over 20 servers meant over 20 deployments to monitor, patch and keep compatible as MCP evolves. Cross-domain agents, the useful ones that read a campaign, check its segment and inspect delivery stats, would have to connect to several servers and reconcile them. And every team would need MCP expertise unrelated to its product. So the rule became: product teams build REST APIs and declare which operations should be tools, and the AI Platform team owns the MCP layer. In MoEngage's words, "A team's responsibility ends at a well-described OpenAPI spec."

That is the right default for most mid-market orgs. The fewer platform engineers you have, the stronger the argument.

Three options, not two

The choice is not just 20 servers versus one gateway. MoEngage also considered a custom central MCP server. That solves server sprawl but leaves you building a tool-generation pipeline, a policy format, a tool-alias registry for renames and circuit breakers, all owned by one team.

AgentCore Gateway is a fully managed MCP server. You register OpenAPI specs as targets, it generates MCP tools from them (named in the form Target___operationId) and routes calls to the backing services. When a spec changes, the tool changes. If your APIs already live in AWS VPCs, that removes most of the undifferentiated work. If they do not, a custom central server is still a better answer than one server per team.

Authorization before the catalog is sent

The most transferable detail is how tool visibility is enforced. The AgentCore policy engine evaluates Cedar policies and filters the tools/list response per principal before it is built. Each agent authenticates as its own IAM role. MoEngage's campaign QA bot gets read access to campaign and segment tools, and it never sees write tools at all, because they are not sent.

This matters for two reasons. Client-side filtering is not an authorization boundary, since the full catalog has already crossed the wire. And context is finite: at roughly 50 tokens of schema per tool, a full 400-tool catalog is over 20,000 tokens on every connection. MoEngage goes further and exposes a single search_tools meta-tool to the model, using the gateway's semantic search, so only relevant candidates enter context.

Identity gets the same treatment. Tenant, user, role and database context travel as headers set by the calling service, not as tool arguments, so the model cannot see or change them. Copy that rule even if you never touch AWS.

Networking once, not per API

Inbound, the gateway is reachable only through a VPC interface endpoint with private DNS. Outbound, it reaches internal services through AgentCore managed egress over Amazon VPC Lattice. Onboarding a new API adds a target, not a network change. That is what removed the per-Region, per-integration networking work that would otherwise have been multiplied across seven Regions.

Where this fits in a larger platform

A day earlier, AWS published a reference architecture for an agentic AI platform on Bedrock AgentCore that puts this pattern in context. It separates inference and tool access into distinct gateways. The inference gateway applies guardrails, restricts which models and Regions each workstream can use, and enforces per-workstream rate limits, token quotas and budgets. Tool access goes through an authenticated MCP gateway with exact targets and least-privilege roles. Each workstream cell gets its own AgentCore Runtime, Memory and Gateway, so a failure or rollback stays inside one team's boundary.

Read together, "one gateway" means one team owns the MCP layer and its policy model, not necessarily one gateway instance for the whole company.

How to read the results

MoEngage reports the system has run in production for three months, serving roughly 400 registered operations to 10 internal agents. It estimates the approach saved about six months of engineering effort, and says onboarding a new API now takes hours of spec annotation instead of days of networking and security review. Those are MoEngage's own estimates in a post co-written with AWS. The architectural reasoning holds regardless of the exact number.

Two smaller choices are worth stealing. Tool exposure is explicit opt-in per operation in the spec, so cache-warmup and migration routes never become tools by accident. And tool descriptions are written separately from API docs, because MoEngage found models picked tools poorly when given developer-facing descriptions.

Decide who owns the MCP layer before the third team ships its own server, because after that you are consolidating instead of designing.