## 中文
### 背景
DesireCore 主仓
[desirecore/desirecore#6228](https://github.com/desirecore/desirecore/pull/6228)(ADR-366)把
stdio MCP 服务端的连接测试期限从 30 秒改为 120 秒:uvx / npx 首次启动要先下载依赖,30
秒常常不够。测试结果要等子进程回收后才返回,最长约 130 秒。
内置技能「自建 Tool 与 MCP」(`tool-mcp-authoring`)的 MCP 服务参考引导 Agent 经
`HttpRequest` 调 `POST /api/mcp/test-connection`,但没有写
`timeout`。`HttpRequest` 缺省 30 秒,会先于服务端测试结束:Agent
只看到「请求超时」,看不到期限说明、stderr 尾部与启动未完成提示。
### 改动
-
`references/mcp-server.zh-CN.md`、`references/mcp-server.md`:test-connection
调用补一句:首次启动可能约两分钟才返回,经 `HttpRequest` 调用时传 `timeout: 150000`。中英两份内容一致。
- 技能版本 1.0.1 → 1.0.2(`SKILL.md` 与 `catalog-metadata.v1.json`),市场版本
1.5.25 → 1.5.26。
旧客户端的连接测试仍是 30 秒,多传 `timeout` 不影响它们。
### 验证
- `validate-i18n.py`:0 个错误
- `validate_catalog_metadata.py --require-complete`:0 个错误
- `translate.py --check`:退出码 0;技能正文与元数据字符串没有变,翻译哈希仍然有效
- diff 不含凭据,内容与客户无关
主仓的 `defaults/market.zip` 不在本 PR 范围内,合入后再另行运行 `npm run sync-market`。
## English
### Background
DesireCore
[desirecore/desirecore#6228](https://github.com/desirecore/desirecore/pull/6228)
(ADR-366) raises the connection-test deadline for stdio MCP servers from
30 to 120 seconds, because uvx / npx often need longer than 30 seconds
to download dependencies on first launch. The result is returned only
after the child process is reclaimed, so it can take about 130 seconds.
The MCP server reference of the built-in "Self-authored Tools and MCP"
skill (`tool-mcp-authoring`) tells the Agent to call `POST
/api/mcp/test-connection` through `HttpRequest` without a `timeout`.
`HttpRequest` defaults to 30 seconds and gives up before the server-side
test finishes. The Agent then sees only "request timed out" and never
gets the deadline message, the stderr tail or the startup hint.
### Changes
- `references/mcp-server.zh-CN.md` and `references/mcp-server.md`: the
test-connection call now says a first launch can take about two minutes
and that `HttpRequest` calls should pass `timeout: 150000`. Both
languages say the same thing.
- Skill version 1.0.1 → 1.0.2 (`SKILL.md` and
`catalog-metadata.v1.json`); market version 1.5.25 → 1.5.26.
Older clients still use a 30-second connection test; the extra `timeout`
does not affect them.
### Validation
- `validate-i18n.py`: 0 errors
- `validate_catalog_metadata.py --require-complete`: 0 errors
- `translate.py --check`: exit code 0; the skill body and metadata
strings are unchanged, so translation hashes stay fresh
- The diff contains no credentials and stays customer-neutral
Updating `defaults/market.zip` in the main repository is out of scope
here; `npm run sync-market` runs separately after this merges.
真实 Agent 按作者指南构建回显工具时,把 PATH 上的系统 Node 当成受管 Node,实际调用收到
SCRIPT_RUNTIME_UNAVAILABLE;修改配置后同轮仍绑定旧实现。另一次方案输出把 stdio MCP 误当作跨 Agent
共享进程及天然串行服务。双语参考明确这三个边界,保留原执行、刷新和权限合同,并递增 Skill 与市场版本。
Real Agent validation exposed confusion between system and managed Node,
an already-bound Tool implementation after refresh, and
shared/serialized stdio MCP processes. Clarify these boundaries in both
localized references, without adding execution policy or prescribing a
device implementation.
验证 / Validation: market structure/catalog validation passes (0 errors);
translation hashes remain fresh because entry body/strings are
unchanged. Both localized examples pass the real Tool Schema and
executable valid/invalid-input checks. Full-tree credential-pattern scan
has zero hits; content and Git metadata remain customer-neutral.
用户要求自建可复用工具或设备协议接入时,现有指南缺少从代码到工具登记与调用的完整路径。新增双语 tool-mcp-authoring
Skill,提供 AgentFS Tool 和 MCP 作者合同、依赖/权限及生命周期验证;同步内置清单和目录元数据。修正
app-developer 的正文、参考和示例,作者动作统一使用 AppAuthoring,安装生命周期保留 AppManage。
When users request reusable tools or device integrations, the existing
guidance does not explain the complete
code-to-registration-to-invocation path. Add bilingual Tool/MCP
authoring guidance and references, and update builtin/catalog metadata.
Migrate app-developer authoring instructions and examples to
AppAuthoring while keeping installation lifecycle on AppManage.
验证 / Validation: market i18n and complete catalog validation pass (0
errors; existing governance warnings retained); all translation
freshness checks pass. Both localized script examples pass the real Tool
frontmatter Schema, execute valid input and reject invalid input.
Full-tree credential-pattern and customer-neutrality checks pass. No
hardware operation, model decision or full application release is
claimed.