Skip to content

feat: add Kimi Code and Grok Build plugin support#42

Closed
Rodriguespn wants to merge 5 commits into
mainfrom
pedrorodrigues/ai-925-add-support-for-cursor-grok-and-kimi-plugins
Closed

feat: add Kimi Code and Grok Build plugin support#42
Rodriguespn wants to merge 5 commits into
mainfrom
pedrorodrigues/ai-925-add-support-for-cursor-grok-and-kimi-plugins

Conversation

@Rodriguespn

@Rodriguespn Rodriguespn commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

Extends the multi-vendor plugin layout so the vendor-neutral plugins CLI can install Supabase into Grok Build and Kimi Code, alongside Claude Code, Cursor, Codex, GitHub Copilot, and Gemini CLI.

What each vendor needs

Vendor Manifest MCP config X-Source-Name
Grok Build .grok-plugin/plugin.json (new) agents/grok/mcp.json (new) grok-plugin
Kimi Code .kimi-plugin/plugin.json (new) inline in the manifest (see below) kimi-plugin

We deliberately keep each vendor's MCP config in a separate agents/<vendor>/ file for consistency and telemetry.

Grok plugins supports this structure but Kimi needs an inline MCP config file inside .kimi-plugin/plugin.json manifest. We can still track kimi's plugin usage.

Closes AI-927, AI-928, AI-925.

Rodriguespn and others added 5 commits July 15, 2026 11:51
Extend the multi-vendor plugin layout so the `plugins` CLI
(vercel-labs/plugins) can install Supabase into Kimi Code and Grok Build,
alongside the existing Claude Code, Cursor, Codex, Copilot, and Gemini
surfaces.

- Add `.kimi-plugin/plugin.json` for Kimi Code, with the Supabase MCP
  server declared inline (X-Source-Name: kimi-plugin) since Kimi reads its
  manifest natively and the repo has no root `.mcp.json`.
- Grok Build needs no dedicated manifest: the CLI installs it through
  Grok's Claude Code compatibility layer, which reuses `.claude-plugin/`.
- Wire Kimi into the release pipeline: release-please bumps for the
  manifest version and the MCP X-Source-Version, and `.kimi-plugin/` is
  added to the release tarball.
- Document Grok/Kimi support and the `plugins` CLI in AGENTS.md.

Verified headless with `npx plugins@1.3.4 add <path> --target {kimi,cursor,grok}`:
Kimi and Cursor install cleanly; Grok completes preparation and only fails
on the native `grok` binary being absent from PATH.

Closes AI-926, AI-927, AI-928. Refs AI-925.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…rce file

Grok Build natively prefers .grok-plugin/plugin.json over .claude-plugin/
(verified against grok v0.2.101), so it now ships its own manifest pointing
at agents/grok/mcp.json with X-Source-Name "grok-plugin" instead of being
tracked as "claude-code-plugin". This holds via both `grok plugin install`
and the `plugins` CLI, which stages the whole repo.

Kimi Code cannot reference an external MCP file — its loader evaluates
`mcpServers` as an inline object (Object.entries(manifest.mcpServers)), so a
path string breaks. agents/kimi/mcp.json is added as the canonical, tracked
source for layout consistency with the other vendors; .kimi-plugin/plugin.json
inlines the same block (kept in sync via release-please).

- Add .grok-plugin/plugin.json + agents/grok/mcp.json.
- Add agents/kimi/mcp.json (mirrors the inline .kimi-plugin block).
- release-please: bump versions for .grok-plugin, and X-Source-Version for
  agents/grok/mcp.json and agents/kimi/mcp.json.
- release.yml: add .grok-plugin/ to the release tarball.
- Document both vendor MCP quirks in AGENTS.md.

Verified end-to-end with the real grok CLI, the kimi CLI package, and
`npx plugins@1.3.4`: grok resolves agents/grok/mcp.json (grok-plugin),
kimi loads exactly one inline server (kimi-plugin), cursor and claude
still install cleanly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Kimi cannot reference an external MCP file (its loader treats mcpServers as
an inline object), so a separate agents/kimi/mcp.json was a pure duplicate.
Remove it and document Kimi as the explicit exception to the
"MCP config lives in agents/<vendor>/" convention in AGENTS.md. The MCP
server stays declared inline in .kimi-plugin/plugin.json.

- Remove agents/kimi/mcp.json and its release-please X-Source-Version entry.
- AGENTS.md: note the Kimi inline exception and that there is intentionally
  no agents/kimi/mcp.json.

Re-verified: `npx plugins@1.3.4 add --target kimi` still loads exactly one
MCP server (kimi-plugin).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The new .grok-plugin and .kimi-plugin manifests split between the full
11-keyword list (claude, copilot) and the minimal 5 (cursor, codex). Align
both new plugins to the full canonical keyword set used by the flagship
.claude-plugin/plugin.json for consistency.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Remove the Grok/Kimi MCP notes block. The plugin manifests remain; the test
scaffolding that previously accompanied this change has moved to a dedicated
branch/PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Rodriguespn
Rodriguespn force-pushed the pedrorodrigues/ai-925-add-support-for-cursor-grok-and-kimi-plugins branch from cd763a4 to 60b8b5b Compare July 15, 2026 13:34
@Rodriguespn
Rodriguespn marked this pull request as ready for review July 15, 2026 14:20
@Rodriguespn

Copy link
Copy Markdown
Collaborator Author

Superseded — split into two focused PRs per review feedback (Grok on hold): Kimi Code support and Grok Build support are now separate. Test scaffolding also lives in its own branch.

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.

1 participant