
光标用 Ankra 插件:Ankra MCP 服务器、代理技能、通过 Ankra 实现的 Kubernetes 规则和命令
概览
Cursor Marketplace 的 Ankra 插件。它将 Cursor 代理连接到托管的 Ankra MCP 服务器,并增加了 Ankra 的代理技能、规则和通过 Ankra 构建、发布和运行 Kubernetes 的命令。 使用插件时:参见plugins/ankra/README.md。 技能和命令在ankraio/ankra-cli(内部/技能)中维护,也通过ankra skills安装系统发布。在那里更改它们,切入CLI发布,然后从该发布中重新生成这个插件: 插件内容变更时,在插件/ankra/.cursor-plugin/plugin.json中推翻版本。 这也会自动运行:工作流程(.github/workflows/sync-from-cli.yml)每天早上检查ankra-cli最新的稳定版本。当它比插件/ankra/source更新时,脚本/sync-latest-release.sh 下载该版本的二进制文件,验证校验码,重新生成技能和命令,推翻小版本并进行验证,工作流程则从sync/ankra-cli-release打开(或更新)拉取请求。
概述(AI 翻译)
Cursor Marketplace 的 Ankra 插件。它将 Cursor 代理连接到托管的 Ankra MCP 服务器,并增加了 Ankra 的代理技能、规则和通过 Ankra 构建、发布和运行 Kubernetes 的命令。
使用插件时:参见plugins/ankra/README.md。
布局
更新技能和指令
技能和命令在 ankraio/ankra-cli(internal/skills)中维护,也通过 ankra skills install 发布。在那里更改它们,切入一个 CLI 版本,然后从该版本重新生成这个插件:
当插件内容变更时,将version]推到plugins/ankra/.cursor-plugin/plugin.json中。
它也会独立运行:Sync from ankra-cli release 工作流(.github/workflows/sync-from-cli.yml)每天早上检查 ankra-cli 最新的稳定版本。当版本比 plugins/ankra/SOURCE 更新时,scripts/sync-latest-release.sh 下载该版本的二进制文件,验证校验和,重新生成技能和命令,推入小版本并验证,工作流程则从sync/ankra-cli-release打开(或更新)拉取请求。它只使用仓库的 GITHUB_TOKEN。
本页由 AI 翻译,技术细节请以原文为准。
README
Ankra plugin for Cursor
The Ankra plugin for the Cursor Marketplace. It connects the Cursor agent to the hosted Ankra MCP server and adds Ankra’s agent skills, a rule and slash commands for building, shipping and operating Kubernetes through Ankra.
Using the plugin: see plugins/ankra/README.md.
Layout
.cursor-plugin/marketplace.json marketplace manifest
plugins/ankra/
.cursor-plugin/plugin.json plugin manifest
mcp.json the hosted Ankra MCP server (browser sign-in)
rules/ankra.mdc when and how to work through Ankra
skills/ generated from ankra-cli, do not edit here
commands/ generated from ankra-cli, do not edit here
assets/logo.svg
SOURCE the ankra-cli release the skills and commands came from
scripts/
sync-from-cli.sh regenerate skills and commands
sync-latest-release.sh download, verify and sync a release (used by the scheduled workflow)
validate-template.mjs Cursor's plugin validator, from cursor/plugin-template
Updating the skills and commands
The skills and commands are maintained in ankraio/ankra-cli (internal/skills) and also ship through ankra skills install. Change them there, cut a CLI release, then regenerate this plugin from that release:
brew upgrade ankra # the installed CLI must match the release
scripts/sync-from-cli.sh # defaults to the installed CLI's version
node scripts/validate-template.mjs
Bump version in plugins/ankra/.cursor-plugin/plugin.json when the plugin content changes.
This also runs on its own: the Sync from ankra-cli release workflow (.github/workflows/sync-from-cli.yml) checks ankra-cli’s latest stable release every morning. When it is newer than plugins/ankra/SOURCE, scripts/sync-latest-release.sh downloads that release’s binary, verifies its checksum, regenerates the skills and commands, bumps the minor version and validates, and the workflow opens (or updates) a pull request from sync/ankra-cli-release. It uses only the repository’s GITHUB_TOKEN. Run it by hand from the Actions tab, optionally with a tag or as a dry_run. The same script works locally without an installed ankra:
scripts/sync-latest-release.sh # latest stable release
scripts/sync-latest-release.sh v0.30.0 # a specific release
Testing locally
mkdir -p ~/.cursor/plugins/local
cp -R plugins/ankra ~/.cursor/plugins/local/ankra-marketplace
Reload Cursor (Developer: Reload Window) and check that the rule, skills, commands and the ankra MCP server appear. If ankra skills install already wrote a local ankra plugin, move it aside while testing so the two do not overlap.
License
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →