Commit 55f8d1d
committed
consolidate Cadence MCP & Claude Code skills under onflow upstream
Two related tooling stories were tangled in the original PR — they're now
consolidated to the canonical Flow Foundation paths.
SKILLS — single Claude Code marketplace
------
Hao's redesign shipped an inline 'skills/cadence/SKILL.md' (single file,
873 lines) plus 'update-ai-files.yml' CI to keep it in sync. Meanwhile,
onflow ships an official Claude Code plugin marketplace at
[onflow/flow-ai-tools](https://github.com/onflow/flow-ai-tools) — bundles
'flow-dev' plugin with the full Cadence + Flow skill suite (cadence-lang,
cadence-tokens, cadence-audit, cadence-scaffold, cadence-testing,
flow-react-sdk, flow-project-setup, flow-cli, flow-dev-setup, flow-defi,
flow-tokenomics — each with its own reference files). Inline skill is
strictly subsumed.
- skills/cadence/SKILL.md: DELETED
- .github/workflows/update-ai-files.yml: DELETED (auto-sync CI obsolete)
- content/docs/ai-tools/skills.mdx: rewritten around '/plugin marketplace
add onflow/flow-ai-tools' install path. Skill table phrasing uses 'full
Cadence + Flow skill suite' instead of hardcoded count (durable across
upstream additions).
MCP — single canonical install path (flow mcp)
------
Hao's redesign also shipped 'mcp-server/' as a TypeScript / Bun standalone
package published to npm as '@outblock/cadence-mcp'. Meanwhile, Peter
Argue (Flow DX) shipped a Go-native Cadence MCP server in
[flow-cli #2306](onflow/flow-cli#2306), merged
2026-04-03 (one day after Hao's last npm publish) — inspired by Hao's
PR #285 design but implemented from scratch in Go with no extra runtime
dependencies. flow-ai-tools' install script ([scripts/install.sh
L65–98](https://github.com/onflow/flow-ai-tools/blob/main/scripts/install.sh#L65))
already registers MCP via 'flow mcp', not Hao's npm package — i.e. anyone
running the marketplace one-liner is already on the canonical path.
Two MCPs both registering as 'cadence-mcp' in Claude Code is a footgun:
same tool name, different binaries, surprising about which one served a
response. Consolidating to one canonical install path.
- mcp-server/: DELETED entirely (~7,000 lines, 21 files, ~330 tests)
- .github/workflows/publish-mcp.yml: DELETED (npm publish CI obsolete)
- content/docs/ai-tools/mcp-server.mdx: rewritten around 'flow mcp'
(Flow CLI ≥ v2.16.0). Tool list updated to the 8 tools 'flow mcp'
exposes (LSP-backed: cadence_check, cadence_hover, cadence_definition,
cadence_symbols, cadence_completion + on-chain: get_contract_source,
get_contract_code, cadence_execute_script).
- content/docs/ai-tools/integrations/{antigravity,claude,cursor,opencode}.mdx:
install snippets all reference 'claude mcp add --scope user
cadence-mcp -- flow mcp' (or editor-equivalent). Cursor deeplink updated.
- content/docs/ai-tools/integrations/index.mdx (NEW): per-editor matrix
table summarizing project-context source / skills support / MCP support.
Fixes broken '../integrations' link from skills.mdx (was 404 because
fumadocs needs an index.mdx for directory routes).
- content/docs/ai-tools/{,integrations/}meta.json: add '...' rest token
so any future pages added to those dirs get auto-included.
- content/docs/ai-tools/index.mdx: tweak MCP description to match new
tool surface.
- src/routes/index.tsx (homepage hero MCP card): replaces 'npx install-mcp
@outblock/cadence-mcp --client $CLIENT' with the 'flow mcp' install
command. Drops the now-superfluous client + mode selectors.
(NOTE: src/routes/index.tsx homepage hero edit goes in the next commit
with the rest of the index.tsx changes — bundled with a11y to keep one
diff per file.)
DOCS / META
------
- CLAUDE.md: removed 'skills/cadence/SKILL.md' line; removed 'mcp-server/'
line. The MCP server now lives at onflow/flow-cli/internal/mcp.
- README.md: 'AI Integration' section rewritten — Skills via flow-ai-tools
marketplace, MCP via 'flow mcp'.
Follow-up issues for the 3 unique tools Hao's mcp-server had that 'flow
mcp' doesn't yet (cadence_security_scan, cadence_validate_args, doc-search
trio): tracked at #307 for upstream contribution to onflow/flow-cli.1 parent 89a0fc2 commit 55f8d1d
43 files changed
Lines changed: 190 additions & 9156 deletions
File tree
- .github/workflows
- content/docs/ai-tools
- integrations
- mcp-server
- src
- codec
- fixtures
- lsp
- skills/cadence
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 16 | | |
24 | 17 | | |
| 18 | + | |
| 19 | + | |
25 | 20 | | |
26 | 21 | | |
27 | 22 | | |
| |||
37 | 32 | | |
38 | 33 | | |
39 | 34 | | |
40 | | - | |
41 | | - | |
42 | 35 | | |
43 | 36 | | |
44 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | | - | |
| 21 | + | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
17 | | - | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
30 | | - | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
16 | 12 | | |
17 | 13 | | |
18 | | - | |
| 14 | + | |
| 15 | + | |
19 | 16 | | |
20 | 17 | | |
21 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 9 | + | |
18 | 10 | | |
19 | 11 | | |
20 | 12 | | |
21 | 13 | | |
22 | 14 | | |
23 | | - | |
| 15 | + | |
| 16 | + | |
24 | 17 | | |
25 | 18 | | |
26 | | - | |
27 | | - | |
| 19 | + | |
| 20 | + | |
28 | 21 | | |
29 | 22 | | |
30 | 23 | | |
31 | 24 | | |
| 25 | + | |
| 26 | + | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 9 | + | |
14 | 10 | | |
15 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
30 | 32 | | |
31 | | - | |
| 33 | + | |
32 | 34 | | |
33 | | - | |
| 35 | + | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 11 | + | |
20 | 12 | | |
21 | 13 | | |
22 | 14 | | |
23 | 15 | | |
24 | 16 | | |
25 | | - | |
| 17 | + | |
| 18 | + | |
26 | 19 | | |
27 | 20 | | |
28 | | - | |
29 | | - | |
| 21 | + | |
| 22 | + | |
30 | 23 | | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
| 27 | + | |
| 28 | + | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
| |||
0 commit comments