Skip to content

Commit 2541b6c

Browse files
Remove VS Code mcp instructions in favor of Dart-Code setting. (#206)
1 parent 70daa1f commit 2541b6c

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

pkgs/dart_mcp_server/README.md

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ WIP. This package is still experimental and is likely to evolve quickly.
66

77
## Set up your MCP client
88

9+
> Note: all of the following set up instructions require Dart 3.9.0-163.0.dev or later.
10+
911
<!-- Note: since many of our tools require access to the Dart Tooling Daemon, we may want
1012
to be cautious about recommending tools where access to the Dart Tooling Daemon does not exist. -->
1113

@@ -106,38 +108,21 @@ to provide a deep link to the Dart Extension Settings UI for users to
106108
enable the server. See docs: https://code.visualstudio.com/docs/configure/settings#_settings-editor.
107109
This may be preferable to adding the deep link button to VS Code's mcp settings. -->
108110

111+
> Note: requires Dart-Code VS Code extension v3.114 or later.
112+
109113
To configure the Dart MCP server with Copilot or any other AI agent that supports the
110114
[VS Code MCP API](https://code.visualstudio.com/api/extension-guides/mcp), add the following
111-
to your VS Code user settings:
115+
to your VS Code user settings (Command Palette > **Preferences: Open User Settings (JSON)**):
112116
```json
113117
"dart.mcpServer": true
114118
```
115119

116120
By adding this setting, the Dart VS Code extension will register the Dart MCP Server
117121
configuration with VS Code so that you don't have to manually configure the server.
118122
Copilot will then automatically configure the Dart MCP server on your behalf. This is
119-
a global setting.
120-
121-
Alternatively, you can click the "Add to VS Code" button below to manually configure the server
122-
in your VS Code user settings.
123-
124-
[![Add to VS Code](_docs/add_to_vs_code.png)](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22dart%22%2C%22command%22%3A%22dart%22%2C%22args%22%3A%5B%22mcp-server%22%2C%22--experimental-mcp%22%5D%7D)
125-
126-
Or, you can manually edit the `.vscode/mcp.json` file in your workspace,
127-
which will only configure the Dart MCP server for the local workspace:
128-
129-
```json
130-
"servers": {
131-
"dart": {
132-
"type": "stdio",
133-
"command": "dart",
134-
"args": [
135-
"mcp-server",
136-
"--experimental-mcp-server", // Can be removed for Dart 3.9.0 or later
137-
]
138-
}
139-
}
140-
```
123+
a global setting. If you'd like the setting to apply only to a specific workspace, add
124+
the entry to your workspace settings (Command Palette > **Preferences: Open Workspace Settings (JSON)**)
125+
instead.
141126

142127
For more information, see the official VS Code documentation for
143128
[enabling MCP support](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_enable-mcp-support-in-vs-code).

0 commit comments

Comments
 (0)