How It Works
Your MCP client sees Ultra as one server. Behind the scenes, Ultra connects to multiple upstream servers and merges their capabilities:Tool Namespacing
To avoid name conflicts when multiple servers provide similarly-named tools, the aggregator prefixes tool names with the upstream server name:filesystem server with a read tool and a github server with a read tool, they become:
filesystem__readgithub__read
Routing
When a tool call comes in, the aggregator:- Parses the namespaced tool name to identify the upstream server
- Routes the request through the pipeline for observability
- Forwards the call to the correct upstream server
- Returns the response back through the pipeline to the client
Connection Management
The aggregator handles the lifecycle of upstream connections:Stdio Servers
For command-based servers, the aggregator:- Spawns the process with configured command, args, and env vars
- Communicates over stdin/stdout
- Handles process lifecycle (start, restart, cleanup)
HTTP Servers
For URL-based servers, the aggregator:- Establishes HTTP/SSE connections
- Manages connection health
- Handles authentication (including OAuth2 flows)
OAuth2 Support
The aggregator supports OAuth2 authentication for upstream servers that require it. When a server responds with a 401, Ultra can:- Initiate an OAuth2 PKCE flow
- Open a browser for user authorization
- Store and refresh tokens automatically
Built-in Tools
Ultra registers one built-in tool:| Tool | Description |
|---|---|
ultra_status | Returns Ultra’s health status, version, upstream count, and aggregated tool count |
Startup Flow
Whenultra start runs:
- Load configuration and validate upstream entries
- Initialize storage and observability
- Create the pipeline with interceptors
- Start the aggregator — connect to all enabled upstream servers
- Discover capabilities — list tools, resources, and prompts from each upstream
- Register aggregated capabilities — namespaced tools/resources/prompts on the MCP server
- Start the MCP server on stdio transport
- (Optional) Start Hub background sync