GeezerVison is showing github.com — fix(acp): Copilot threads get T3's tools by Radu028 · Pull Request #26968 · pingdotgg/t3code
Conversation
GitHub Copilot threads never get T3's tools, such as delegate_task, html_render, link_pull_request and preview_*. T3 gives Copilot its MCP server as a stdio acp-mcp-bridge entry, and Copilot CLI 1.0.105 rejects it at every session start with Rejecting non-http/sse MCP server "t3-code" from client. The model is left with the terminal fallback, so it reports the tools as missing or calls them through acp-mcp-call with hand-written JSON. In one real Windows thread the agent first said it had no delegate_task, then sent an HTML render through the terminal. The reporters on #22806 traced the cause with a probe of Copilot CLI 1.0.105, and a second report on Windows confirmed the warning and Copilot's mcpCapabilities: {http: true, sse: true}.
Fix: The Copilot registry flavor now offers T3's per-session MCP endpoint as an ACP HTTP entry with its Authorization header. Claude and Codex already get this endpoint and credential over HTTP. The session runtime sends the HTTP entry wherever it sends MCP servers today (session/new, session/load and resume, fork, restart and replacement), and only when the agent advertises mcpCapabilities.http. ACP-native MCP still wins when advertised, and a Copilot build without http keeps the stdio entry. Each request reads the thread's current MCP credential, so a rotated token reaches the next load. HTTP is opt-in per flavor and only Copilot opts in, because codex-acp 1.2.0 and pi-acp drop injected HTTP servers. Copilot rejects stdio servers even though the ACP v1 schema says every agent must support them. The terminal fallback variables and the agent instructions are unchanged.
Proof: A new case in AcpRegistryAdapterV2.test.ts runs the registry adapter against the real-process mock ACP agent and records the mcpServers T3 sends. When Copilot advertises http, session/new gets the HTTP entry with the opening token, and a later session/load gets it with the rotated token. Copilot without http, and a non-Copilot agent with http, still get the stdio bridge. With the source change reverted, the Copilot assertion fails because both requests carry the stdio bridge. Removing the capability check fails the Copilot-without-http assertion, and turning HTTP on for every agent fails the non-Copilot assertion.
cd apps/server && vp test run src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts -t "gives Copilot" passes.
vp test run on AcpRegistryAdapterV2.test.ts, AcpAdapterV2.test.ts, AcpJsonRpcConnection.test.ts and AcpRegistryProbe.test.ts passes 126 tests.
vp run check:changed passes.
Live check: On Windows, I drove the Copilot CLI that T3's registry install launches (runtime 1.0.105) with a raw ACP client and a stub MCP server, without a T3 server. This covers session/new and session/load. Fork, restart and replacement are covered by the shared code path and the test above, not by a live run.
initialize agentInfo.version 1.0.105, mcpCapabilities {http: true, sse: true}
session/new (http) stub received server/discover, initialize, notifications/initialized, GET, tools/list; Authorization matched
session/new (stdio) stub process never started
one Haiku prompt so the session is saved, then a new Copilot process
session/load (http) stub received server/discover, initialize, notifications/initialized, GET, tools/list; Authorization matched
Fixes #22806
Model and harness: Claude Opus 5.5 in Claude Code via T3 Code, reviewed by GPT-6.1 Sol.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Copilot CLI rejects client stdio MCP servers ("Rejecting non-http/sse MCP
server"), so it never saw T3's tools from the stdio acp-mcp-bridge. The
Copilot registry flavor now also offers T3's per-session MCP endpoint as
an HTTP entry with its Authorization header. The session runtime sends it
on session/new, load, resume and fork only when the agent advertises
mcpCapabilities.http, after the existing ACP-native preference. Other ACP
agents keep the stdio bridge, because codex-acp 1.2.0 and pi-acp drop
injected HTTP servers.
Fixes pingdotgg#22806
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Needs Human Approval
Macroscope's review found this PR requires human approval — Copilot sessions automatically use authenticated HTTP MCP when supported, restoring direct access to T3 tools while preserving other providers’ transport behavior. This changes Copilot’s default tool connection behavior and requires human review.
Needs human approval because:
- Macroscope's correctness review did not reach a verdict
Notes:
- The correctness review was unavailable. Eligibility was assessed without its result.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 29, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between e35a980 and 84dad6a.
Files selected for processing: 4
-
apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts
packages/provider-acp-registry/src/server/adapter.ts
packages/provider-acp/src/server/AcpSessionRuntime.ts
packages/provider-acp/src/server/adapter.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Walkthrough
-
The Copilot adapter can provide authenticated HTTP MCP server configuration. The session runtime selects MCP servers based on advertised capabilities and configured transports. Regression tests cover transport selection and authorization tokens during session creation and resume.
Changes: Copilot HTTP MCP transport
| Layer / File(s) |
Summary |
Build and forward HTTP MCP context packages/provider-acp/src/server/adapter.ts, packages/provider-acp-registry/src/server/adapter.ts, apps/server/scripts/acp-mock-agent.ts |
The Copilot flavor enables HTTP MCP. The adapter creates HTTP server configuration with the session endpoint and authorization header, then forwards it to runtime and activation inputs. The mock agent can advertise HTTP MCP support. |
Select session MCP servers packages/provider-acp/src/server/AcpSessionRuntime.ts |
Runtime options accept HTTP MCP servers. The runtime selects configured ACP servers when ACP support and servers are present; otherwise, it selects configured HTTP servers when HTTP support and servers are present, then falls back to general MCP servers. |
Verify transport selection and authorization apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts |
Regression tests check Copilot’s transport selection, Gemini’s stdio selection, and authorization tokens during session creation and resume. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Medium
Sequence Diagram(s)
sequenceDiagram
participant CopilotFlavor
participant AcpAdapterV2
participant AcpSessionRuntime
CopilotFlavor->>AcpAdapterV2: Enable mcpOverHttp
AcpAdapterV2->>AcpAdapterV2: Build HTTP server entry with session endpoint and authorization header
AcpAdapterV2->>AcpSessionRuntime: Pass httpMcpServers
Loading
Possibly related issues
- pingdotgg/t3code#22806: Reports missing T3 pull-request tools in Copilot ACP threads; this change enables an authenticated HTTP MCP entry for Copilot when HTTP capability is available.
Possibly related PRs
- pingdotgg/t3code#24501: Sends Copilot T3 tools through the MCP HTTP endpoint; this PR changes the endpoint and bearer-token parsing.
- pingdotgg/t3code#27520: Enables Copilot ACP sessions to use T3’s MCP endpoint over HTTP; this PR adds an alternate Copilot SDK path for HTTP MCP support.
Suggested labels: bugfix
Suggested reviewers: stienswout, juliusmarminge
Merge Risk: Minimal · up to 84dad
-
Copilot can use authenticated HTTP tools with the existing fallback. No actionable merge-blocking risk was identified.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly and concisely identifies the main change: enabling Copilot threads to access T3's tools through ACP. |
| Description check |
 |
The description covers the problem, technical change, scope, linked issue, verification results, live-check limitations, and implementation rationale. It does not use the template's exact section head… |
| Linked Issues check |
 |
Issue #22806 reports that Copilot ACP threads lacked direct T3 tools (list_thread_pull_requests, link_pull_request) and used only the terminal fallback. The PR addresses the cause described in its… |
| Out of Scope Changes check |
 |
The whole-PR changes concern MCP transport for Copilot ACP sessions. They include the Copilot registry flavor opt-in (mcpOverHttp), the adapter context and runtime input (httpMcpServers, `mcpOverH… |
Full details: Description check
-
Explanation
The description covers the problem, technical change, scope, linked issue, verification results, live-check limitations, and implementation rationale. It does not use the template's exact section headings, but it provides the required information in clearly separated content and is mostly complete.
Full details: Linked Issues check
-
Explanation
Issue #22806 reports that Copilot ACP threads lacked direct T3 tools (list_thread_pull_requests, link_pull_request) and used only the terminal fallback. The PR addresses the cause described in its current description: Copilot CLI rejects the stdio MCP entry. The Copilot registry flavor now sends T3's per-session endpoint as an HTTP MCP entry with the current Authorization header (packages/provider-acp-registry/src/server/adapter.ts, mcpOverHttp: true). The shared runtime in packages/provider-acp/src/server/AcpSessionRuntime.ts selects that entry only when the agent advertises mcpCapabilities.http and the HTTP list is nonempty. ACP-native servers still take precedence. Otherwise the stdio bridge remains. The whole-PR diff at head matches this selection logic. Tests in AcpRegistryAdapterV2.test.ts cover the Copilot HTTP entry, the rotated token on session/load, the stdio fallback, and non-Copilot behavior. The author reports a live Windows check of session/new and session/load against Copilot CLI 1.0.105. A later comment reports a live Linux check of direct HTTP tool calls, including resume after server restart. Fork, replacement, and explicit token rotation outside restart are covered only by the shared code path and tests, not by live runs. The issue requirement is direct tool availability or fallback before a false unavailability report. The change addresses the reported failure path. The terminal fallback and agent instructions are unchanged, so the fallback path still works for agents without HTTP support.
Full details: Out of Scope Changes check
-
Explanation
The whole-PR changes concern MCP transport for Copilot ACP sessions. They include the Copilot registry flavor opt-in (mcpOverHttp), the adapter context and runtime input (httpMcpServers, mcpOverHttp), HTTP selection in sessionMcpServers in AcpSessionRuntime.ts, the mock agent's T3_ACP_MCP_HTTP capability flag, and regression tests in AcpRegistryAdapterV2.test.ts. Each change supports the HTTP MCP path for #22806 or verifies it. The MCP instruction detection change in adapter.ts supports the HTTP-only case, where no stdio list exists. The PR does not change the terminal fallback variables or agent instructions. No unrelated change is identified in the reviewed evidence.
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
verified as-is at e35a98011cbda94a6b60b28a88b62f6da0d91338 on a linux boat vm. no source changes or pushes were needed.
used repository playwright and /usr/bin/google-chrome against real vp run dev servers, run one at a time with isolated state. added the real git repository through the app and installed copilot 1.0.105 through settings > providers > acp registry. no mocked provider, replay, fixtures, or seeded data.
- on
github/main (6575ce3250), the same copilot prompt reproduced the bug: copilot logged Rejecting non-http/sse MCP server "t3-code" from client and reported the direct tool unavailable.
- on this exact pr head, copilot called
t3-code-list_thread_pull_requests({}) directly. its native events record mcpTransport: "http", success: true, and {"pullRequests":[],"chains":[]}. no terminal fallback.
- stopped and restarted the pr server, reopened the same thread, and prompted again. copilot resumed the same native session in a new process and the direct http tool succeeded again.
- neighboring behavior: real codex
gpt-6.1-sol turns called the direct t3 tool successfully on both main and the pr. copilot used its authenticated account, with auto resolving to gpt-6-luna.
- blacksmith: all 126 focused acp tests passed.
vp run check:changed aa11ef6783da81039e6646e2e96941748afb358e passed format, lint, knip, graphql, typechecks for 13 packages, and 17 tests. the explicit ref is the pr's merged main base. hosted checks on this head report no failures or pending runs.
short runtime transcript:
main 15:14:48 copilot rejects non-http/sse t3-code server
main 15:15:04 COPILOT_MCP_UNAVAILABLE
pr 15:24:32 list_thread_pull_requests {}, transport=http
pr 15:24:33 success=true, {"pullRequests":[],"chains":[]}
stop and restart t3 server; resume native copilot session
pr 15:30:47 list_thread_pull_requests {}, transport=http
pr 15:30:47 success=true, {"pullRequests":[],"chains":[]}
full sanitized transcript


Not verified
native windows/macOS desktop and iOS/android clients; remote, relay, and tunnel connections; live providers without http or with native acp mcp support; fork, replacement, and explicit token rotation outside the server restart. the existing tests cover transport priority, stdio fallback, non-copilot behavior, and rotated credentials. this server change has no visual layout change, so the main reproduction is recorded in the runtime transcript.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
# Conflicts:
# apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts
Note Written by gpt-6.1-sol on behalf of Maria
merged current main into the existing head without rebasing. resolved the test conflict by retaining both the copilot transport regression and main's prompt-echo coverage. no implementation changes; the diff remains five files, 179 additions and 12 deletions.
verified 84dad6a2daa9fb559f84fd6f5e8b2b1d8fad5ca4 through blacksmith-check:
vp run check:changed c6ef3b46ebed34fbefa1706674fe5748254cee18 passes format, lint, knip, graphql, 13 package typechecks, and 19 tests.
- focused AcpAdapterV2 and AcpRegistryAdapterV2 suites pass all 100 tests.
- two independent read-only reviews approve this exact head without findings.
hosted checks and mergeability are pending. the live copilot/client verification documented above was not repeated for this merge-only update.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 2, 2026
ajinkyajacob
added a commit
to ajinkyajacob/t3code
that referenced
this pull request
Nov 13, 2026
Extend the transport test that pingdotgg#26968 added, so it proves the adapter
itself sends the HTTP entry for a local Command Code install on
session/new and session/load, and keeps the stdio bridge for other local
agents even when they advertise HTTP. Renames the test now that it
covers more than Copilot.
Co-authored-by: CommandCodeBot <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|