From 625ab08afd4d679b2aa75e347e1fbccf9e3890ab Mon Sep 17 00:00:00 2001 From: Octavian Guzu Date: Thu, 23 Apr 2026 17:07:32 +0000 Subject: [PATCH] Update MCP server tests for new setting_sources default - test-mcp-integration: opt in to project settings so .mcp.json is discovered - test-mcp-config-flag: replace removed mcp_config input with claude_args --mcp-config :house: Remote-Dev: homespace --- .github/workflows/test-mcp-servers.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-mcp-servers.yml b/.github/workflows/test-mcp-servers.yml index a3182b4..3f20eee 100644 --- a/.github/workflows/test-mcp-servers.yml +++ b/.github/workflows/test-mcp-servers.yml @@ -27,6 +27,8 @@ jobs: with: prompt: "List all available tools" anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + # base-action defaults setting_sources to "user"; opt in to project so .mcp.json is discovered + setting_sources: "user,project" env: # Change to test directory so it finds .mcp.json CLAUDE_WORKING_DIR: ${{ github.workspace }}/base-action/test/mcp-test @@ -108,7 +110,10 @@ jobs: with: prompt: "List all available tools" anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - mcp_config: '{"mcpServers":{"test-server":{"type":"stdio","command":"bun","args":["simple-mcp-server.ts"],"env":{}}}}' + # mcp_config input was removed; pass via claude_args. setting_sources stays at the + # default ("user") so .mcp.json is NOT auto-discovered — this proves the flag works. + claude_args: >- + --mcp-config '{"mcpServers":{"test-server":{"type":"stdio","command":"bun","args":["simple-mcp-server.ts"],"env":{}}}}' env: # Change to test directory so bun can find the MCP server script CLAUDE_WORKING_DIR: ${{ github.workspace }}/base-action/test/mcp-test