Skip to content

Commit 0f5d9e3

Browse files
sjarmakclaude
andcommitted
fix: add artifact_full to --mcp-config flag allowlist
Without this, artifact_full runs generate the .mcp.json config file and upload it to the container, but the --mcp-config flag is never added to the claude CLI command. This causes the agent to fall back to curl/WebFetch instead of using Sourcegraph MCP tools directly. The mcp_type check for setting mcp_config_flag was missing "artifact_full" despite the MCP setup function already handling it. Validated: fixed run shows 39 direct MCP tool calls (0 curl/WebFetch) vs broken run with 0 MCP calls (14 WebFetch + 19 curl). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 474a99a commit 0f5d9e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

agents/claude_baseline_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def create_run_agent_commands(self, instruction: str) -> list[ExecInput]:
715715

716716
# MCP configuration flag
717717
mcp_config_flag = ""
718-
if mcp_type in ["sourcegraph", "sourcegraph_full", "sourcegraph_base", "sourcegraph_isolated", "deepsearch", "deepsearch_hybrid"]:
718+
if mcp_type in ["sourcegraph", "sourcegraph_full", "sourcegraph_base", "sourcegraph_isolated", "artifact_full", "deepsearch", "deepsearch_hybrid"]:
719719
mcp_config_flag = "--mcp-config /logs/agent/sessions/.mcp.json "
720720

721721
# Build disallowed tools list (blocks local search to force MCP usage)

0 commit comments

Comments
 (0)