Registry Mirror
Skip to content

[Bug]: Local ACP command for OpenClaw (openclaw acp) cannot start a thread: T3 always sends per-session MCP #35320

Open

Description

@Borekobama

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Install OpenClaw 2026.11.3 and start its Gateway (openclaw gateway).
  2. In T3 Code, add a Local ACP command instance with executable openclaw and one argument, acp.
  3. The provider probe succeeds. Start a thread on that instance and send a prompt.

Expected behavior

The thread starts. OpenClaw's ACP bridge works when a client sends mcpServers: [].

Actual behavior

Session setup fails, so no OpenClaw thread can start. T3 always adds its stdio t3-code MCP server to session/new, session/load and session/resume. OpenClaw's ACP bridge rejects any non-empty mcpServers list. OpenClaw reports mcpCapabilities: { http: false, sse: false }, so T3 picks the stdio entry, and no setting turns it off. Configuring MCP on the OpenClaw Gateway does not help, because T3 still sends its own server.

OpenClaw documents this in docs/cli/acp.md, "T3 Code compatibility". That section says T3 must provide a supported way to send mcpServers: [] when it creates, loads and resumes a session.

This is not a request for an OpenClaw provider (#5505). It is the existing Local ACP command path failing for one ACP agent.

Impact

Blocks work completely

Version or commit

main @ 2482b03 (reproduced on 4947db0; the MCP injection in packages/provider-acp/src/server/adapter.ts is the same on both)

Environment

macOS 27.0, Node 26, openclaw 2026.11.3 (openclaw acp)

Logs or stack traces

initialize -> agentCapabilities.mcpCapabilities: {"http":false,"sse":false}
session/new (with T3's stdio "t3-code" server) ->
  {"code":-32603,"message":"Internal error","data":{"details":"ACP bridge mode does not support per-session MCP servers. Configure MCP on the OpenClaw gateway or agent instead."}}
session/load   -> same error
session/resume -> same error
session/new (mcpServers: []) -> {"sessionId":"…"}  (works)

Workaround

None in T3 settings. A local patch fixes it: a per-instance option for ACP Registry and Local ACP command instances that sends mcpServers: [] and keeps T3's MCP address and token out of the agent's environment. The patch has tests and has run live against openclaw 2026.11.3. It is on Borekobama:acp-session-mcp-opt-out. I can open a PR if you want one.

Activity

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