Skip to content

feat: add request/response logging for tool calls - #28

Merged
maplezzk merged 6 commits into
mainfrom
feature/tool-call-logging
Feb 14, 2026
Merged

maplezzk merged 6 commits into
mainfrom
feature/tool-call-logging

Conversation

@maplezzk

Copy link
Copy Markdown
Owner

Summary

  • 在 McpClientService.callTool() 方法中添加请求/响应日志
  • 仅在 MCPS_VERBOSE=true 时记录日志
  • 日志格式:[Tool Request] Server: xxx, Tool: xxx, Args: {...} 和 [Tool Response] Server: xxx, Tool: xxx, Result: {...}
  • 添加单元测试覆盖日志格式和环境变量行为

Test plan

  • 运行 npm run check 确保构建和测试通过
  • 在实际工具调用中验证日志输出

🤖 Generated with Claude Code

Claude Bot and others added 6 commits February 15, 2026 07:43
- Add request/response logging in callTool method
- Only log when MCPS_VERBOSE=true
- Add unit tests

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…nges

- Change "更新版本号(如需要)" to "更新版本号(必须)"
- Update PR checklist to require version bump for every change
- Update complete workflow example to emphasize mandatory version update

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Remove MCPS_VERBOSE requirement for tool call logging
- Tool request/response is now logged by default

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@maplezzk
maplezzk merged commit 2e54bc2 into main Feb 14, 2026
1 check passed
@maplezzk
maplezzk deleted the feature/tool-call-logging branch February 14, 2026 23:52
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