Repository navigation
Agent: serve MCP over ACP and model reasoning - #1618
Merged
AnthonyRonning merged 2 commits intoNov 17, 2026
Merged
Conversation
T3 Code expects two things an ACP agent must provide on the v1
wire: MCP servers the editor itself serves ("type":"acp"), and
every offered model's reasoning levels in the session-setup
response, not only the current model's.
Advertise mcpCapabilities.acp and run {"type":"acp"} session MCP
servers through mcp/connect, mcp/message and mcp/disconnect on
the ACP connection: each inner MCP request becomes one
mcp/message request whose response carries the inner result.
The channels live as long as their session; a task that outlives
it cannot reconnect. Stdio servers stay refused; HTTP servers
are unchanged.
session/new and session/load now answer as raw JSON so they can
carry the v1 unstable `models` extension: every offered model
with reasoningEfforts and reasoningEffort, or
supportsReasoningEffort false, in its _meta, read from the same
thinking state the thought_level option uses.
The flake's cargoLock still pinned proptest 1.10.0 as a git dependency, but the workspace lock has used proptest 1.12.0 from crates.io since the monorepo integration. nix build of the maple-agent package failed on the leftover hash, since no git dependency matches it.
AnthonyRonning
approved these changes
Nov 17, 2026
AnthonyRonning
left a comment
Contributor
There was a problem hiding this comment.
Verified locally: lint and the full agent test suite pass on this branch merged with current master, and a live run against a local stack completed mcp/connect, tools/list and tools/call over ACP with all models and their reasoning levels returned.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes
maple-agent acpwork as a local ACP provider in T3 Code. Two things were wrong, both on Maple's side.T3 couldn't attach its MCP tools. T3 gives each session its own MCP server,
t3-code, and picks the transport from the agent's capabilities. Maple advertised onlyhttp, and T3 uses HTTP only for agents it knows. So Maple got a stdio server, refused it, andsession/newfailed.Maple now advertises
mcpCapabilities.acpand serves{"type":"acp"}servers over the ACP connection itself:mcp/messagerequest, and the response carries the MCP result.mcp/messagenotifications. Connections open withmcp/connectand close withmcp/disconnect, including after a failed handshake.The reasoning picker was empty for most models. T3 probes one session and reads the
thought_leveloption only for that session's model. For every other model it reads the levels from the model's_metain the session'smodelslist, which Maple didn't send.session/newandsession/loadnow also returnmodels.availableModels[]. Each model carriesreasoningEffortsandreasoningEffort, orsupportsReasoningEffort: false, in its_meta. The values come from the same per-model state thethought_leveloption uses. Themodelconfig option is still the selector: T3 builds its model list from that option and usesmodelsonly for the_meta, so the picker doesn't change or duplicate.The commit also removes a stale proptest hash from the flake's
cargoLock, which broke thenix buildof the Agent package.Testing
acpserver, checking themcp/connect→initialize→tools/list→tools/callsequence.session/newandsession/load.just ci-lintpasses.just ci-test: 928 passed, 3 failed. The three failures are inlogin_pathand twostore::integritychecker tests. They fail the same way onmasteron the dev machine, so they come from that environment.t3-codetools and called one successfully.acpserver and picks it first once the agent advertisesacp.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.