Repository navigation
feat: enhance tools command to display nested object properties - #27
Merged
Merged
Conversation
…dd JSON output - 修复嵌套 object 类型参数不展开显示的问题,现在递归显示所有嵌套属性 - 添加数组类型的元素类型显示(例如:array of string) - 添加枚举值选项显示(例如:string ["value1", "value2"]) - 新增 --json 选项,可输出原始 JSON schema 方便调试 - 更新 README.md 和 README.zh.md 文档,包含新的输出示例和选项说明 修复问题:之前 tools 命令输出嵌套对象参数时只显示 "object" 而不展开内部结构, 导致用户无法看到完整的参数定义,影响了工具的使用体验。 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Remove unused import of captureConsole - Add type annotations (any) to fix type inference issues - All 40 tests passing
- Add `npm run check` script that runs build and test together - Update DEVELOPMENT.md to emphasize the importance of running build before test - Add common error case: only running npm test without build - Update PR checklist to highlight TypeScript compilation check This prevents the issue where vitest passes but tsc fails, which caught us in PR #27. 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.
🎯 功能改进
增强
mcps tools命令,完整显示工具参数的结构信息,解决之前嵌套对象参数只显示 "object" 导致信息缺失的问题。✨ 主要改进
1. 递归显示嵌套对象结构
params: object2. 显示数组元素类型
owner_ids: arrayowner_ids: array of string (Open ID of the file owner)3. 显示枚举值选项
member_type: stringmember_type*: string ["email", "openid", "unionid", ...]4. 新增
--json选项📝 示例对比
修复前:
修复后:
🧪 测试
📚 文档
🏷️ 版本
✅ PR 检查清单
main分支创建的功能分支npm version更新npm run build构建成功npm test所有测试通过Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com