Skip to content

docs: Cover MCP setup in the 4.0 migration guide#666

Open
Zfinix wants to merge 1 commit into
mainfrom
chore/migration-guide-mcp-setup
Open

docs: Cover MCP setup in the 4.0 migration guide#666
Zfinix wants to merge 1 commit into
mainfrom
chore/migration-guide-mcp-setup

Conversation

@Zfinix

@Zfinix Zfinix commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

The 3.5 migration guide told upgrading users to set up the agentic workflow with dart install skills + skills get, which installs the skills but never registers the MCP servers. New projects get their MCP config from serverpod create, so migrating users were left without the Serverpod and Dart MCP servers.

This updates the "Set up the agent workflow" section to lead with serverpod create ., which configures both MCP servers and installs the skills in one step (the same setup a new project gets). It also:

  • Shows the generated .mcp.json and notes VS Code's .vscode/mcp.json uses a servers key instead of mcpServers.
  • Keeps dart install skills / skills get as a skills-only refresh path.
  • Fixes the quickstart Cursor note to name both the Serverpod and Dart MCP servers (there are two, not one).
  • Updates the matching "What's new" bullet and troubleshooting entry.

Verified against the Serverpod CLI 3.5.0-beta.10: serverpod create . is non-destructive on an existing project (runs the upgrade flow, configures the MCP servers, installs skills), and the --ide editor list and .mcp.json structure match the live output.

Closes #583

@Zfinix Zfinix requested a review from developerjamiu July 1, 2026 14:57

VS Code's `.vscode/mcp.json` registers the same two servers but nests them under a `servers` key instead of `mcpServers`.

:::warning

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: this warning to commit your work sits below the serverpod create . block, so a reader who copies the command first can run it before seeing the caution. It reads better moved just above the command block (around line 148), so the warning comes before the action. The text itself is fine; it is just a block move.

$ serverpod create .
```

Serverpod detects the existing project and adds the missing pieces without touching your source code. It registers the **Serverpod** and **Dart** MCP servers and installs the agent skills for the editor you select. The registration is written to `.mcp.json`, along with editor-specific files (`.cursor/mcp.json` and `.vscode/mcp.json`) in each editor's own format. The `.mcp.json` file looks like this:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: .mcp.json is Claude's own file, not a shared one. In ide.dart, each selected editor gets its own file (.mcp.json for Claude, .cursor/mcp.json for Cursor, .vscode/mcp.json for VS Code), so a Cursor-only user gets no .mcp.json at all and could go looking for a file that is not there. Reframing avoids that (and fixes "editor" to "editors", since you can select more than one):

Suggested change
Serverpod detects the existing project and adds the missing pieces without touching your source code. It registers the **Serverpod** and **Dart** MCP servers and installs the agent skills for the editor you select. The registration is written to `.mcp.json`, along with editor-specific files (`.cursor/mcp.json` and `.vscode/mcp.json`) in each editor's own format. The `.mcp.json` file looks like this:
Serverpod detects the existing project and adds the missing pieces without touching your source code. It registers the **Serverpod** and **Dart** MCP servers and installs the agent skills for the editors you select. Each selected editor gets a config file in its own format: `.mcp.json` for Claude, `.cursor/mcp.json` for Cursor, and `.vscode/mcp.json` for VS Code. For Claude, `.mcp.json` looks like this:

@@ -141,15 +141,50 @@ The first run compiles the native build hooks (this can take about 30 seconds) a

Beyond the server, `serverpod start` also launches the project's Flutter app. By default it uses Flutter's `web-server` device and opens your browser. Pass `--flutter-device <name>` to target a specific device. For IDE debugging, projects scaffolded with 3.5 include a `launch.json` that runs `serverpod start` with the debugger attached; you can copy that file into your existing project from a fresh 3.5 scaffold if you want the same setup.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment (pre-existing, outside this diff): two stale lines worth a quick fix while this file is open. This line mentions --flutter-device <name>, which is not a real serverpod start flag (only --flutter / --no-flutter exist). And line 25 pins dart install serverpod_cli 3.5.0-beta.9, while the latest 3.5 beta is beta.12. Up to you whether to fold these in here or leave them for a follow-up.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it not 4.0.0-beta.0 ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yeah it should be 4.0.0-beta.0

@developerjamiu developerjamiu added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 6, 2026
@Zfinix Zfinix changed the title docs: Cover MCP setup in the 3.5 migration guide docs: Cover MCP setup in the 4.0 migration guide Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration guide does not cover setting up the MCPs

2 participants