developers · reference · shipped
MCP Reference
Routed 3-tool mode vs. full gateway
Loading thousands of flat MCP tool schemas into an LLM context window consumes tens of thousands of tokens before the first user prompt and degrades tool selection accuracy. AitherOS solves this with routed mode (--routed), the default configuration synced across supported coding harnesses by adk mcp sync-routed.
A single local stdio bridge (MultiBridge v2.0) fronts one or more lazily connected Streamable HTTP upstreams, answers initialize immediately, serves warm disk caches (~/.aither/mcp-bridge-cache/<mount>.json) while upstreams come online, emits notifications/tools/list_changed on refresh, retries tools/call once on transport drop, and automatically refreshes expired session tokens on HTTP 401. The bridge speaks MCP 2025-06-18 by default, with opt-in 2026-07-28 sessionless server/discover support (MCP_BRIDGE_FORCE_MODERN=1).
| Mode | Tools advertised to the LLM | How tools are called | Best for |
|---|---|---|---|
Routed mode (--routed, recommended) | Exactly 3 meta-tools (aither_find_tools, aither_call, aither_gateway_status) | Search locally with aither_find_tools, then invoke through aither_call | IDEs, coding agents, and multi-mount setups (Claude Code, Antigravity, Cursor, Codex, Windsurf, VS Code) |
| Full / flat gateway mode | Direct Streamable HTTP tools/list (or merged flat bridge catalog) | Direct MCP tools/call by tool name | Single-purpose scripts, custom MCP SDK clients, or curated allowlists |
The 3 routed meta-tools
aither_find_tools(query, mount?, limit=20..100)— Zero-hop keyword and glob search against the bridge's local merged catalog. Returns matching tool names, mount names, concise descriptions (up to 300 characters), and each tool'sinputSchema.aither_call(tool, arguments?, mount?)— Proxies a tool invocation to the resolved upstream mount. If two mounts register the same tool name, passmountexplicitly or call the disambiguated<mount>__<tool>name (the primary mount retains the bare name).aither_gateway_status()— Answered locally by the bridge without an upstream round trip. Reportsgateway_live, per-mount upstream health, cache timestamps,catalog_tools,served_tools,renamed_tools,bearer_present,last_error, andlast_ok_at.
In flat mode (without --routed), the primary aitheros mount can be scoped to a curated subset using .claude/mcp-tool-allowlist.txt or glob patterns in AITHER_MCP_TOOL_ALLOWLIST. Calls to tools outside the advertised subset are still proxied if explicitly invoked.
MCP servers and mounts
Aitherium's MCP surface spans six mounts across cloud, local hardware, desktop, and browser runtimes:
| Mount / Server | Endpoint / Launch | Transport & Auth | Tool Count | Purpose |
|---|---|---|---|---|
aitheros (Platform MCP Gateway) | https://mcp.aitherium.com/mcp (cloud) or local gateway | Streamable HTTP (application/json + SSE, Mcp-Session-Id). Fail-closed OAuth 2.1 + PKCE, metered API keys (aither_sk_live_*), Identity bearers, scoped aither_ext_* keys, HMAC-SHA256 capability tokens | 1,977 live tools (369 prefixes); 2,391 static tools across 314 modules | Unified workspace, agents, memory, retrieval, code intelligence, media, commerce, and platform tools |
aw (aw-hub local brick mux) | awnode hub serve (auto-spawned with --hub) | Loopback Streamable HTTP; X-Aw-Hub-Token (~/.aither/aw-hub/token, mode 0600); rejects Origin headers (anti-DNS-rebinding); never carries fleet bearer | 49 live tools aggregating 9 family bricks (awdk, awm, awgraph, awgit, awdecide, awrelay, awfind, awprism, awfocus) | Project-scoped local developer bricks multiplexed through a single loopback daemon |
desk (awdesk desktop body) | Auto-discovered loopback bridge (awdesk) | Loopback Streamable HTTP (@modelcontextprotocol/sdk). Refuses sensitive OS app IDs; read-only system inspection | 64 registered tools (24 avatar/voice/stage, 11 desk/fleet/tunnels, 21 Chrome/in-app browser, 8 files/system/cards) | Live desktop avatar, Decision Cards (ask_owner), browser bridge, and local workspace presence |
aither-local (Local delegation) | Local stdio MCP delegation server | Local stdio transport | 5 tools (ask_aither, brief, deep_research, recall, research) | Offloads repository and web exploration to local models before spending frontier context tokens |
awnode (Standalone node MCP) | awnode mcp (--transport stdio|sse) | Stdio for local IDEs or SSE (Authorization: Bearer required off loopback). Auto-detects local, cloud, or standalone mode | 63 discovered tools across 19 modules (51 shell_local incl. 4 opt-in sandbox tools via --allow-sandbox, 2 shell_cloud, 10 platform_only) | Self-hosted local hardware bridge (GPU, Ollama/vLLM/llama.cpp, ComfyUI, safe filesystem) |
| WebMCP (Browser in-page MCP) | https://studio-preview.aitherium.com + Android WebMCP shim | document.modelContext.registerTool() (with navigator.modelContext fallback), toolchange events, pending-batch human approval | 33 dynamic in-page tools in WebMCP Design Studio | Co-creative in-browser canvas, WebGPU image generation, video render, and tab-paired MCP control |
Platform gateway domain breakdown (aitheros — 1,977 live tools)
The hosted gateway at https://mcp.aitherium.com/mcp enforces tenant isolation, plan/pack gating, and awdit tamper-evident audit logging. Host-only and platform-internal modules are never exposed on the public SaaS endpoint.
| Domain | Live Tools | Representative Prefixes |
|---|---|---|
| Workspace, Desktop, Browser, Civic & App Builder | 304 | workspace_*, hearth_*, tasks_*, desktop_*, builder_*, civic_*, classroom_*, formbridge_*, rf_* |
| Agents, Orchestration, Reasoning & Notebooks | 182 | expedition_*, agent_*, spec_*, wm_*, forge_*, arc_*, solve_*, reasoning_*, focus_*, session_* |
| Fleet, Compute, Inference & Infrastructure | 136 | ring_*, fleet_*, cf_*, cloudflare_*, k3s_*, compute_*, gpu_*, deploy_* |
| Media Forge, Vision, Voice & Creative | 132 | saga_*, mediaforge_*, sprite_*, generate_*, create_*, audiobook_*, iris_* |
| Memory, Knowledge, RAG & Research | 115 | graph_*, wiki_*, dr_*, search_*, brain_*, nanobrain_* |
| Commerce, Billing, Tax & Business Ops | 108 | stripe_*, tax_*, commerce_*, pilot_*, invoicing_*, shop_* |
| Communication, Relay, Mail, Social & Calendar | 80 | mail_*, social_*, proton_*, relay_*, calendar_*, contacts_* |
| Filesystem, Storage & Artifacts | 76 | storage_*, fs_*, awrtifact_* |
| Security, Identity, Vault, Governance & Legal | 59 | law_*, themis_*, lockbox_*, legal_*, scope_* |
| Code Intelligence & Repo Graph | 53 | repowise_*, codegraph_*, lsp_* |
| Git, VCS & Repo Ops | 38 | git_*, vcs_* |
| General Platform & Cross-Domain Verbs | 694 | get_*, list_*, aither_* and cross-domain utility verbs |
Governance doors on mcp.aitherium.com
https://mcp.aitherium.com/mcp— Full workspace and customer twin MCP endpoint. Authenticates via OAuth 2.1 + PKCE, meteredaither_sk_live_*keys, or per-(tenant, pack) scopedaither_ext_*keys, intersecting external-safe policy, pack allowlists, and plan entitlements.https://mcp.aitherium.com/connector— Curated consumer connector door (OAuth viahttps://idp.aitherium.com) exposing 4 read-only tools for consumer assistant directories.
Authentication, discovery, and credit tiers
All MCP endpoints fail closed. Interactive clients negotiate OAuth 2.1 + PKCE automatically via RFC 9728 metadata without storing static keys in config files:
- Protected resource metadata:
GET https://mcp.aitherium.com/.well-known/oauth-protected-resource - Authorization server metadata:
GET https://id.aitherium.com/.well-known/openid-configuration - Machine-readable MCP discovery:
GET https://mcp.aitherium.com/.well-known/mcp.jsonand/.well-known/mcp-registry.json - Tool manifest (HTTP, no MCP handshake required):
GET https://mcp.aitherium.com/tools/manifest - IDE config generator endpoint:
GET https://mcp.aitherium.com/v1/mcp/config/{ide}
Supported bearer credentials on https://mcp.aitherium.com/mcp:
| Credential Type | Header | Intended Use |
|---|---|---|
| OAuth 2.1 + PKCE token | Managed by MCP client | Interactive IDEs (Claude Code, Antigravity, Cursor, VS Code) |
Metered API key (aither_sk_live_*) | Authorization: Bearer aither_sk_live_... | Headless scripts, CI, non-OAuth MCP clients (app.aitherium.com/settings/keys) |
External agent key (aither_ext_*) | Authorization: Bearer aither_ext_... | Managed agents and twins scoped to a specific tenant and pack |
| Workspace / Identity bearer | Authorization: Bearer <token> | Sessions signed in through adk login |
Pass X-Aither-Scope: local | platform | cloud when constraining tool execution scope. Tool calls are metered by compute weight:
- Tier 0 (free) — Read-only queries, health checks, dashboards, manifest inspection
- Tier 1 (1 credit) — Search, memory writes, lightweight chat/triage tools
- Tier 2 (5 credits) — Image generation, voice synthesis/transcription, code analysis
- Tier 3 (25 credits) — Swarm coding, multi-step workflows, code generation
- Tier 4 (100 credits) — Training, GPU compute jobs, video rendering
Denials return structured JSON (PLAN_UPGRADE_REQUIRED when a feature tier is required, or INSUFFICIENT_FUNDS when wallet balance is below the tool's credit cost).
One-command routed sync across harnesses
Install awdk (pip install awdk), sign in (adk login), and run one command to configure routed 3-tool mode across every detected coding harness on your machine:
pip install awdk
adk login
adk mcp sync-routed
adk mcp sync-routed updates Claude Code, Google Antigravity, Cursor, Codex, Gemini CLI, OpenCode, VS Code, and Windsurf with the routed bridge (aitheros + desk + --hub + --routed).
Client setup configs
Claude Code
Configure routed mode, hooks, and diagnostics in one step:
adk claude setup
adk claude doctor
Or connect directly to the hosted Streamable HTTP gateway with OAuth 2.1:
adk mcp setup --mode remote --ide claude-code
# or using Claude Code's native CLI:
claude mcp add --transport http aitheros https://mcp.aitherium.com/mcp
Project .mcp.json (direct OAuth HTTP):
{
"mcpServers": {
"aitheros": {
"type": "http",
"url": "https://mcp.aitherium.com/mcp"
}
}
}
Google Antigravity
Install the complete AitherOS plugin (routed aitheros bridge, aither-local, hosted aitherium gateway, lifecycle hooks, rules, and skills) and verify with the built-in doctor:
adk antigravity setup
adk antigravity doctor
This writes ~/.gemini/config/plugins/aitheros/mcp_config.json, plugin.json, hooks.json, rules/AGENTS.md, agents/aw.md, and skills/*/SKILL.md. For direct hosted-only configuration inside mcp_config.json:
{
"mcpServers": {
"aitherium": {
"serverUrl": "https://mcp.aitherium.com/mcp"
}
}
}
Cursor
Generate .cursor/mcp.json via adk or paste directly:
adk mcp setup --mode remote --ide cursor
{
"mcpServers": {
"aitheros": {
"type": "http",
"url": "https://mcp.aitherium.com/mcp"
}
}
}
Windsurf
Generate .windsurf/mcp.json via adk or paste directly:
adk mcp setup --mode remote --ide windsurf
{
"mcpServers": {
"aitheros": {
"serverUrl": "https://mcp.aitherium.com/mcp"
}
}
}
VS Code
Generate .vscode/mcp.json (note VS Code uses the top-level "servers" key):
adk mcp setup --mode remote --ide vscode
{
"servers": {
"aitheros": {
"type": "http",
"url": "https://mcp.aitherium.com/mcp"
}
}
}
Hermes Agent
For a local awnode bridge, emit the YAML snippet and test it directly:
awnode mcp-config --format hermes
hermes mcp test awnode
For the hosted AitherOS MCP gateway, add to ~/.hermes/config.yaml (or ~/.hermes/cli-config.yaml):
mcp_servers:
aitheros:
url: https://mcp.aitherium.com/mcp
headers:
Authorization: "Bearer ${AITHER_API_KEY}"
OpenClaw
OpenClaw consumes AitherOS either via a baked bearer token against the hosted gateway or via a local awnode stdio server:
adk mcp setup --mode remote --ide claude-code --bake-token
Add the MCP server block to your OpenClaw configuration (~/.openclaw/openclaw.json):
{
"mcpServers": {
"aitheros": {
"type": "http",
"url": "https://mcp.aitherium.com/mcp",
"headers": {
"Authorization": "Bearer ${AITHER_API_KEY}"
}
}
}
}
Codex, Gemini CLI, and OpenCode
adk mcp sync-routed writes routed configs automatically for all three:
- Codex (
~/.codex/config.toml): registers[mcp_servers.aitheros] - Gemini CLI (
~/.gemini/settings.json): registersmcpServers.aitheros - OpenCode (
~/.config/opencode/opencode.json): registersmcp.aitheros("type": "local")
Inspecting tools over raw HTTP
To list available tools, JSON Schemas, credit tiers, and required features without establishing an MCP session:
curl -s https://mcp.aitherium.com/tools/manifest \
-H "Authorization: Bearer $AITHER_API_KEY"
To verify a routed setup from any connected client, call aither_gateway_status() first, then discover tools on demand with aither_find_tools(query="codegraph") and execute with aither_call(tool="...", arguments={...}).