Designing a Single MCP Tool Registry That Serves Claude, GPT-4o, and Open-Source Models From One Codebase
One registry can serve every model through normalization, adapters, and policy-aware routing.

An MCP gateway is the single entry point between AI clients and backend tool servers, where it handles routing, authentication, access policy, and audit logging. It lets Claude, GPT-4o, and open-source models use one tool registry by resolving their differences through schema normalization, provider adapters, and a central routing engine. The durable source of truth is the registry’s codebase.
Why multi-model MCP deployments create configuration debt without a unified registry
Each direct connection adds one more place to keep up to date. Claude Desktop, Cursor, OpenCode, and custom agents can each point to individual server URLs, with their own tool wiring and authentication settings. When a tool moves or its authentication scheme changes, the client configuration for each client that uses it must be updated. The operational burden grows with both the number of clients and the number of tools. A small integration project becomes a distributed filing cabinet.
The duplication extends beyond addresses and settings. OrchestrAI illustrates the underlying problem through the providers it brings together, including Anthropic, OpenAI, Gemini, and local Ollama models. Without one shared layer, each provider needs its own configuration, credentials, and tool wiring. Those fragments also divide the evidence of what happened. There is no single place to establish which agent called which tool with which credential, so reconstructing activity requires reconciling records.
What model heterogeneity actually means for a shared registry design
The clients do not differ only in API syntax. Context windows, tool-call formats, reasoning controls, structured outputs, and multimodal support all impose requirements on a shared registry. Openrouter MCP Multimodal exposes reasoning_effort for o3 and related OpenAI o-series models, while Claude extended-thinking models use output_config.effort. Those controls are not interchangeable. Similarly, analyze_audio and analyze_video calls need models that support the relevant modality, and response_format support varies by provider.
OrchestrAI’s capability registry makes these differences explicit. It associates claude-opus-4-6 and sonnet-4-6 with reasoning-heavy roles, gpt-4o and o4-mini with speed-sensitive work, gemini-2.5-pro with large-context tasks, and local codellama and qwen2.5-coder models with privacy-tier routing. The design must also account for whether a task may leave local infrastructure and whether a client can consume a tool’s description and schema.
What is an MCP gateway, and how does it work with AI agents?
The gateway places one protocol-compliant MCP endpoint between the clients and the backend servers. Clients connect to that endpoint instead of keeping a separate connection to each tool server. Beneath it, the routing and adapter layers handle the ways providers differ, while authentication and policy set what the caller may use. Backend tool servers do not need a different implementation for each client.
OrchestrAI demonstrates this separation in its architecture. Its MCP Server layer gives clients such as Claude and Cursor access to tools, resources, and prompts, while the Orchestrator and Routing Engine make the decisions for each provider below that layer. The gateway mediates the client’s contact with the provider, which also distinguishes it from a forwarding proxy. A proxy passes traffic through, while a governed gateway adds authentication, authorization, tool-level access control, policy enforcement, audit logging, and observability.
Tool schema normalization: making one definition serve every model's expectations
Schema normalization translates a canonical tool definition into a form each consumer can use. MCP tool descriptions are free-text fields with no protocol-level limit on length, but every model still needs to be able to understand them. A description may need trimming, reformatting, or summarizing for its target. Structured output requires translation too. The canonical output specification must map to the supported form, such as the json_object and json_schema options exposed through the multimodal server’s response_format parameter.
Multi-MCP provides a concrete example of configuration-based normalization. Its multi_mcp/config/config.yaml, with user overrides at ~/.multi_mcp/config.yaml, maps aliases such as mini, sonnet, and gemini to full provider-specific model IDs and records constraints such as temperature overrides. The caller uses a stable short name. The mapping resolves the provider details without requiring a separate tool definition for each model. The same boundary can also improve descriptions generated from OpenAPI specifications, where mechanically correct text may still be less useful to a model than a curated description.
Provider-agnostic adapters: isolating model-specific behavior so the registry stays stable
Once the schema is normalized, execution needs its own boundary. A provider adapter puts a canonical call into the provider’s native format, handles errors specific to that provider, and sends back a normalized response. Changes to a provider stay there, leaving tool definitions and policy rules untouched. Multi-MCP applies this pattern to both API-based models and command-line tools such as Gemini CLI and Codex CLI. Its YAML distinguishes CLI providers with the cli provider type and cli_command and cli_args settings, while API models omit the provider field.
That isolation has a performance benefit as well. Multi-MCP uses non-blocking asyncio in its adapters so model requests can run concurrently. Parallel response time is governed by the slowest model. The tool definition does not need to know how that concurrency works. When a provider is updated or replaced, its adapter can change without forcing corresponding changes to the canonical schemas, routing rules, and governance policies above it.
The routing engine: matching tool calls to the right model and enforcing policy in the same step
OrchestrAI uses a capability registry to assign roles, giving planning to models that are strong at reasoning, coding to code specialists, and judging to the highest-quality model available. Model names alone are insufficient routing rules. Privacy requirements, access scope, and cost limits must constrain the eligible routes before execution, rather than become checks performed after a capable model has already received the task.
The privacy tiers show how that constraint works. Tasks that are secret stay local, those that are confidential may use local models and enterprise APIs, those that are internal may use providers without external telemetry, and those that are public may use all providers. A task marked privacy_level: "secret" is therefore excluded from API-based routes regardless of model capability. Each choice also creates an audit event with the model chosen, the policy applied, the timestamp, and the calling identity. This is where the technical architecture meets enterprise control requirements, because the routing decision must be both enforceable and attributable.

Identity and credential scoping across multiple model clients from one registry
Attribution requires more than knowing which model received the work. If Claude Desktop, a custom GPT-4o agent, and an open-source model all use the same service account, the credential alone cannot identify the agent, team, or task behind a call. Server-level allowlists do not repair that ambiguity. The gateway must enforce per-identity, per-task access for each client. Shared credentials are convenient until someone asks who used them.
Short-lived, task-scoped credentials provide a narrower grant. They come from the organization’s existing identity provider and are valid only for the task’s duration and scope, keeping raw secrets out of model clients. Team profiles make those restrictions practical across clients, giving Engineering GitHub and Jira tools while Finance receives accounting read tools. Every client used by a team member inherits the same constraints. OAuth 2.1 and Client ID Metadata Documents provide the emerging integration mechanism, with Dynamic Client Registration deprecated in the 2026-07-28 MCP specification in favor of CIMD.
Keeping shadow MCP servers out of the registry and ungoverned servers out of the agent's reach
A gateway governs only calls that pass through it. A local or personal MCP server outside the registry can bypass routing policy, credential scoping, and audit logging when a client discovers it or is pointed toward it. OWASP catalogues this pattern as MCP09, Shadow MCP Servers.
Agents can also face attacks through the content they read with tools. Invariant Labs demonstrated a malicious issue in a public GitHub repository instructing a Claude Desktop agent to exfiltrate private repository contents through a cross-repository pivot within the same GitHub MCP server session. That case shows how hostile instructions can enter an agent’s working context, with no basis for claiming that every such attack needs an unregistered server. Malicious descriptions on shadow servers give those instructions another way in. An official registry establishes the approved baseline, while servers outside it must be discoverable, flagged, and either onboarded or blocked.
Audit and observability: what the registry must log and where those logs must go
Each tool invocation needs its calling identity, credential context, routing decision, inputs, outputs, and timestamp so an investigation can establish what an agent did and on whose behalf. A server access log alone cannot answer that question. The routing engine is a natural place to add instrumentation because the model chosen, policy applied, tool invocation, and response can all be linked in one record. These events map to OpenTelemetry trace spans rather than needing a separate observability language.
OrchestrAI shows what provenance looks like above individual calls. Its artifact and trace system records patches, test results, reviews, and an execution timeline with timing, accessible through inspect_trace and inspect_artifacts. IBM ContextForge sends OpenTelemetry traces to backends such as Phoenix and Jaeger, connecting gateway activity to existing observability infrastructure. The evidence belongs where the organization already investigates operational events. Without that output, a registry is governance theater.
Turning an OpenAPI spec into a registry-ready MCP server without losing governance
Existing APIs provide a practical way to populate the registry. An OpenAPI specification can become a generated MCP server behind the gateway, or it can be loaded directly into an agent as tools. The generated-server approach combines source-code control with centralized authentication and observability. It is a fast onboarding path that still requires review. Automatically converted descriptions can be significantly less effective for model reasoning than those in well-designed, curated MCP servers.
The registry applies the earlier architecture to that concrete case. Its normalization layer can replace or augment generated descriptions before clients receive them, while tool-level access control limits which generated operations each role can reach. A specification with many endpoints otherwise becomes a large tool surface by default. The resulting API is exposed through the same description, identity, and audit boundaries as the hand-built tools.
Choosing and extending a registry implementation: open-source starting points and enterprise requirements
Implementation choice depends on which part of the system the organization needs to own. OrchestrAI is open-source under MIT and combines a capability registry, policy engine, privacy tiers, and artifact tracing. It suits teams that want to extend routing logic themselves. That ownership also entails self-hosting and operating the provider adapters.
The multimodal server is an Apache-2.0 option spanning more than 300 LLMs, with tools for text, images, audio, and video. Its v5.1.0 release is dated 11 Oct 2026. It supports structured output through tool parameters, while provider order, sorting, and fallback settings are documented as environment-variable configuration. That difference affects how much control there is over routing for each call. How many models it supports and how it enforces enterprise identity must be assessed separately.
ContextForge takes a federation-oriented approach. It brings MCP servers, A2A agents, and REST/gRPC APIs behind one endpoint with discovery, centralized governance, and OpenTelemetry observability. It can also wrap REST or gRPC services as virtual MCP servers. Docker MCP Gateway instead emphasizes restricted containers for individual servers, a catalog of verified servers, per-tool allowlists, and built-in OAuth. Docker MCP Enterprise Gateway adds deny-by-default handling of unvetted servers, per-user audit events streamed to SIEM, and air-gapped deployment.
These options address different operating requirements. The selection test is whether the implementation provides the required routing ownership, identity integration, tool-level restrictions, and evidence without pushing those responsibilities back into individual clients. A model change should be contained within an adapter or capability record. That is the practical measure of one codebase serving many clients.


