
Cork MCP
io.github.Servosity由 GitHub 账号 Servosity 发布v0.1.9更新于 Nov 7, 2026
Every Cork API operation, plus cross-client risk attribution and exploitability-first vuln triage.
概览
面向 Cork 安全平台的非官方本地 MCP 服务器,让助手为 MSP 租户做跨客户风险归因、漏洞优先级排序与合规检查。
- 可以做什么
- 归因并排序风险分数变化,找出分数退步的客户
- 按可利用性对漏洞排序,并查询是否受某个 CVE 影响
- 查找逾期合规事件、覆盖缺口与未担保客户的风险敞口
- 检查连接器健康状态,并把 Cork 数据同步到本地 SQLite 镜像
- 调用 Cork API 的各类操作,包括集成管理与软件安装
- 适用场景
- 适合已经在使用 Cork 的托管服务商,希望从 AI 助手中直接提出跨客户问题,例如某客户风险分数为何变化、应先修补什么、哪些连接器已停止同步,而不必在门户中逐个客户点击查看。
- 运行要求
- 以本地进程(stdio)在桌面运行,README 提供 macOS、Linux 与 Windows 的一行安装脚本。需要在 CORK_API_KEY 中提供 Cork API 密钥,区域或自建主机可另设 CORK_BASE_URL。HTTP 模式还需 CORK_MCP_HTTP_TOKEN。需要能访问 Cork API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Cork MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Cork + AI - for Claude, the ChatGPT desktop app, GitHub Copilot, Gemini CLI, and any agent that speaks MCP
Unofficial. Community-built Claude Code Skill and MCP server for the Cork API. Not affiliated with, endorsed by, or sponsored by Cork. Cork and Cork Vantage are trademarks of Cork Protection, Inc.
[Cork - MCP server and Claude Code Skill]
Full skill page - install, outcomes, safety model.
Every Cork API operation, plus cross-client risk attribution, exploitability-first vulnerability triage, overdue-compliance detection, and stale-connector health checks that a stateless API mirror cannot answer in a single call. Works with the AI you already use - ChatGPT (desktop app), Claude Desktop, Codex, Claude Code, Claude Cowork, and GitHub Copilot - plus Gemini CLI. Free, open source, runs on your laptop. Built for MSP owners. No code required.
Works with your agent
Security note. Local agents use the default stdio transport and need no network listener. HTTP mode (
--transport http) refuses to start untilCORK_MCP_HTTP_TOKENis set, rejects any request without that bearer token, serveshttp://127.0.0.1:7777/mcpby default, and needs--tls-certand--tls-keyfor any other address. It refuses a request body over 4 MiB or one that takes longer than 30 seconds to arrive. Whoever holds the token can call every tool with your Cork API key. Every tool that changes Cork data returns a preview and sends nothing until the call carriesconfirm: true. SetCORK_MCP_READ_ONLY=1on any host that only needs to read: it removes every tool not marked read-only. See mcp-install.md.
The six agents MSP owners actually use (self-serve, works today):
The ChatGPT desktop app runs cork-mcp locally and shares MCP configuration with Codex (OpenAI). ChatGPT on the web needs a remote (HTTP) server. msp-skills does not support a web-only AI app yet (see mcp-install.md). If your team works there, a hosted gateway is the better pick; check that your AI app is on the gateway's setup list.
Also for the Microsoft and Google stacks
Big install base, but an honest heads-up: Gemini CLI runs the local binary you just installed, while Microsoft 365 Copilot and the Gemini app need a remote server, which msp-skills does not support yet.
Skill-native agents (also covered): Hermes and OpenClaw read this skill's
SKILL.mddirectly and speak MCP - see their install sections below. Also works with Cursor, Windsurf, Cline, Continue.dev, and Zed via MCP. Full per-tool wire-up: docs/which-agent.md.
Run more than one agent? Install across all 51+ supported agents in one command:
npx skills add Servosity/msp-skills@latest(requires Node.js, then run the per-skill installer for the CLI/MCP binaries). See docs/which-agent.md.
Install in 60 seconds
Prefer the Claude Code plugin? Add the marketplace once, then install:
Path A - paste one prompt into your AI agent (recommended)
Copy this into Claude Code, Codex CLI, or Claude Cowork:
Install the Cork Skill and MCP server from Servosity/msp-skills in this agent workspace. If this workspace uses a POSIX shell (macOS, Linux, WSL, or Bash), run
bash <(curl -fsSL https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/cork/install.sh). If it uses Windows PowerShell, runiwr -useb https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/cork/install.ps1 | iex. Then authenticate per the README and runcork-cli --helpto explore.
The same prompt works in any agent that can run shell.
Path B - run the installer yourself
Windows (PowerShell):
macOS / Linux:
The installer drops both cork-cli (the CLI) and cork-mcp (the MCP server) into your user bin path. Claude Code, Codex, and Cowork discover the Skill via SKILL.md in this directory.
Verify:
Upgrade to the latest version
The installer always fetches the current release - re-run it to upgrade:
macOS / Linux:
Windows (PowerShell):
Claude Code plugin users: /plugin update cork@msp-skills.
Add to Claude Desktop, the ChatGPT desktop app, GitHub Copilot, Gemini CLI, or another MCP client
After the installer runs, see mcp-install.md and docs/which-agent.md for the per-agent wire-up - one section per agent, including the GitHub Copilot servers key and the ChatGPT desktop app. Claude Desktop's Settings > Extensions panel is the simplest path; the MCP config block (for users who prefer editing JSON) is documented in mcp-install.md.
Install for Hermes
From the Hermes CLI:
Inside a Hermes chat session:
Hermes speaks MCP natively, so it can also use the cork-mcp server directly - same install path, same env vars.
Install for OpenClaw
Tell your OpenClaw agent (copy this):
Install the cork skill from https://github.com/servosity/msp-skills/tree/main/skills/cork. The skill defines how its required CLI (
cork-cli) can be installed via theopenclaw:frontmatter block.
OpenClaw isn't generally available yet; the frontmatter wiring is pre-shipped and will activate the moment OpenClaw launches.
Authenticate
Set the API key the CLI needs (Cork portal > Settings > API Keys):
doctor confirms the credentials work before you run anything that touches data. It exits 0 even when the credential is rejected, so scripts should add --fail-on error.
One property of Cork keys is worth knowing up front: an API key inherits the permissions of the user who created it. A 403 on the distributor or integration endpoints usually means the key was minted by an operator without that scope, not that the key is wrong. That property is also your best control - mint a read-only key for read-only work. See governance.md.
Sync before you ask
search, score regressions, and the client-roster lookups inside several other commands read a local mirror. Populate it once:
sync is read-only against the Cork API (GET requests only) and writes to a SQLite file under your own user account. Re-run it whenever you want fresher data; commands tell you when the mirror is stale rather than answering from data you did not expect.
What this skill does
Full command reference: guide.md. For the AI-agent operating contract (--agent, --dry-run, when to confirm before mutating), see AGENTS.md.
What makes this different
Cork's own tooling is a stateless mirror of its REST API: it answers one client, right now. Every question an MSP actually asks is cross-client, cross-time, or both, and the Cork API exposes no cross-client aggregate endpoint at all, so the live path for any of them is a fan-out across every client with no stored yesterday to compare against.
This skill syncs Cork into a local SQLite mirror and does the fan-out and the joining for you, so "the risk score dropped" becomes "the risk score dropped because compliance moved, and here are the overdue events behind it" - one command instead of a per-client walk you assemble by hand.
Only score regressions answers purely from the local mirror. The other seven fetch from the Cork API on every run, because the rows they need carry no id that can be mirrored - vulnerability findings, compliance events, connector state, and score history. Several of them do use the mirror for the client roster so they can skip a live /clients fan-out, and fall back to a live roster scan when the mirror is empty. Every one of them caps its own scan and prints when a sweep was truncated, instead of reporting a false all-clear.
The pain this closes
- A score drops eleven points between QBRs. Cork returns the four components per timestamp but never differences them, so someone exports two snapshots and subtracts by hand.
cork-cli score attributedoes the subtraction and ranks the cause. - "Which clients got worse this week" has no endpoint.
cork-cli score regressionsanswers it as one local query. - The vulnerability endpoint's server-side
sort_byaccepts onlysw_vendorandsw_product, so exploitability ordering is impossible upstream.cork-cli vulnerabilities triageranks known-exploited first, then EPSS, then CVSS, with a blast-radius device count. cve_idexists only nested insidecves[]and no endpoint accepts a CVE filter at any page size.cork-cli vulnerabilities exposureanswers "are we exposed to this one" directly.- A connector reports
connection_status: okwhilelast_synced_atis days old. Both fields ship in the same payload and nothing compares the timestamp to now.cork-cli integrations healthcatches the green-but-dead connector.
See pain-point.md for the longer narrative.
Frequently asked questions
Does this work with ChatGPT?
Yes, in the ChatGPT desktop app. It runs MCP servers locally (STDIO), the way cork-mcp runs, and shares MCP configuration with Codex (OpenAI): add cork-mcp under Settings > MCP servers as a STDIO server, or add it once to Codex's ~/.codex/config.toml. ChatGPT on the web is not supported by msp-skills yet: it needs a remote (HTTP) server; see mcp-install.md. If your team works there, a hosted gateway is the better pick; check that your AI app is on the gateway's setup list.
Does this work with Codex, Cursor, Windsurf, Cline, Copilot, or Gemini?
Yes - all of them speak MCP. Cross-tool install commands are in the matrix above and the deep-dive in docs/which-agent.md.
Do I need to know how to code?
No. The recommended install is to paste one sentence into Claude Code or Codex - your agent reads SKILL.md and does the install. The fallback is a one-line installer per OS (bash or PowerShell). Neither path requires writing code. You'll enter your Cork API key once.
Is my Cork data safe?
Your data stays on your machine. The CLI and MCP server are local binaries, and the MCP server speaks stdio by default - it opens no network listener unless you start its token-protected HTTP mode yourself. The SQLite mirror sits in a directory under your user account. The AI agent only sees what the CLI returns - typically a query result, not raw bulk data. Credentials are read from your environment or your agent's config; never bundled into this repo or transmitted anywhere by MSP Skills.
Will this hit my Cork API rate limits?
Partly. sync fills a local SQLite mirror, and search and score regressions answer from it without touching the API. export is NOT one of them - it paginates the live API and is one of the heaviest readers here, so pass --limit unless you mean to pull everything. The other seven analysis commands fetch live on every run, and two of them fan out - coverage gaps per connector, compliance overdue per client - so those are the ones to watch. Each caps its own scan (--max-clients, --max-connectors, --max-scan-pages) and tells you when it truncated. Cork publishes no rate limits, which is exactly why those caps exist.
Why does my Cork key get a 403 on some commands?
A Cork API key inherits the permissions of the user who created it. A 403 on the distributor or integration endpoints usually means the key was minted by an operator without that scope, not that the key is wrong.
Will this replace the Cork portal?
No, it complements it. The portal is still where you configure integrations and watch a single client. This skill answers the cross-client questions the portal makes you click through - score attribution, regression ranking, exploitability triage, stale connectors, coverage gaps - from your AI.
What does it cost?
Free. Apache-2.0 licensed. You pay only for whichever AI agent you use (Claude, ChatGPT, Codex, etc.), and that's billed by your AI provider, not by us.
Safety model
Three of those reach outside Cork itself: software install changes the state of a real customer machine, distributor provision-partner creates a partner account, and import runs either of those endpoints in bulk, one POST per line. Treat them like a manual RMM push or a commercial change, with the approval you already require for those.
The strongest control is the scope you grant the Cork API key - the CLI can only do what the key's creating user is permitted to do. Full details, including how to lock it down, are in governance.md.
Status
Beta. The full command surface has been exercised live, read-only, against a production Cork tenant: auth and connectivity, a complete sync, all eight cross-client analysis commands, typed exit codes on a missing resource, and the MCP stdio handshake. Mutating commands were run under --dry-run only; no write call was made against the tenant. Being validated further with MSPs running it against their own tenants in our weekly Build Sessions. RSVP at compoundingteams.com/build-sessions.
Standards. Conforms to the open Agent Skills spec (Anthropic, Dec 2025; 40+ agents). MCP-compatible - works with any MCP-capable agent including Hermes. OpenClaw-ready (frontmatter pre-wired, awaiting OpenClaw launch).
Maintained by Servosity. Apache-2.0 licensed. Built with CLI Printing Press. Last updated: 2026-08-14.
来源:skills/cork/README.md,提交 62ab9f0
工具
0版本历史
6- v0.1.9最新Nov 7, 2026
- v0.1.8Oct 23, 2026
- v0.1.7Oct 23, 2026
- v0.1.6Oct 22, 2026
- v0.1.5Oct 16, 2026
- v0.1.4Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。