You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consolidate to single Cadence MCP — flow mcp (Flow CLI)
Per team confirmation that Peter Argue (Flow DX) ported Hao's MCP into
the Flow CLI in onflow/flow-cli#2306 (merged 2026-04-03), the canonical
Cadence MCP is now `flow mcp` — bundled with every Flow CLI install,
zero extra dependencies. flow-ai-tools' install script registers it
this way already.
The /onflow/cadence-lang.org redesign PR was carrying a parallel
`mcp-server/` (Hao's npm @outblock/cadence-mcp source). Two MCPs both
registering as 'cadence-mcp' in Claude Code is a footgun. Consolidating
to one canonical path.
CHANGES:
Docs — replace every '@outblock/cadence-mcp' install snippet with
'flow mcp' equivalent across:
- content/docs/ai-tools/mcp-server.mdx — full rewrite around Flow CLI
- content/docs/ai-tools/integrations/{claude,cursor,antigravity,opencode}.mdx
- content/docs/ai-tools/integrations/index.mdx (table + intro)
- content/docs/ai-tools/skills.mdx (Next steps; description re-counted)
- content/docs/ai-tools/index.mdx
- src/routes/index.tsx — homepage hero MCP card
- README.md — install commands
- AGENTS.md, CLAUDE.md — repo overview
Source — remove duplicate implementation:
- mcp-server/ (entire dir): 21 files, ~8200 lines deleted
- .github/workflows/publish-mcp.yml — npm publish CI no longer needed
Skill-count phrasing — replaced hardcoded '11 skills' / '11 Cadence + Flow
skills' with 'full Cadence + Flow skill suite' / 'Flow's full skill
suite' across all 8 affected files. The skill table in skills.mdx still
documents every skill by name with its description — count-free wording.
Follow-up issues to file post-merge:
- Upstream Hao's 3 unique tools (cadence_security_scan,
cadence_validate_args, doc-search trio) into onflow/flow-cli/internal/mcp
- Deprecate @outblock/cadence-mcp on npm with redirect notice pointing
at 'flow mcp'
- Confirm Flow DX team owns flow mcp going forward (Peter Argue)
Verified: types:check clean, build clean (96 sitemap URLs), zero
'@Outblock' / '@outblock/cadence-mcp' / 'mcp-server/' source references
remain in shipped content.
Copy file name to clipboardExpand all lines: AGENTS.md
+6-15Lines changed: 6 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Guidance for AI coding agents working in this repository. Loaded into agent cont
4
4
5
5
## Overview
6
6
7
-
`cadence-lang.org` is the documentation and marketing site for the Cadence smart contract programming language (Flow network). Built with TanStack Start (file-based routing + Nitro SSR) + Fumadocs (MDX docs engine) + Tailwind CSS v4 + Bun. Deployed on Vercel. Includes a standalone MCP server (`mcp-server/`, published to npm as `@outblock/cadence-mcp`), AI chat (`/api/chat`), Orama-powered search, and `/llms.txt` + `/llms-full.txt` LLM-optimized endpoints.
7
+
`cadence-lang.org` is the documentation and marketing site for the Cadence smart contract programming language (Flow network). Built with TanStack Start (file-based routing + Nitro SSR) + Fumadocs (MDX docs engine) + Tailwind CSS v4 + Bun. Deployed on Vercel. Includes AI chat (`/api/chat`), Orama-powered search (federated with onflow/docs via the `external/onflow-docs` submodule), and `/llms.txt` + `/llms-full.txt` LLM-optimized endpoints. The Cadence MCP server is built into the Flow CLI as `flow mcp` ([source](https://github.com/onflow/flow-cli/tree/master/internal/mcp)), not bundled in this repo.
-`bun run types:check` — `fumadocs-mdx && tsc --noEmit`. May report errors against the `external/onflow-docs` submodule's own files; those are out-of-scope for this repo.
18
18
-`git submodule update --init --recursive` — populate `external/onflow-docs` (required before search index can include onflow-docs content)
19
19
20
-
MCP server (separate workspace at `mcp-server/`):
20
+
The Cadence MCP server is bundled with the Flow CLI as `flow mcp` (Flow CLI ≥ v2.16.0). Source at [onflow/flow-cli/internal/mcp](https://github.com/onflow/flow-cli/tree/master/internal/mcp); maintained by Flow DX. Not bundled in this repo.
21
21
22
-
-`cd mcp-server && bun install`
23
-
-`bun test:unit` — unit tests only (no Flow CLI required)
-`bun run start:http` — HTTP transport (Hono) on configurable port
28
-
29
-
CI: `.github/workflows/publish-mcp.yml` publishes `@outblock/cadence-mcp` to npm on tagged releases. No site-build CI in this repo — Vercel builds previews on every PR push.
22
+
No site-build CI in this repo — Vercel builds previews on every PR push.
30
23
31
24
## Architecture
32
25
@@ -53,7 +46,6 @@ CI: `.github/workflows/publish-mcp.yml` publishes `@outblock/cadence-mcp` to npm
-`mcp-server/` — standalone Bun workspace, published to npm
57
49
-`external/onflow-docs` — git submodule of `onflow/docs`, indexed for cross-site search; **not** rendered in the docs nav
58
50
-`public/` — static assets served at root: `robots.txt`, `assets/`, `fonts/`, etc.
59
51
-`vercel.json` — URL redirects (legacy paths, type-page moves). Update here when restructuring URLs.
@@ -80,23 +72,22 @@ CI: `.github/workflows/publish-mcp.yml` publishes `@outblock/cadence-mcp` to npm
80
72
-**`/api/chat`** — Anthropic streaming via `@ai-sdk/anthropic`. `ANTHROPIC_API_KEY` is server-only and never reaches the browser bundle.
81
73
-**Search** — Orama index built from `content/docs/` + `external/onflow-docs/` content. Search panel at `src/components/search.tsx`, Cmd+/ hotkey, localStorage persistence.
82
74
-**`/llms.txt`** / **`/llms-full.txt`** — TanStack server routes that emit LLM-optimized markdown summaries / corpus.
83
-
-**MCP server**at `mcp-server/` — exposes `cadence_check`, `cadence_search`, `cadence_execute_script`, `cadence_validate_args`, `cadence_security_scan`, `get_contract_source`. Both stdio and HTTP transports.
-**Bun is the toolchain.** Don't introduce npm/yarn lock files — `bun.lock` is the source of truth. Top-level `package.json` and `mcp-server/package.json` are independent workspaces.
79
+
-**Bun is the toolchain.** Don't introduce npm/yarn lock files — `bun.lock` is the source of truth.
88
80
-**`NODE_OPTIONS=--max-old-space-size=8192`** is required for the build (baked into `package.json` script). The SSR `source-*.mjs` chunk grew past the 4GB default heap when the `external/onflow-docs` submodule was added.
89
81
-**Submodule pinning matters.**`external/onflow-docs` is pinned to a specific commit (not branch-tracking). Bumping the pin is a semi-supply-chain action; review the diff before updating.
90
82
-**Tailwind v4 has no config file.** Theme tokens are CSS variables in `src/styles/app.css`. Use `cn()` from `src/lib/cn.ts` for class merging (clsx + tailwind-merge).
91
83
-**Dark mode uses the `dark` class on `<html>`** (Fumadocs convention).
92
84
-**URL redirects belong in `vercel.json`**, not page frontmatter. When moving / renaming pages, add the redirect there.
93
85
-**Don't edit `routeTree.gen.ts`, `.source/`, or `.vercel/output/`.** All auto-generated.
94
-
-**Cadence MCP HTTP endpoint is currently hosted on Outblock's Railway** (`https://cadence-mcp.up.railway.app/mcp`). The integration guides reference this URL — coordinate with @onflow before changing.
95
86
-**Licensing is split:** source under Apache 2.0 (`LICENSE.txt`), content under CC-BY-4.0 (`CC-BY-4.0.txt`); see `LICENSE.md`.
96
87
97
88
## Files Not to Modify
98
89
99
-
-`bun.lock`, `mcp-server/bun.lock`, `mcp-server/package-lock.json` — regenerated by `bun install`
Copy file name to clipboardExpand all lines: CLAUDE.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,10 @@ npm run dev # Dev server on port 3000
13
13
npm run build # Production build + sitemap generation
14
14
npm run start # Run built server (node .output/server/index.mjs)
15
15
npm run types:check # TypeScript + MDX type checking (fumadocs-mdx && tsc --noEmit)
16
-
17
-
# MCP server (separate workspace in mcp-server/)
18
-
cd mcp-server
19
-
bun run build # Build
20
-
bun test# All tests
21
-
bun test:unit # Unit tests only
22
-
bun test:integration # Integration tests (requires Flow CLI)
23
16
```
24
17
18
+
The Cadence MCP server is bundled with the Flow CLI as `flow mcp` (Flow CLI ≥ v2.16.0); it lives at [onflow/flow-cli/internal/mcp](https://github.com/onflow/flow-cli/tree/master/internal/mcp), not in this repo.
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,22 +8,22 @@ Live at [cadence-lang.org](https://cadence-lang.org).
8
8
9
9
### Skills
10
10
11
-
Install the Cadence skill for your AI coding agent:
11
+
Install Flow's Claude Code skill suite from the [`onflow/flow-ai-tools`](https://github.com/onflow/flow-ai-tools) marketplace. In Claude Code:
12
12
13
-
```sh
14
-
npx skills add outblock/cadence-lang.org
13
+
```bash
14
+
/plugin marketplace add onflow/flow-ai-tools
15
+
/plugin install flow-dev@flow-ai-tools
16
+
/reload-plugins
15
17
```
16
18
17
19
### MCP Server
18
20
19
-
Install the [Cadence MCP server](https://www.npmjs.com/package/@outblock/cadence-mcp) for AI-powered Cadence development — code checking, type info, and doc search:
21
+
The Cadence MCP server is built into the [Flow CLI](https://developers.flow.com/tools/flow-cli) (≥ v2.16.0) as `flow mcp`. Source: [onflow/flow-cli/internal/mcp](https://github.com/onflow/flow-cli/tree/master/internal/mcp).
20
22
21
23
```sh
22
-
npx install-mcp @outblock/cadence-mcp --client claude
24
+
claude mcp add --scope user cadence-mcp -- flow mcp
Copy file name to clipboardExpand all lines: content/docs/ai-tools/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: AI Tools
5
5
Cadence is designed for AI-native development. Three integrations make Cadence documentation and language intelligence available to any AI agent:
6
6
7
7
-**[Skills](/docs/ai-tools/skills)** — inject Cadence knowledge into AI coding agents with one command
8
-
-**[MCP Server](/docs/ai-tools/mcp-server)** — give AI agents live access to documentation search and the Cadence language server
8
+
-**[MCP Server](/docs/ai-tools/mcp-server)** — `flow mcp` from the Flow CLI: gives AI agents type checking, symbol lookup, contract source fetching, and read-only on-chain script execution
9
9
-**[LLM Endpoints](/docs/ai-tools/llm-endpoints)** — plain-text documentation endpoints optimized for LLM context windows
Resources use `@` prefix and must be moved with `<-`. Use `access(all)` for public access (not `pub`). Capability-based access control with entitlements.
19
19
```
20
20
21
-
If you also use Claude Code, install the [flow-ai-tools](https://github.com/onflow/flow-ai-tools) marketplace there for richer skill coverage — it ships 11 Cadence + Flow skills (see [Skills](../skills)).
21
+
If you also use Claude Code, install the [flow-ai-tools](https://github.com/onflow/flow-ai-tools) marketplace there for richer skill coverage — it ships the full Cadence + Flow skill suite (see [Skills](../skills)).
22
22
23
23
## Add MCP server
24
24
25
-
Add the Cadence MCP server to your Antigravity configuration — runs locally via stdio:
25
+
Add the Cadence MCP server to your Antigravity configuration — calls the Flow CLI's built-in `flow mcp` subcommand:
26
26
27
27
```json
28
28
{
29
29
"mcpServers": {
30
-
"cadence": {
31
-
"command": "npx",
32
-
"args": ["-y", "@outblock/cadence-mcp"]
30
+
"cadence-mcp": {
31
+
"command": "flow",
32
+
"args": ["mcp"]
33
33
}
34
34
}
35
35
}
36
36
```
37
37
38
-
This gives Antigravity access to all [MCP tools](../mcp-server) — documentation search, code checking, type inspection, security scanning, and more. Requires the [Flow CLI](https://developers.flow.com/tools/flow-cli)installed locally for the LSP-based tools.
38
+
This gives Antigravity access to all [MCP tools](../mcp-server) — Cadence code checking, type inspection, symbol lookup, contract source fetching, and read-only on-chain script execution. Requires [Flow CLI](https://developers.flow.com/tools/flow-cli)≥ v2.16.0.
Copy file name to clipboardExpand all lines: content/docs/ai-tools/integrations/claude.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Configure Claude to work with Cadence via skills, MCP, or context injection.
8
8
9
9
### Install Flow's skill library
10
10
11
-
The official [onflow/flow-ai-tools](https://github.com/onflow/flow-ai-tools) marketplace ships 11 Cadence + Flow skills under one plugin:
11
+
The official [onflow/flow-ai-tools](https://github.com/onflow/flow-ai-tools) marketplace ships the full Cadence + Flow skill suite under one plugin:
12
12
13
13
```bash
14
14
/plugin marketplace add onflow/flow-ai-tools
@@ -20,10 +20,10 @@ See [Skills](../skills) for the full skill list.
20
20
### Add MCP server
21
21
22
22
```bash
23
-
claude mcp add cadence-mcp -- npx -y @outblock/cadence-mcp
23
+
claude mcp add --scope user cadence-mcp -- flow mcp
24
24
```
25
25
26
-
This runs the [Cadence MCP server](../mcp-server)locally via stdio — gives Claude Code access to documentation search, Cadence code checking, type inspection, security scanning, and more. Requires the [Flow CLI](https://developers.flow.com/tools/flow-cli)installed locally for the LSP-based tools.
26
+
This registers the [Cadence MCP server](../mcp-server)— built into the Flow CLI as the `flow mcp` subcommand. Gives Claude Code access to Cadence code checking, type inspection, symbol lookup, contract source fetching, and read-only on-chain script execution. Requires [Flow CLI](https://developers.flow.com/tools/flow-cli)≥ v2.16.0.
27
27
28
28
## Claude Desktop
29
29
@@ -32,9 +32,9 @@ Add the Cadence MCP server to your `claude_desktop_config.json`:
Copy file name to clipboardExpand all lines: content/docs/ai-tools/integrations/codex.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Key conventions:
22
22
- Use capability-based access control with entitlements
23
23
```
24
24
25
-
If you also use Claude Code, install the [flow-ai-tools](https://github.com/onflow/flow-ai-tools) marketplace there for richer skill coverage — it ships 11 Cadence + Flow skills (see [Skills](../skills)).
25
+
If you also use Claude Code, install the [flow-ai-tools](https://github.com/onflow/flow-ai-tools) marketplace there for richer skill coverage — it ships the full Cadence + Flow skill suite (see [Skills](../skills)).
Copy file name to clipboardExpand all lines: content/docs/ai-tools/integrations/cursor.mdx
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,16 +24,14 @@ Full Cadence reference: https://cadence-lang.org/llms-full.txt
24
24
Quick index: https://cadence-lang.org/llms.txt
25
25
```
26
26
27
-
If you also use Claude Code, install the [flow-ai-tools](https://github.com/onflow/flow-ai-tools) marketplace there for richer skill coverage — it ships 11 Cadence + Flow skills (see [Skills](../skills)).
27
+
If you also use Claude Code, install the [flow-ai-tools](https://github.com/onflow/flow-ai-tools) marketplace there for richer skill coverage — it ships the full Cadence + Flow skill suite (see [Skills](../skills)).
28
28
29
29
## Add MCP server
30
30
31
-
[](cursor://anysphere.cursor-deeplink/mcp/install?name=cadence&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBvdXRibG9jay9jYWRlbmNlLW1jcCJdfQ==)
31
+
In Cursor settings → MCP → Add new server:
32
32
33
-
Or manually add in Cursor settings:
34
-
35
-
-**Name**: `cadence`
33
+
-**Name**: `cadence-mcp`
36
34
-**Type**: `command`
37
-
-**Command**: `npx -y @outblock/cadence-mcp`
35
+
-**Command**: `flow mcp`
38
36
39
-
This runs the [Cadence MCP server](../mcp-server)locally via stdio — gives Cursor access to documentation search, Cadence code checking, type inspection, security scanning, and more. Requires the [Flow CLI](https://developers.flow.com/tools/flow-cli)installed locally for the LSP-based tools.
37
+
This registers the [Cadence MCP server](../mcp-server)— built into the Flow CLI as the `flow mcp` subcommand. Gives Cursor access to Cadence code checking, type inspection, symbol lookup, contract source fetching, and read-only on-chain script execution. Requires [Flow CLI](https://developers.flow.com/tools/flow-cli)≥ v2.16.0.
Copy file name to clipboardExpand all lines: content/docs/ai-tools/integrations/gemini.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Key conventions:
24
24
- Use capability-based access control with entitlements
25
25
```
26
26
27
-
If you also use Claude Code, install the [flow-ai-tools](https://github.com/onflow/flow-ai-tools) marketplace there for richer skill coverage — it ships 11 Cadence + Flow skills (see [Skills](../skills)).
27
+
If you also use Claude Code, install the [flow-ai-tools](https://github.com/onflow/flow-ai-tools) marketplace there for richer skill coverage — it ships the full Cadence + Flow skill suite (see [Skills](../skills)).
0 commit comments