Repository navigation
fix: require explicit host tool inputs - #4
Merged
Merged
Conversation
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.
问题与结果
模型偶发调用需要远端目标的
ssh_*工具时漏传必填host,DSH/MCP 随后正确返回 schema 校验错误,导致一次无意义重试。本 PR 同步权威
ssh-operator-mcp v0.18.2:hostschema 说明以REQUIRED开头,要求每次显式传具体 OpenSSH alias,不能依赖对话上下文推断。ssh_exec({ host: "wsl-ubuntu", command: "pwd" })。ssh_doctor可省略host;只接受processId或无需参数的进程、日志、恢复工具不得添加虚构host。0.2.2。不修改 DSH 的校验或重试行为。
验证
pnpm peers check、73 个核心测试、4 个 Bundle/Skill/locale 测试、30 工具 MCP 握手pnpm run release:prepare -- v0.2.2npm pack --dry-run --json --ignore-scriptsgit diff --check