Skip to content

feat(rendering): Add configurable file path rendering#402

Merged
cameroncooke merged 2 commits intomainfrom
cameroncooke/feat/file-path-render-style
May 7, 2026
Merged

feat(rendering): Add configurable file path rendering#402
cameroncooke merged 2 commits intomainfrom
cameroncooke/feat/file-path-render-style

Conversation

@cameroncooke
Copy link
Copy Markdown
Collaborator

Add configurable file artifact rendering for text output.

CLI text output now defaults to a labeled Files: list so paths are easier to scan in terminal output, while MCP text output keeps the compact tree format that is better suited to tool responses. The render style can be overridden through filePathRenderStyle in project config, XCODEBUILDMCP_FILE_PATH_RENDER_STYLE, or --file-path-render-style on CLI tool commands.

This also routes resource rendering through the shared renderer so MCP resources use the same runtime-aware defaults, and updates snapshot normalization for the displayed ~/Library/Developer/XcodeBuildMCP paths produced by the new output.

Add a file path render style setting for text output so CLI output can use
labeled file lists while MCP text output preserves compact path trees.
Expose the setting through project config, environment, and the CLI option,
and update rendering tests and snapshots to cover both modes.
Sort expected child path lines so the renderer test does not depend on locale-sensitive ordering of home-directory and sibling paths.
@cameroncooke cameroncooke marked this pull request as ready for review May 7, 2026 18:28
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 7, 2026

Open in StackBlitz

npm i https://pkg.pr.new/xcodebuildmcp@402

commit: d432ec4

@cameroncooke cameroncooke merged commit 5f8c977 into main May 7, 2026
45 checks passed
@cameroncooke cameroncooke deleted the cameroncooke/feat/file-path-render-style branch May 7, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant