Repository navigation
feat: 支持 mcps call 自定义超时时间 - #35
Merged
Merged
Conversation
新增 --timeout 选项,以秒为单位覆盖 SDK 默认 60s 超时。 变更文件: - src/commands/call.ts: 添加 --timeout CLI 选项 - src/commands/daemon.ts: /call handler 透传 timeout - src/core/client.ts: callTool() 接收 timeout 参数 - src/core/daemon-client.ts: executeTool() 透传 timeout 用法:mcps call <server> <tool> args... --timeout 180 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- --timeout 不传时默认 300s 而非 SDK 的 60s - 更新 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.
变更内容
为
mcps call命令新增--timeout选项,允许用户覆盖 MCP SDK 的默认 60 秒请求超时。使用方式
变更文件
src/commands/call.ts-t, --timeoutCLI 选项,秒到毫秒转换src/commands/daemon.ts/callhandler 从 body 解出 timeout 并透传src/core/client.tscallTool()接收timeout参数传给 SDKsrc/core/daemon-client.tsexecuteTool()透传 timeout 到 daemon验证
npm run build✅ TypeScript 编译通过npm test✅ 全部 62 测试通过v1.7.0