Skip to content

fix(server): bridge ACP MCP servers over stdio, auto-approve Threadlines MCP tools, and gate note-tool instructions - #1066

Merged
badcuban merged 1 commit into
mainfrom
fix/acp-mcp-tool-fallback
Nov 23, 2026
Merged

badcuban merged 1 commit into
mainfrom
fix/acp-mcp-tool-fallback

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

ACP agents that do not advertise \mcpCapabilities.http\ dropped all Threadlines MCP servers instead of using ACP's baseline stdio transport. In addition,
oomToolsAttached\ checked capabilities instead of which servers were actually attached, Threadlines' own room/page/command/device MCP calls still prompted for approval in Supervised mode, and sessions without the room/app MCP server still received \project_note_write\ instructions.

Fixed by:

  • Adding a lightweight stdio-to-HTTP MCP bridge fallback (\�cpMcpStdioBridge.ts) for ACP agents that neither advertise \mcpCapabilities.http\ nor set \�ssumeHttpMcp, passing the loopback URL and Bearer token in \env\ (redacted in native logs) instead of argv.
  • Tracking \�ttachedMcpServerNames\ on \AcpSessionRuntimeStartResult\ and deriving
    oomToolsAttached\ from whether \ hreadlines_room\ was actually passed.
  • Auto-approving \�llow_once\ for positively normalized calls to attached pre-approved Threadlines MCP servers (\ hreadlines_room, \ hreadlines_pages, \ hreadlines_commands, \ hreadlines_device) while still prompting for \ hreadlines_browser, external MCP servers, and spoofed commands.
  • Omitting \project_note_write\ and \project_note_read\ instructions whenever the room/app MCP server is not requested or not attached.

…nes MCP tools, and gate note-tool instructions

ACP agents that do not advertise mcpCapabilities.http dropped all Threadlines MCP servers instead of falling back to stdio, roomToolsAttached checked capabilities instead of actually attached servers, Threadlines room/page/command/device MCP tools still prompted in Supervised mode, and sessions without the room/app MCP server still received project_note_write instructions.

Added a stdio-to-HTTP MCP bridge fallback in the ACP runtime (passing the endpoint URL and Bearer token via env and redacting it in native logs), derived roomToolsAttached from the attached server list, auto-approved attached pre-approved Threadlines MCP servers once (keeping browser and external MCP servers prompted), and omitted project_note_write and project_note_read instructions when the room/app MCP server is not attached.
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 23, 2026 9:43pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 23, 2026
@badcuban badcuban closed this Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a manual request Nov 23, 2026
@badcuban
badcuban deleted the fix/acp-mcp-tool-fallback branch November 23, 2026 21:56
@badcuban
badcuban restored the fix/acp-mcp-tool-fallback branch November 23, 2026 21:56
@badcuban badcuban reopened this Nov 23, 2026
@badcuban
badcuban enabled auto-merge November 23, 2026 21:56
@badcuban
badcuban added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit c94a0b8 Nov 23, 2026
49 of 51 checks passed
@badcuban
badcuban deleted the fix/acp-mcp-tool-fallback branch November 23, 2026 22:04

This branch was previously deployed

1 inactive deployment
Preview — fbd6bde1 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant