feat: ergonomic enhancements — @file, --pick, --timeout, stdin merge#4
Merged
feat: ergonomic enhancements — @file, --pick, --timeout, stdin merge#4
Conversation
- @file/@- syntax for reading flag values from files or stdin - --pick flag for lightweight JSON field extraction - --timeout per-call timeout override - --stdin now merges with CLI flags (flags win on conflict) - Updated MCPX.md generation with new feature docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@file/@-syntax: Any string flag now accepts@/pathto read from a file or@-/-to read from stdin — eliminates shell escaping pain for large content (e.g.--body @/tmp/code.go)--pickflag: Lightweight JSON field extraction without jq (e.g.--pick user.name,--pick items.0)--timeoutflag: Per-call timeout override using Go duration format (e.g.--timeout 60s)--stdincan now be combined with CLI flags; flags win on conflict — enables mixed large+small argumentsmcpx configurenow generates docs covering all new features including tips for AI agentsTest plan
go test ./...)TestResolveStringValue,TestParseToolFlagsPartial,TestPickField(7 cases)--body @/tmp/fileinTestParseToolFlagsmcpx serena find_symbol --name_path_pattern Foo --pick bodymcpx serena replace_symbol_body --body @/tmp/newcode.go --name_path Foo --relative_path src/main.goecho '{"body":"x"}' | mcpx serena replace_symbol_body --name_path Foo --relative_path f.go --stdinmcpx configure --global— verify updated MCPX.md content🤖 Generated with Claude Code