Repository navigation
feat: --json 参数支持直接传入 JSON 字符串 - #23
Merged
Merged
Conversation
--json 参数现在支持两种方式:
1. 直接传入 JSON 字符串(以 { 或 [ 开头)
2. 从 JSON 文件加载(路径形式)
示例:
mcps call server api --json '{"key": "value"}'
mcps call server api --json params.json
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- 将 parseCallArgs 和 loadJsonParams 提取为可测试的函数 - 添加 14 个单元测试覆盖各种场景: - 默认模式的 JSON 解析(数字、布尔值、对象) - --raw 模式的字符串处理 - --json 的字符串和文件加载 - 边界情况(空参数、无效参数等) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- 添加 PR 检查清单的详细说明 - 添加常见错误对照表(真实案例) - 添加功能开发完整流程的正确示例 - 添加 PR 已合并后继续提交的处理方法 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- 创建 DEVELOPMENT.md 包含完整的开发流程、PR 规范、常见错误等 - 简化 README.md 中的开发工作流章节为快速指引 - README 中保留链接指向完整文档 Co-Authored-By: Claude Sonnet 4.5 <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.
变更
--json 参数现在支持两种方式:
示例
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com