sim icon indicating copy to clipboard operation
sim copied to clipboard

MCP Tool block cannot execute on a Credential Group managed connection (mcp-cg-*)

Open mzxchandra opened this issue 2 months ago • 0 comments

Summary

The standalone MCP Tool block (mcp) cannot execute a tool on a Credential Group managed connection (mcp-cg-*). The identical tool, on the identical connection, executes successfully when reached through an agent's mcp-server-advanced tool.

Reproduction

Workspace 6056c597-cd15-40a5-b6ba-831347b80473 (staging), one workflow, two runs minutes apart, same executing user ([email protected]), same deployed workflow, after the Credential Group workflow-access grant was in place.

Works — agent block with mcp-server-advanced, serverId: mcp-cg-GsSOF28euNUFuEWumbliB Run 449b4698-54f6-40b0-b1cc-3f64464f0622. Trace shows spans executing successfully, e.g.

mcp-cg-GsSOF28euNUFuEWumbliB-fireflies_get_transcripts | success

Fails — mcp block, same connection Run e24ccdd6-97d6-4f59-ba55-d3d33cfa57ad, and 205d0a1d-50ac-45f2-9330-8fe5008d05bd.

input : {"tool": "fireflies_get_transcripts",
         "server": "mcp-cg-GsSOF28euNUFuEWumbliB",
         "arguments": {"fromDate": "2026-08-15", "mine": true, "limit": 25, "format": "json"}}
output: {"error": "Resource not found"}

Block inputs resolve correctly, and createMcpToolId(server, tool) yields mcp-cg-GsSOF28euNUFuEWumbliB-fireflies_get_transcripts — character for character the tool id that succeeds on the agent path.

Ruled out

  • Tool id parsing. parseMcpToolTarget handles the mcp-cg- prefix before falling through, and parseMcpToolId (which would mis-split mcp-cg-<id> into server mcp-cg) is only ever called from inside it.
  • The Credential Group policy. Granting the workflow in WorkflowCredentialAccess fixed the agent path and changed nothing for the block. Both runs above are after the grant, deployed, so execution:WorkflowMode is deployment.
  • Connection ownership. It fails using the executing user's own connection, not only another enrollee's.

Not pinned

Remaining suspects are the block's dynamic tool resolution (McpBlock.tools.config.tool builds the id but tools.access is empty) and the assertToolPermissionsWithRetry preflight that runs for mcp-kinded tools, where the block and agent paths may present a different resolveToolScope.

Why it matters

mcp-server-advanced exposes an entire MCP server to the model with no way to restrict it to read-only tools, and usageControl: 'force' governs whether a tool is called, not which. In an unattended ingest workflow this is a real hazard: with the agent workaround in place, a run whose query returned empty explored the surface and executed four mutations against a real Fireflies meeting — move_meeting, update_meeting_privacy, create_soundbite, update_meeting_title.

The mcp block is the correct shape for unattended work precisely because it calls exactly one named tool and cannot explore. While it does not work with managed connections, the safe shape is unavailable and the available shape is unsafe.

Expected

mcp block with server set to an mcp-cg-* managed connection id executes the named tool, the same as mcp-server-advanced does.

mzxchandra avatar Sep 02 '26 18:09 mzxchandra