Repository navigation
feat(opskat): add OpsKat MCP plugin - #1
Merged
Merged
Conversation
Add a zero-dependency OpsKat tool plugin that locates local opsctl and launches opsctl mcp over stdio for native Hob MCP elicitation. - Add plugin.json, mcp.json, launch.mjs, icon.svg, and automated launcher tests - Handle Windows .cmd/.bat shims via cmd.exe to avoid Node 22+ spawn EINVAL - Regenerate index.json via scripts/build-index.mjs
…e skill - Remove deprecated --approval-mode option (opsctl mcp now auto-negotiates MCP form elicitation) and support optional --session - Enable keepAlive so per-process session grants and loaded help docs survive idle periods - Add macOS app bundle fallback path and bundle skills/opskat/SKILL.md usage guidance - Bump plugin version to 1.0.1 and regenerate index.json
Use a 256x256 PNG exported from OpsKat's official appicon.png, remove placeholder icon.svg, bump version to 1.0.2, and regenerate index.json.
Make the POSIX launcher fixture executable, reject non-file binaries, and reject cmd.exe metacharacter expansion inputs. Mark the authorization session sensitive, disclose local credential access and the required OpsKat nightly version, and bump the plugin version for the capability change.
Describe the required OpsKat nightly capability without relying on a build-date boundary, and keep the configuration text readable in the Hob settings view.
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.
Summary / 变更说明
opskat1.0.2Add a zero-dependency tool plugin for OpsKat (
opsctl mcp) that locates the locally installedopsctlbinary and launchesopsctl mcpover stdio withkeepAlive: true(to preserve per-process session grants and loadedhelpdocs) and a bundledskills/opskat/SKILL.mdguide.Interactive approval prompts use standard MCP form elicitation (rendered natively as Hob cards with FFatTiger/hob#55, and falling back to the running OpsKat desktop app on older Hob versions).
为 OpsKat 新增零依赖工具插件:自动定位本机
opsctl并以 stdio 透传拉起opsctl mcp,配置keepAlive: true以保留本会话授权与已加载的工具文档,并附带官方图标与skills/opskat/SKILL.md使用引导。审批确认走标准 MCP 表单交互(配合 FFatTiger/hob#55 在 Hob 内直接渲染为确认卡片,旧版 Hob 自动回落至 OpsKat 桌面端弹窗)。Permissions & Risk / 权限与风险
subprocess,networkopsctlCLI (opsctl mcp) using their local OpsKat asset inventory and policy rules. All sensitive asset credentials remain encrypted inside OpsKat and are never exposed to the model; write operations follow OpsKat's policy & human approval gates.Verification / 验证记录
node scripts/build-index.mjs(exit code 0) and committed updatedindex.json.node --test opskat/test/launch.test.mjs(4/4 passed, including Windows.cmd/.batspawn handling viacmd.exewith spaced paths).opsctl v1.16.0-nightly.20261128(8f8cf12): plugin install from custom source, icon display, bundledopskatskill loading,list_assetsread-only call, andrequest_permissiontriggering a live MCP elicitation card and round-trip refusal.Checklist / 自查清单
node scripts/build-index.mjsand committed the updatedindex.json"sensitive": trueversion,sha512-...integrity, matchingpackage.json, andbun.lock(N/A: tool plugin)type(scope): subject)