Problem
When using build_device session-set-defaults (and likely other build tools), the response contains the full xcodebuild output which can be ~14k+ tokens. This is expensive when using AI assistants that charge per token.
Claude Code shows this warning:
⚠ Large MCP response (~14.0k tokens), this can fill up context quickly
Proposed Solution
Add a configuration option to control output verbosity/size:
- Environment variable like
XCODEBUILDMCP_MAX_OUTPUT_LINES=100 or XCODEBUILDMCP_OUTPUT_VERBOSITY=minimal
- Tool parameter like
maxOutputLines or verbosity
- Smart truncation - by default only return errors/warnings and last N lines of output, with option to get full output
Current Workaround
Using bash directly with output piping, but this loses the benefits of the MCP tool.
Thanks for the great tool!
Problem
When using
build_devicesession-set-defaults(and likely other build tools), the response contains the full xcodebuild output which can be ~14k+ tokens. This is expensive when using AI assistants that charge per token.Claude Code shows this warning:
Proposed Solution
Add a configuration option to control output verbosity/size:
XCODEBUILDMCP_MAX_OUTPUT_LINES=100orXCODEBUILDMCP_OUTPUT_VERBOSITY=minimalmaxOutputLinesorverbosityCurrent Workaround
Using bash directly with output piping, but this loses the benefits of the MCP tool.
Thanks for the great tool!