-
-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Description
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:
⚠ 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=100orXCODEBUILDMCP_OUTPUT_VERBOSITY=minimal - Tool parameter like
maxOutputLinesorverbosity - 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!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels