Self-service MCP launches with a registry repo and CI
How a self-service MCP registry ships a new MCP: a team merges one PR, CI validates the manifest, lints policy and deploys, with no platform-team ticket.
Chatis Santos · October 19, 2026 · 6 min read · For engineers and leaders
A team at Northfield Energy ships a new MCP server by merging one pull request in the registry repo. CI validates the manifest, lints it against policy, builds and deploys the backend and registers the tools with the gateway, the one MCP (Model Context Protocol) endpoint engineers connect to from Claude.ai, Claude Code and Cursor, and the platform team, which owns the manifest schema and the guardrails, is not an approver on any of it. The only extra approval is a security reviewer. That happens when a tool that writes or returns customer PII (personally identifiable information) is opened to every engineer.
Why the launch path gets its own design
The rule is that a merged PR is the only way a tool, its access list or its credentials change in production. Northfield's ask folded where tools run, who may call what and how a team ships without a platform-team step into one request. You can have a good gateway and a clean FusionAuth setup (the identity server that turns a Google sign-in into a token carrying team roles) and still end up with a ticket queue if a platform engineer has to click something for each new tool.
With the rule in place, every guardrail lives in CI or in the gateway, where it runs on every change. What the platform team reviews is the rule set. It changes rarely.
Sizing is about a month for the registry, schema, template and CI, after the two-week spike on the FusionAuth and gateway questions, with one platform engineer on it.
One repo, one directory per MCP
I recommended a monorepo, northfield-mcp, with a directory per MCP and a CODEOWNERS file that routes review.
northfield-mcp/
mcps/
data-warehouse/
manifest.yaml
src/ # Lambda handler or MCP server
tests/
salesforce-ops/
manifest.yaml
src/
teams.yaml # team -> members, synced to FusionAuth groups
platform/ # CDK: reads manifests, creates gateways, targets, policies, credential providers
CODEOWNERS # mcps/data-warehouse/ -> @northfield/team-data; platform/, teams.yaml, schema -> @northfield/platform
CODEOWNERS does most of the governance work. The data team owns mcps/data-warehouse/ and approves its own changes. The platform/ directory, teams.yaml and the schema belong to the platform team, so a change to the rules gets platform review and a change to a tool doesn't. Team membership lives in teams.yaml and syncs to FusionAuth groups on merge, which makes joining or leaving a team a PR as well.
I went with one repo over a repo per team because a launch is then one PR instead of two (code repo, then registry), and the CI, the template and the policy lint stay shared instead of drifting per team. The escape hatch for a team that already has a repo is a manifest that points at an externally built image, or a manifest plus a build artifact in a registry bucket the same reconciler reads. I'd write down that this path exists and not build it until a team asks.
What a team declares in the manifest
The manifest is the only file a team has to get right to ship. It names the MCP, the owner, the gateway it lands on, how the target runs, which credentials it references and who may call each tool.
name: data-warehouse
owner: team-data
gateway: mcp-data
description: Query the analytics warehouse
target:
type: lambda # lambda | mcp-server | openapi
runtime: python3.12
entry: src/handler.py
credentials:
- name: warehouse
secret: arn:aws:secretsmanager:...:/mcp/team-data/warehouse-ro
- name: salesforce
provider: salesforce-user # on-behalf-of; provider pre-created by platform
access:
default: owner # owner | eng-all
tools:
list_datasets: { allow: [eng-all] }
describe_table: { allow: [eng-all] }
run_saved_query: { allow: [eng-all] }
run_sql: { allow: [team-data] }
refresh_pipeline: { allow: [team-data], confirm: true }
data_classification: internal # internal | customer-pii
A couple of lines in that file carry more weight than they look.
access.default: ownermeans a tool is visible to the owning team unless a line says otherwise. Wideninglist_datasetstoeng-allis an explicit entry, which is what makes it reviewable in a diff.data_classificationis what triggers security review and the redaction middleware when a tool can return customer PII.
Field-by-field notes are in the manifest template, which merges the two papers' examples into one annotated file.
What CI does on a pull request
The checks run before anyone reviews, and a failing check blocks the merge.
- Validation. The manifest is checked against the JSON schema, tool schemas are extracted from the code, the team's tests run and an MCP contract test confirms
tools/listand each tool's input schema. - Policy lint.
customer-piicombined with anyeng-allallow requires asecurity-approvedlabel. A write tool cannot have a wildcard allow. Aconfirm: truetool must declare a dry-run mode. Aconfirm: truetool with aneng-allallow needs a security approver on the PR. - Review routing, which is not a check. CODEOWNERS sends the PR to the owning team. Platform only gets pulled in when
platform/,teams.yamlor the schema changed.
The last lint rule settles a decision I left open for Northfield: who approves broad sharing of a destructive tool. I'd pick a security reviewer. It costs one approval on a rare kind of PR, and it's the case where one team's mistake lets every engineer, and every agent they run, trigger a write behind that team's credential.
What CI does on merge
Merging runs the deploy, the step that used to be the platform team's ticket.
- Build the Lambda package or container and scan the image. A target that points at an existing OpenAPI spec has nothing to build.
- Deploy the backend under the team's own IAM execution role and credentials.
- Create or update the gateway target and regenerate the per-tool Cedar policy (the language AgentCore Policy evaluates) from the
accessblock. Whether Policy is available in Northfield's region and can filter the tool list per role is a phase 0 check. The fallback is a thin authorizing layer in front of the gateway that reads the same manifest. With either, policy comes from the manifest and nowhere else, so nobody can widen access from inside the tool code. - Sync
teams.yamlto FusionAuth groups. - Regenerate the catalog page and post the diff to Slack.
Once the target registers, the new tools are in the next tools/list the gateway answers, so they show up in Claude.ai, Claude Code and Cursor with no client-side change and no admin adding a connector. The gateway should also send notifications/tools/list_changed so a connected client refreshes without reconnecting. Whether AgentCore Gateway sends it, and whether each client acts on it, is on the phase 0 verify list, and the worst case is that the engineer reconnects.
Declarative or code
A team doesn't have to write MCP code to ship.
- Declarative. Point the manifest at an OpenAPI spec or a Lambda function and the platform generates the tools. Lowest friction, and right for CRUD on an API that already exists.
- Code. A container built from the platform template (official MCP SDK or FastMCP) with logging, health checks, credential loading and a contract test already wired. You need this for anything with logic, multi-step calls or data shaping.
I'd point a first team at the declarative path and keep the template for when they outgrow it.
What still goes through the platform team
A new gateway, a new credential-provider type and a change to the manifest schema. The platform team pre-creates providers for common systems such as Salesforce and Google and teams reference them by name, so a new provider type should be rare. Each is a PR to platform/ with platform review. If any of them turns into a weekly request, the schema or the provider set is too narrow, and that's the thing to fix.
Local development
Most of the friction in launching an MCP sits here. A make new-mcp target scaffolds the manifest, a handler, tests and a local runner, so a team can exercise its tools with MCP Inspector or Claude Code before opening a PR, and if that scaffold is poor then teams will ship poor tools or stop shipping. No amount of pipeline work fixes that.
The exit gate for the paved road
The gate I set for this phase was that a second team ships an MCP with no platform-team involvement. The first team can always ship, because the platform engineers are sitting next to them. The second one tells you whether the template, the schema and the docs stand on their own. Self-service also makes some mistakes easier, such as a tool opened to eng-all behind a service account with write access. The risks article lists eight of them with the guardrail for each.
If you're deciding this
Build the registry repo, the schema and the CI before the first real MCP goes in, and start with the data team, since they'll have the most tools and the clearest read-versus-write split. I've drawn this pipeline up once and would be glad to compare notes on yours.
- An MCP manifest template you can copy, field by field
One annotated MCP manifest in YAML: what runs, which credentials a tool references by name and which roles may see and call each tool, and what CI rejects.
- Eight self-service MCP platform risks and the guardrail for each
Eight MCP security risks a self-service platform makes easy to create by accident, from confused deputy to unowned tools, and the guardrail for each.