Skip to content

feat(opskat): add OpsKat MCP plugin - #1

Merged
FFatTiger merged 6 commits into
FFatTiger:mainfrom
Pililink:feat/opskat-plugin
Dec 1, 2026
Merged

FFatTiger merged 6 commits into
FFatTiger:mainfrom
Pililink:feat/opskat-plugin

Conversation

@Pililink

Copy link
Copy Markdown
Contributor

Summary / 变更说明

  • Plugin ID / 插件 ID: opskat
  • Version / 版本: 1.0.2
  • Type / 类型:
    • New tool plugin (MCP) / 新增工具插件
    • New provider plugin / 新增供应商插件
    • Update or bug fix / 更新或修复已有插件
    • Docs or tooling / 文档或脚本

Add a zero-dependency tool plugin for OpsKat (opsctl mcp) that locates the locally installed opsctl binary and launches opsctl mcp over stdio with keepAlive: true (to preserve per-process session grants and loaded help docs) and a bundled skills/opskat/SKILL.md guide.

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 / 权限与风险

  • Declared permissions / 声明权限: subprocess, network
  • Upstream source / 上游仓库: https://github.com/opskat/opskat
  • Account / ToS or local-access notes / 风险说明: Launches the user's locally installed opsctl CLI (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 / 验证记录

  • Ran node scripts/build-index.mjs (exit code 0) and committed updated index.json.
  • Ran node --test opskat/test/launch.test.mjs (4/4 passed, including Windows .cmd/.bat spawn handling via cmd.exe with spaced paths).
  • Verified end-to-end inside Hob (v1.20.0 + feat(plugins): support standard MCP elicitation cards hob#55) on both Windows and macOS ARM64 against real opsctl v1.16.0-nightly.20261128 (8f8cf12): plugin install from custom source, icon display, bundled opskat skill loading, list_assets read-only call, and request_permission triggering a live MCP elicitation card and round-trip refusal.

Checklist / 自查清单

  • Read CONTRIBUTING.md (中文)
  • Ran node scripts/build-index.mjs and committed the updated index.json
  • No hardcoded secrets, tokens, or private addresses; secret fields marked "sensitive": true
  • Provider plugins pin exact version, sha512-... integrity, matching package.json, and bun.lock (N/A: tool plugin)
  • Commit messages follow English Conventional Commits (type(scope): subject)

Pililink and others added 6 commits November 27, 2026 19:06
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.
@FFatTiger
FFatTiger merged commit 75a5d33 into FFatTiger:main Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants