Repository navigation
feat: 支持可配置的 daemon 启动超时时间 - #15
Merged
Merged
Conversation
新增功能:
- 支持通过命令行参数 --timeout/-t 设置超时(秒)
- 支持通过环境变量 MCPS_DAEMON_TIMEOUT 设置超时(秒)
- 支持通过配置文件 daemonTimeout 字段设置超时(毫秒)
- 默认超时从 5 秒调整为 20 秒
优先级:命令行参数 > 环境变量 > 配置文件 > 默认值
使用示例:
mcps start --timeout 40
MCPS_DAEMON_TIMEOUT=25 mcps start
配置文件: { "daemonTimeout": 30000 }
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Resolved package.json and package-lock.json conflicts by using main branch version (1.1.1). 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.
功能概述
支持通过多种方式配置 daemon 启动超时时间,提供更灵活的配置选项。
主要变更
--timeout/-t设置超时(秒)MCPS_DAEMON_TIMEOUT设置超时(秒)daemonTimeout字段设置超时(毫秒)daemonTimeout可选字段使用方式
方式 1:命令行参数
# 设置 40 秒超时 mcps start --timeout 40 mcps start -t 40方式 2:环境变量
方式 3:配置文件
在
~/.mcps/mcp.json中添加:{ "mcpServers": { ... }, "daemonTimeout": 30000 }优先级
命令行参数 > 环境变量 > 配置文件 > 默认值(20秒)
测试计划
🤖 Generated with Claude Code