buzz icon indicating copy to clipboard operation
buzz copied to clipboard

buzz-app: allow explicitly tool-less ACP sessions without HTTP MCP support

Open fgdghooperator opened this issue 3 weeks ago • 0 comments

Summary

Current block/buzz-app main rejects every generic ACP harness that does not advertise HTTP MCP support during process startup, including callers that would open an explicitly tool-less ACP session.

This is distinct from the MCP injection and multi-server configuration gaps tracked in block/buzz #4550, #6034, and #6023. Those concern which MCP servers can be supplied. This issue concerns the unconditional HTTP capability gate when the lower-level session API supports zero MCP servers.

Current-main reproduction

Tested at block/buzz-app main commit f9ce9dfc4ae8ea69ad82c6dcd270e570077ce6de.

The focused upstream test suite passes and explicitly confirms the current behavior:

src/features/agent-harness/acp/client.test.ts
✓ starting a harness > refuses a harness that cannot take Buzz tools over HTTP MCP

Test Files  1 passed (1)
Tests      24 passed (24)

The decisive code is in src/features/agent-harness/acp/process.ts:

if (init.agentCapabilities?.mcpCapabilities?.http !== true)
  throw new Error(
    `This ${hooks.label} cannot reach Buzz tools (no HTTP MCP support)`,
  );

That check runs unconditionally during AcpProcess.start(), before any session is opened.

The lower-level AcpProcess.open() API models tools as optional and sends mcpServers: [] when tools is absent. However, the current AgentSessions production caller always supplies this.options.tools. This therefore blocks a future or dedicated tool-less ACP path; it does not mean an existing production launch currently requests zero MCP servers.

Impact

A caller cannot currently use the generic ACP process abstraction for a genuinely tool-less session with a runtime that lacks HTTP MCP support. Supporting that mode requires both an explicit tool-less caller/contract and moving or conditioning the capability check without weakening the existing tool-backed path.

Expected behavior

Make tool requirements explicit without weakening existing callers:

  • existing tool-backed callers continue to require HTTP MCP and fail clearly;
  • an explicitly tool-less launch/session may initialize a harness without HTTP MCP support and sends mcpServers: [];
  • if a process admitted for tool-less use is later asked to open a tool-backed session, reject before starting or exposing the Buzz MCP server;
  • do not infer tool-less operation merely because serve is absent.

The exact API can follow the maintainers' preferred contract, but the default should preserve today's tool-backed behavior.

Suggested regression tests

  1. The existing/default tool-backed launch rejects a harness without HTTP MCP support.
  2. An explicitly tool-less launch accepts the same harness.
  3. Its tool-less session receives mcpServers: [].
  4. Attempting to open a tool-backed session on a non-HTTP harness rejects before creating or disclosing an MCP server.
  5. Existing HTTP-capable bundled-runtime behavior remains unchanged.
  6. Protected Buzz environment credentials remain stripped in both modes.

If this mode fits the intended generic-harness contract, I can contribute tests first and a focused fix in block/buzz-app.

fgdghooperator avatar Nov 06 '26 06:11 fgdghooperator