Skip to content

Commit 31ab9ac

Browse files
Rodriguespnclaude
andcommitted
feat: add Kimi Code and Grok Build plugin support
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>
1 parent 3b31845 commit 31ab9ac

4 files changed

Lines changed: 67 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
if: ${{ steps.release.outputs.release_created }}
2626
run: |
2727
tar -czvf "supabase-plugin.tar.gz" --dereference \
28-
.claude-plugin/ .cursor-plugin/ .codex-plugin/ \
28+
.claude-plugin/ .cursor-plugin/ .codex-plugin/ .kimi-plugin/ \
2929
.github/plugin/ agents/ \
3030
gemini-extension.json SUPABASE.md \
3131
skills/ assets/ || exit 1

.kimi-plugin/plugin.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "supabase",
3+
"version": "0.1.12",
4+
"description": "Official Supabase plugin for Kimi Code with bundled Supabase skills and MCP access for project management, database work, auth, storage, and Postgres best practices.",
5+
"author": {
6+
"name": "Supabase",
7+
"email": "support@supabase.io",
8+
"url": "https://supabase.com"
9+
},
10+
"homepage": "https://supabase.com",
11+
"repository": "https://github.com/supabase-community/supabase-plugin",
12+
"license": "MIT",
13+
"keywords": [
14+
"supabase",
15+
"postgres",
16+
"database",
17+
"backend",
18+
"mcp"
19+
],
20+
"skills": "./skills/",
21+
"mcpServers": {
22+
"supabase": {
23+
"type": "http",
24+
"url": "https://mcp.supabase.com/mcp",
25+
"headers": {
26+
"X-Source-Name": "kimi-plugin",
27+
"X-Source-Version": "0.1.12"
28+
}
29+
}
30+
},
31+
"interface": {
32+
"displayName": "Supabase",
33+
"shortDescription": "Supabase skills and MCP tools for Kimi Code",
34+
"developerName": "Supabase",
35+
"websiteURL": "https://supabase.com"
36+
}
37+
}

AGENTS.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# AGENTS.md
22

3-
This repository is the plugin distribution repo for Supabase across Claude Code, Cursor, Codex, and Gemini.
3+
This repository is the plugin distribution repo for Supabase across Claude Code, Cursor, Codex, GitHub Copilot, Gemini, Grok Build, and Kimi Code.
4+
5+
These vendors are installable through the vendor-neutral [`plugins`](https://github.com/vercel-labs/plugins) CLI, which translates the shared plugin layout into each target's native format:
6+
7+
```bash
8+
npx plugins add supabase-community/supabase-plugin
9+
```
410

511
## Purpose
612

@@ -9,11 +15,14 @@ Keep this repository focused on the shared multi-vendor plugin layout:
915
- `.claude-plugin/plugin.json` defines the Claude Code plugin identity and metadata
1016
- `.cursor-plugin/plugin.json` defines the Cursor plugin surface
1117
- `.codex-plugin/plugin.json` defines the Codex plugin surface
18+
- `.kimi-plugin/plugin.json` defines the Kimi Code plugin surface (with its MCP server declared inline)
1219
- `.github/plugin/plugin.json` defines the GitHub Copilot plugin surface
1320
- `agents/claude/.mcp.json`, `agents/cursor/mcp.json`, `agents/codex/.app.json`, and `agents/copilot/.mcp.json` hold agent-specific MCP config files
1421
- `gemini-extension.json` defines the Gemini extension manifest
1522
- `skills/` contains the shipped, real skill files consumed by the supported plugin surfaces
1623

24+
Grok Build does not have its own manifest: the `plugins` CLI installs it through Grok's Claude Code compatibility layer, which reads `.claude-plugin/plugin.json` (and therefore `agents/claude/.mcp.json`). There is no `.grok-plugin/` directory to maintain.
25+
1726
This repo should stay self-contained. Claude marketplace installs copy the plugin into Claude's local cache, so paths outside the plugin root are fragile and should be avoided.
1827

1928
## Important Commands
@@ -26,7 +35,7 @@ npx claude plugin validate .claude-plugin/plugin.json
2635

2736
## Editing Rules
2837

29-
- Do not move `skills/`, `agents/`, `.claude-plugin/plugin.json`, `.cursor-plugin/plugin.json`, or `.codex-plugin/plugin.json` out of the repo root layout.
38+
- Do not move `skills/`, `agents/`, `.claude-plugin/plugin.json`, `.cursor-plugin/plugin.json`, `.codex-plugin/plugin.json`, or `.kimi-plugin/plugin.json` out of the repo root layout.
3039
- Do not replace `skills/` with a symlink or submodule reference.
3140
- Keep the plugin name stable as `supabase` unless there is a deliberate migration plan.
3241
- When changing descriptions or keywords, update all relevant `plugin.json` files together.
@@ -52,6 +61,14 @@ Known vendor documentation pages:
5261
- https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-plugin-reference
5362
- Gemini CLI:
5463
- https://geminicli.com/docs/extensions/writing-extensions/
64+
- Grok Build:
65+
- https://x.ai/cli
66+
- Installed via the `plugins` CLI using Grok's Claude Code compatibility layer (reuses `.claude-plugin/`); no dedicated manifest.
67+
- Kimi Code:
68+
- https://www.kimi.com/code
69+
- Installed via the `plugins` CLI into Kimi's native plugin store; uses `.kimi-plugin/plugin.json` with skills, commands, hooks, and MCP servers (no agents or LSP support).
70+
- `plugins` CLI (vendor-neutral installer):
71+
- https://github.com/vercel-labs/plugins
5572

5673
For vendors listed above, read the official documentation pages for the vendor you are working on and follow the plugin structure required by those docs.
5774

release-please-config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
"path": ".codex-plugin/plugin.json",
2121
"jsonpath": "$.version"
2222
},
23+
{
24+
"type": "json",
25+
"path": ".kimi-plugin/plugin.json",
26+
"jsonpath": "$.version"
27+
},
2328
{
2429
"type": "json",
2530
"path": ".github/plugin/plugin.json",
@@ -40,6 +45,11 @@
4045
"path": "agents/cursor/mcp.json",
4146
"jsonpath": "$.supabase.headers[\"X-Source-Version\"]"
4247
},
48+
{
49+
"type": "json",
50+
"path": ".kimi-plugin/plugin.json",
51+
"jsonpath": "$.mcpServers.supabase.headers[\"X-Source-Version\"]"
52+
},
4353
{
4454
"type": "json",
4555
"path": "agents/copilot/.mcp.json",

0 commit comments

Comments
 (0)