mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-12-05 11:39:26 +08:00
docs: 澄清运行时与 MCP 进程边界 / Clarify authoring runtime boundaries (#273)
真实 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.
This commit is contained in:
7 files changed
+15
-3
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "DesireCore Official Market",
|
"name": "DesireCore Official Market",
|
||||||
"version": "1.5.24",
|
"version": "1.5.25",
|
||||||
"schemaVersion": "1.1.0",
|
"schemaVersion": "1.1.0",
|
||||||
"supportedLocales": [
|
"supportedLocales": [
|
||||||
"zh-CN",
|
"zh-CN",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"description": "Use when the user needs to build, package or modify a custom Tool, MCP Server or device-protocol integration. Reuse existing execution and approval contracts. Requires actual runtimes, drivers/libraries and authorized devices/services; third-party licenses, deployment and costs depend on the chosen dependencies. Report missing prerequisites.",
|
"description": "Use when the user needs to build, package or modify a custom Tool, MCP Server or device-protocol integration. Reuse existing execution and approval contracts. Requires actual runtimes, drivers/libraries and authorized devices/services; third-party licenses, deployment and costs depend on the chosen dependencies. Report missing prerequisites.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"compatibility": "Requires DesireCore 10.0.203 or newer and actually available file/execution/configuration capabilities. Runtimes, third-party drivers/libraries, hardware and hosted services are not bundled by this Skill and require their applicable license, deployment, authorization and costs. Report unavailable prerequisites.",
|
"compatibility": "Requires DesireCore 10.0.203 or newer and actually available file/execution/configuration capabilities. Runtimes, third-party drivers/libraries, hardware and hosted services are not bundled by this Skill and require their applicable license, deployment, authorization and costs. Report unavailable prerequisites.",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"requiredClientVersion": "10.0.203",
|
"requiredClientVersion": "10.0.203",
|
||||||
"type": "procedural",
|
"type": "procedural",
|
||||||
"risk_level": "medium",
|
"risk_level": "medium",
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
},
|
},
|
||||||
"release": {
|
"release": {
|
||||||
"state": "known",
|
"state": "known",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"versionScheme": "semver"
|
"versionScheme": "semver"
|
||||||
},
|
},
|
||||||
"timestamps": {
|
"timestamps": {
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ process.stdin.on('end', () => {
|
|||||||
|
|
||||||
`script.runtime: node` uses only an already discovered managed Node, with command identifying a static entry inside the tool directory. A missing runtime fails explicitly without download or PATH fallback; establish actual managed Node availability first. For another runtime, omit runtime, set command to its real executable and pass the script path/options separately in `script.args`. Execution does not use a shell; do not place a shell program or variable user command in command.
|
`script.runtime: node` uses only an already discovered managed Node, with command identifying a static entry inside the tool directory. A missing runtime fails explicitly without download or PATH fallback; establish actual managed Node availability first. For another runtime, omit runtime, set command to its real executable and pass the script path/options separately in `script.args`. Execution does not use a shell; do not place a shell program or variable user command in command.
|
||||||
|
|
||||||
|
`node --version` or `process.execPath` proves only that interpreter runs, not that it is platform-managed Node. If only system Node has been verified, omit `script.runtime`, set command to that verified executable's absolute path and use `["run.cjs"]` as `script.args`; preserve a path containing spaces as one complete string. Reconcile these configurations after `SCRIPT_RUNTIME_UNAVAILABLE` rather than treating a successful Bash execution as an actual Tool invocation.
|
||||||
|
|
||||||
Parameters arrive as stdin JSON; stdout carries results and stderr diagnostics. JSON success cannot override a nonzero exit code. Install dependencies where this entry can actually resolve them and retain locked versions; do not assume access to a development workspace's node_modules or virtual environment. The default timeout is 30000 milliseconds, at most 600000. A new process per call is not a persistent device connection.
|
Parameters arrive as stdin JSON; stdout carries results and stderr diagnostics. JSON success cannot override a nonzero exit code. Install dependencies where this entry can actually resolve them and retain locked versions; do not assume access to a development workspace's node_modules or virtual environment. The default timeout is 30000 milliseconds, at most 600000. A new process per call is not a persistent device connection.
|
||||||
|
|
||||||
## Save, refresh and call
|
## Save, refresh and call
|
||||||
@@ -58,4 +60,6 @@ Use the original Write/Edit tools to author complete material, then `RefreshAgen
|
|||||||
|
|
||||||
Inspect purpose and current visibility through `ToolCatalog`. If an exact known name is undeclared, use `LoadTools(names=["actual tool name"])` (registered identity DiscoverTools); call the actual declaration on the next model request. Refresh does not widen a Run's fixed tool ceiling; changes to an already bound definition may require the next turn or a new session. For a missing name, inspect refresh diagnostics, enabled state, permissions and Run ceiling instead of inventing a result.
|
Inspect purpose and current visibility through `ToolCatalog`. If an exact known name is undeclared, use `LoadTools(names=["actual tool name"])` (registered identity DiscoverTools); call the actual declaration on the next model request. Refresh does not widen a Run's fixed tool ceiling; changes to an already bound definition may require the next turn or a new session. For a missing name, inspect refresh diagnostics, enabled state, permissions and Run ceiling instead of inventing a result.
|
||||||
|
|
||||||
|
`RefreshAgentFS` does not replace an execution implementation already bound to this turn. After changing a loaded Tool's command/runtime, if invocation still uses the old configuration, rediscover and verify on a subsequent turn or new session instead of repeatedly refreshing/retrying the old implementation. Successful direct script execution through Bash is not a formal Tool invocation receipt.
|
||||||
|
|
||||||
Actually invoke a harmless input, inspect output and invalid parameters plus relevant failure/timeout cases, then validate business operations on authorized hardware. Rediscover and call after restart. Tools belong to their Agent by default; copying/installing for another Agent follows that target's original authorization and is not global publication.
|
Actually invoke a harmless input, inspect output and invalid parameters plus relevant failure/timeout cases, then validate business operations on authorized hardware. Rediscover and call after restart. Tools belong to their Agent by default; copying/installing for another Agent follows that target's original authorization and is not global publication.
|
||||||
@@ -50,6 +50,8 @@ process.stdin.on('end', () => {
|
|||||||
|
|
||||||
`script.runtime: node` 只使用已发现的受管 Node,command 必须是工具目录内静态入口;缺运行时会明确失败,不下载也不回退 PATH。先确认真实受管 Node 可用。选择其它运行时则省略 runtime,command 为实际可执行文件,脚本路径与选项用 `script.args` 独立传递。它们不经过 shell;不要把一段 shell 程序或可变用户命令塞进 command。
|
`script.runtime: node` 只使用已发现的受管 Node,command 必须是工具目录内静态入口;缺运行时会明确失败,不下载也不回退 PATH。先确认真实受管 Node 可用。选择其它运行时则省略 runtime,command 为实际可执行文件,脚本路径与选项用 `script.args` 独立传递。它们不经过 shell;不要把一段 shell 程序或可变用户命令塞进 command。
|
||||||
|
|
||||||
|
`node --version` 或 `process.execPath` 只证明该解释器可运行,不证明它属于平台受管 Node。若当前只确认了系统 Node,可省略 `script.runtime`,将已验证的可执行文件绝对路径作为 command,`script.args` 使用 `["run.cjs"]`;路径含空格也保持为完整字符串。遇到 `SCRIPT_RUNTIME_UNAVAILABLE` 时重新核实这两种配置,不以 Bash 中运行成功替代实际 Tool 调用。
|
||||||
|
|
||||||
参数通过 stdin JSON 传入;stdout 返回结果,诊断写 stderr。返回 JSON 的 success 不能覆盖非零退出码。依赖应安装在真实可解析的位置并记录锁定版本,不假设工具目录能读取开发工作区的 node_modules/虚拟环境。默认 timeout 为 30000 毫秒,最大 600000;持久设备连接不要依赖每次启动的脚本进程存活。
|
参数通过 stdin JSON 传入;stdout 返回结果,诊断写 stderr。返回 JSON 的 success 不能覆盖非零退出码。依赖应安装在真实可解析的位置并记录锁定版本,不假设工具目录能读取开发工作区的 node_modules/虚拟环境。默认 timeout 为 30000 毫秒,最大 600000;持久设备连接不要依赖每次启动的脚本进程存活。
|
||||||
|
|
||||||
## 保存、刷新和调用
|
## 保存、刷新和调用
|
||||||
@@ -58,4 +60,6 @@ process.stdin.on('end', () => {
|
|||||||
|
|
||||||
用 `ToolCatalog` 检查用途和当前可见性;已知准确名称而未声明时,使用 `LoadTools(names=["实际工具名"])`(注册身份 DiscoverTools),加载后按真实声明发起下一次模型调用。刷新成功不代表当前 Run 固定上限扩大;改动已经绑定的定义可能需下一轮或新会话。名字缺失时核对刷新诊断、启用状态、权限与 Run 上限,不伪造调用结果。
|
用 `ToolCatalog` 检查用途和当前可见性;已知准确名称而未声明时,使用 `LoadTools(names=["实际工具名"])`(注册身份 DiscoverTools),加载后按真实声明发起下一次模型调用。刷新成功不代表当前 Run 固定上限扩大;改动已经绑定的定义可能需下一轮或新会话。名字缺失时核对刷新诊断、启用状态、权限与 Run 上限,不伪造调用结果。
|
||||||
|
|
||||||
|
`RefreshAgentFS` 不替换本轮已经绑定的执行实现。修改已加载 Tool 的 command/runtime 等配置后,如果调用仍使用旧配置,在下一轮或新会话重新发现并验证,不反复刷新重试旧实现;也不以 Bash 直接运行脚本的成功代替正式 Tool 调用回执。
|
||||||
|
|
||||||
先真实调用无副作用输入,检查输出、非法参数及必要的失败/超时;再在授权设备上验证业务。重启后重新发现并调用。工具默认属于自身 Agent;其他 Agent 的复制/安装和配置沿目标原授权,不因这里创建了目录就全局可用。
|
先真实调用无副作用输入,检查输出、非法参数及必要的失败/超时;再在授权设备上验证业务。重启后重新发现并调用。工具默认属于自身 Agent;其他 Agent 的复制/安装和配置沿目标原授权,不因这里创建了目录就全局可用。
|
||||||
@@ -6,6 +6,8 @@ Use when operations share connection/state or other MCP clients need the capabil
|
|||||||
|
|
||||||
Keep source, dependency manifests/locks and configuration schemas in authorized directories. Use the actual runtime path. A local stdio process writes only MCP protocol to stdout and diagnostics to stderr. Verify startup directory and module resolution rather than assuming Electron bundles your library or platform-specific native driver.
|
Keep source, dependency manifests/locks and configuration schemas in authorized directories. Use the actual runtime path. A local stdio process writes only MCP protocol to stdout and diagnostics to stderr. Verify startup directory and module resolution rather than assuming Electron bundles your library or platform-specific native driver.
|
||||||
|
|
||||||
|
Shared state belongs to the actual service process. Multiple Agents configuring the same stdio command normally start separate processes and do not automatically share serial handles. For an exclusive shared device, choose an appropriate governed service owner or explicit connection/locking design. MCP does not inherently serialize requests: implement device queues, concurrency and disconnect recovery as the protocol requires. The same mount name or a catalog listing does not resolve resource contention.
|
||||||
|
|
||||||
Identify the Agent Service host that accesses the device. A remote server's COM/USB devices are not the browser computer's hardware. External libraries, hardware and hosted services require their actual licenses, deployment and authorization; registering a connection does not provide them. Stop the affected operation and report missing prerequisites.
|
Identify the Agent Service host that accesses the device. A remote server's COM/USB devices are not the browser computer's hardware. External libraries, hardware and hosted services require their actual licenses, deployment and authorization; registering a connection does not provide them. Stop the affected operation and report missing prerequisites.
|
||||||
|
|
||||||
## Attach to your own Agent
|
## Attach to your own Agent
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
在获准目录保存服务源、依赖清单/锁文件和配置 Schema。使用真实运行时路径;本地 stdio 程序只向 stdout 写 MCP 协议,日志写 stderr。实际启动目录和模块解析必须经过验证,不能假设 Electron 内置了作者选择的库或平台相关原生驱动。
|
在获准目录保存服务源、依赖清单/锁文件和配置 Schema。使用真实运行时路径;本地 stdio 程序只向 stdout 写 MCP 协议,日志写 stderr。实际启动目录和模块解析必须经过验证,不能假设 Electron 内置了作者选择的库或平台相关原生驱动。
|
||||||
|
|
||||||
|
共享状态归实际服务进程所有。多个 Agent 各自配置同一 stdio 命令通常会各自启动进程,不会自动共享串口句柄;需要共享独占设备时,按实际目标选择一个受治理的服务 owner 或明确的连接/锁设计。MCP 不保证请求天然串行,设备队列、并发与断连恢复由实现按协议需要处理;不能把挂载同一名称或目录登记当作已解决资源竞争。
|
||||||
|
|
||||||
明确设备连接发生在哪台 Agent Service 宿主。远端服务上的 COM/USB 不是用户浏览器所在电脑的设备。外部库、硬件和托管服务按其许可证、部署和授权条件使用,连接登记不提供这些资源;缺条件时停止受影响操作并报告。
|
明确设备连接发生在哪台 Agent Service 宿主。远端服务上的 COM/USB 不是用户浏览器所在电脑的设备。外部库、硬件和托管服务按其许可证、部署和授权条件使用,连接登记不提供这些资源;缺条件时停止受影响操作并报告。
|
||||||
|
|
||||||
## 接入自身 Agent
|
## 接入自身 Agent
|
||||||
|
|||||||
Reference in new issue
Block a user