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

🏠 Remote-Dev: homespace
This commit is contained in:
Octavian Guzu 2026-04-23 17:07:32 +00:00
parent 8dfb31d8a5
commit 625ab08afd
No known key found for this signature in database

View File

@ -27,6 +27,8 @@ jobs:
with: with:
prompt: "List all available tools" prompt: "List all available tools"
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} 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: env:
# Change to test directory so it finds .mcp.json # Change to test directory so it finds .mcp.json
CLAUDE_WORKING_DIR: ${{ github.workspace }}/base-action/test/mcp-test CLAUDE_WORKING_DIR: ${{ github.workspace }}/base-action/test/mcp-test
@ -108,7 +110,10 @@ jobs:
with: with:
prompt: "List all available tools" prompt: "List all available tools"
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} 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: env:
# Change to test directory so bun can find the MCP server script # Change to test directory so bun can find the MCP server script
CLAUDE_WORKING_DIR: ${{ github.workspace }}/base-action/test/mcp-test CLAUDE_WORKING_DIR: ${{ github.workspace }}/base-action/test/mcp-test