Skip to content

ACP: investigate opt-in client-supplied stdio MCP support #1606

Closed

Description

@AnthonyRonning

Maple ACP accepts temporary client-supplied HTTP MCP servers in session/new and session/load, but deliberately rejects client-supplied stdio MCP commands before starting a process. Owner-configured local stdio MCP already exists. Investigate whether trusted ACP clients should be able to opt into temporary stdio MCP bindings.

This would improve interoperability with ACP harnesses such as Buzz's standalone buzz-acp, whose optional injected MCP descriptor currently describes a stdio command. It is separate from the working HTTP MCP integration and is not required to use the existing Maple Buzz plugin.

The current refusal is an intentional policy boundary: a stdio command executes on the Maple host, which may be a different computer from the ACP client. The investigation should decide how an owner explicitly trusts a launcher/client and what command, environment and working-directory policy applies. Preserve rejection before process execution when that trust has not been granted; this is not a request to silently allow arbitrary commands from every client.

If supported, use the existing host-owned process lifecycle and account/task boundaries. Define behavior for session creation, load, disconnect/cancellation, conflicting server names and cleanup, without persisting or logging supplied secrets. Capability advertisement and refusal messages should match the selected policy. Cover the default refusal and permitted path with protocol/process fixtures; retain HTTP MCP behavior.

Sources:

Related but distinct: #1457 tracks client-provided system-prompt append support. No implementation or policy change is made by this investigation issue.

Activity

  1. AustinKelsay commented on Nov 15, 2026

    @AustinKelsay

    Here's another ACP client that runs into this: T3 Code.

    Use case: I want to run Maple Agent as a custom ACP provider in T3 Code. Maple would handle the agent, tools, and task history, and T3 would be the interface and orchestrator. Maple's docs already describe a T3 setup (local-host.md#t3-code).

    What happens: T3 sends its own tools in session/new as a stdio MCP server. Maple rejects that server, so the session never opens. This happens even when the whole task is "Reply with exactly: OK":

    {"code":-32602,"message":"Invalid params","data":"Transient stdio MCP server 't3' is disabled because it would execute caller-supplied native code on this machine"}

    T3 retries initialize and session/new five times, then fails the turn.

    What works (when I send session/new to maple-agent acp myself):

    • With an HTTP MCP entry that includes an Authorization header, the session opens. Maple runs initialize, tools/list, and tools/call, and the model calls the tool and gets its result.
    • With an empty mcpServers list, the session also opens.

    Why clients hit this: the ACP spec says all agents MUST support stdio MCP servers, and HTTP is optional. So clients like T3 default to stdio, and the setup in Maple's docs fails the first time you use it. We understand why the refusal exists, and we're not asking Maple to accept stdio servers from clients the owner hasn't trusted.

    Either of these would unblock us:

    1. An owner opt-in that trusts stdio MCP servers from a specific client, as this issue proposes.
    2. In the meantime, a documented rule that client-supplied tools must use HTTP with Maple. Then we can ask T3 to choose HTTP whenever Maple advertises mcpCapabilities.http.

    Tested: 2026-11-13 with Maple Agent 0.0.23 (version reported by ACP initialize) and T3 Code 0.1.10-nightly.20261113.4643 on macOS.

    Current workaround: using Maple's models through Pi inside T3. That works, but it isn't the native Maple Agent.

  2. AnthonyRonning commented on Nov 17, 2026

    @AnthonyRonning
    ContributorAuthor

    Fixed on master. maple-agent acp now accepts client stdio MCP servers (#1622) and MCP over the ACP connection, with per-model reasoning levels (#1618). Both ship in the next Maple Work release, 0.0.25. @AustinKelsay, T3 Code should open a session once you are on that build; please reopen if it still fails.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions