Skip to content

[Feature]: Add an Orca MCP Bridge for shared MCP servers across agents #7362

Closed as not planned

Description

@mmarabel

Problem or use case

Orca can run multiple agents across different terminals/workspaces, but MCP setup is still handled per agent/client. If a user wants the same MCP
server available to Claude Code, Codex, OpenCode, etc., they currently need to configure that MCP separately for each agent.

This gets repetitive quickly, especially for remote HTTP MCP servers that require auth. It also means auth/config state is scattered across agent-
specific files instead of being managed once by Orca.

Feature request

Add an Orca MCP Bridge: a global MCP bridge inside Orca where users connect MCP servers once, and Orca exposes them to launched agents through a
single bridge entry.

Instead of each agent connecting directly to every MCP server:

Claude Code -> Jam MCP
Codex -> Jam MCP
OpenCode -> Jam MCP

the flow would become:

Claude Code -> Orca MCP Bridge -> Jam MCP
Codex -> Orca MCP Bridge -> Jam MCP
OpenCode -> Orca MCP Bridge -> Jam MCP

I've done a quick mockup demo here:
Image

Proposed solution

Proposed solution

Add a global Settings -> MCP Bridge page where users can add MCP servers interactively.

Initial scope could support existing MCP servers only:

  • Add local stdio MCP servers with command + args
  • Add remote HTTP MCP servers with URL
  • Enable/disable individual MCP servers
  • Enable/disable the bridge globally
  • Generate one Orca bridge config entry that agents can use
  • Keep this global rather than per project, so it applies to Orca-launched agents broadly

For HTTP MCP servers, the UI should make auth explicit:

  • No auth
  • OAuth
  • Bearer token

OAuth/token storage should be owned by Orca rather than written into agent config files.

Prototype so far

I have a small demo implementation locally to show the direction:

  • Added a standalone MCP Bridge tab under Settings
  • Added an interactive MCP Bridge card
  • Users can add local or HTTP MCP server rows
  • HTTP rows include an auth mode selector: None, OAuth, Bearer
  • Global bridge settings are stored in Orca settings
  • The current prototype is UI/config only; bridge runtime, agent injection, and real OAuth are not wired yet

The intent is to pitch the smallest useful version first, get maintainer/user feedback, and only expand if this seems valuable.

Suggested phases

Phase 1: MCP Bridge config UI

  • Global MCP Bridge settings page
  • Add/edit/remove local stdio and HTTP MCP servers
  • Generate a single Orca bridge config entry for agents
  • No custom OpenAPI/GraphQL conversion yet

Phase 2: Auth

  • Orca-owned auth for HTTP MCP servers
  • OAuth browser flow where supported
  • Secure local token storage
  • Disconnect/revoke state in the UI

Phase 3: Runtime bridge

  • Orca runs the bridge
  • Orca-launched agents connect to one local bridge endpoint/command
  • Bridge forwards requests to configured downstream MCP servers
  • Logs/errors surfaced in Settings

Phase 4: Optional expansion

  • Import existing project MCP configs
  • Per-project enable/disable overrides
  • More integration-style setup flows if users want them

Why this fits Orca

Orca already manages multiple agents and their launch environment. MCP servers are becoming part of the agent environment too, so having Orca manage
MCP access once and expose it consistently to launched agents seems aligned with Orca’s role as an agent/workspace orchestrator.

Alternatives or additional context

No response

Activity

  1. added
    enhancement
    on Jul 4, 2026
  2. added theissue type on Jul 12, 2026
  3. sanshengai commented on Aug 24, 2026

    @sanshengai

    I can confirm this has a substantial real-world resource cost on Windows, and there are two distinct problems that a bridge design should separate.

    Reproduction / measurement

    Environment:

    • Orca 1.4.188
    • Codex CLI 0.149.0
    • Windows x64
    • 9 live top-level Codex processes across several Orca terminals

    A point-in-time process-tree snapshot showed:

    • 30 Tavily stdio MCP node.exe descendants, about 1,528 MiB combined private memory
    • 27 Doubao Search stdio MCP descendants, about 22 MiB combined private memory
    • Every stdio MCP tree was owned beneath a live codex.exe (codex.exe -> cmd.exe -> node.exe, or codex.exe -> server.exe)
    • The three configured Streamable HTTP MCP servers did not create one local process per Codex session

    This is materially more than the expected one stdio server instance per top-level Codex client. Some live Codex processes owned 3–4 complete copies of each configured stdio server.

    Two separate lifecycle layers

    1. Expected per-client duplication: stdio MCP uses a client-launched subprocess and a private stdin/stdout channel. Multiple top-level Codex/Claude sessions therefore create one server process per client by design.
    2. Unexpected per-subagent retention: Codex can create additional stdio MCP runtimes for subagents/threads and retain them after completion. This matches Subagents leak stdio MCP helper trees in Codex App; xcodebuildmcp and chrome-devtools-mcp accumulate indefinitely openai/codex#17574 and related reports. Orca does not launch these descendants directly, so terminal-level process reuse alone cannot fix that Codex lifecycle bug.

    An Orca MCP Bridge would still help both cases: agents and subagents could connect to one long-lived local HTTP endpoint instead of launching the downstream stdio server themselves. However, the bridge must terminate separate MCP client sessions; sharing one raw stdio pipe between unrelated clients is not protocol-safe.

    Suggested minimum functional PR boundary

    The smallest PR that actually reduces process count should be runtime-first rather than UI-only:

    • expose one loopback-only Streamable HTTP MCP endpoint from Orca
    • launch one downstream stdio server for each normalized (command, args, env/auth, version) definition
    • maintain independent upstream MCP sessions/client identities and route JSON-RPC responses, cancellation, progress, and notifications correctly
    • reference-count clients, shut down idle downstream servers, and restart after crashes
    • fail closed when workspace roots, cwd, credentials, or server state cannot be safely shared
    • begin with an explicit allowlist/opt-in for stateless servers; preserve direct stdio as fallback
    • avoid logging tokens, environment values, prompts, roots, or raw tool payloads

    Acceptance test

    With five concurrent Codex clients configured for the Orca bridge:

    1. exactly one opted-in downstream stdio process is alive;
    2. all five clients can initialize and invoke tools concurrently, including colliding JSON-RPC request IDs;
    3. disconnecting/restarting one client does not affect the other four;
    4. different workspace roots or auth profiles are never coalesced;
    5. after the last client disconnects, the downstream process exits after a bounded idle timeout.

    This would turn the bridge from centralized configuration into measurable process and memory deduplication, while keeping the Codex subagent leak tracked at its actual owner.

  4. sanshengai commented on Aug 24, 2026

    @sanshengai

    Runtime foundation is now proposed in #16221. It is intentionally tools-only and not yet wired to Settings/agent injection, but the integration test covers the key multiplexing boundary: five independent Streamable HTTP sessions, colliding client-side request-ID sequences, one downstream stdio PID, independent disconnect, isolation-key fingerprinting, bounded idle cleanup, and crash restart.

  5. mmarabel commented on Sep 25, 2026

    @mmarabel
    ContributorAuthor

    Closing to declutter. A shared MCP bridge sits beside the agents rather than inside core Orca behavior, and we expect it can be built as a plugin once the plugin API can manage agent launch configuration, so we'll pick it back up then. Related open threads for anyone following: #10132 (first-class MCP configuration), #13079 (Orca as an MCP server) and #14999 (per-session MCP policy). @sanshengai's Windows measurements above (duplicate MCP server processes per agent) are the best data here for whichever of those moves first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions