You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add Claude Code compatibility workaround for MCP specification violation
Add XCODEBUILDMCP_CLAUDE_CODE_WORKAROUND environment variable to consolidate
multiple content blocks into single text responses. This works around Claude Code''s
MCP spec violation where it only shows the first content block, preventing users
from seeing test results when stderr warnings are present.
Changes:
- Add consolidateContentForClaudeCode() utility function in validation.ts
- Update build-utils.ts and test-common.ts to apply consolidation
- Document new env var in CLAUDE.md
- Preserve correct MCP format by default, consolidate only when enabled
Fixes issue where test_sim_id_proj returns stderr warnings as errors,
preventing access to test results in Claude Code.
Co-authored-by: Cameron Cooke <cameroncooke@users.noreply.github.com>
-**Behavior**: Only the `discover_tools` tool is available initially. You can use this tool by providing a natural language task description. The server then uses an LLM call (via MCP Sampling) to identify the most relevant workflow group and dynamically loads only those tools. This conserves context window space.
-**Purpose**: Workaround for Claude Code's MCP specification violation where it only displays the first content block in tool responses.
58
+
-**Behavior**: When enabled, multiple content blocks are consolidated into a single text response, separated by `---` dividers. This ensures all information (including test results and stderr warnings) is visible to Claude Code users.
59
+
55
60
### Core Architecture Layers
56
61
1.**MCP Transport**: stdio protocol communication
57
62
2.**Plugin Discovery**: Automatic tool AND resource registration system
0 commit comments