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
Copy file name to clipboardExpand all lines: pkgs/dart_mcp_server/README.md
+8-23Lines changed: 8 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ WIP. This package is still experimental and is likely to evolve quickly.
6
6
7
7
## Set up your MCP client
8
8
9
+
> Note: all of the following set up instructions require Dart 3.9.0-163.0.dev or later.
10
+
9
11
<!-- Note: since many of our tools require access to the Dart Tooling Daemon, we may want
10
12
to be cautious about recommending tools where access to the Dart Tooling Daemon does not exist. -->
11
13
@@ -106,38 +108,21 @@ to provide a deep link to the Dart Extension Settings UI for users to
106
108
enable the server. See docs: https://code.visualstudio.com/docs/configure/settings#_settings-editor.
107
109
This may be preferable to adding the deep link button to VS Code's mcp settings. -->
108
110
111
+
> Note: requires Dart-Code VS Code extension v3.114 or later.
112
+
109
113
To configure the Dart MCP server with Copilot or any other AI agent that supports the
110
114
[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)**):
112
116
```json
113
117
"dart.mcpServer": true
114
118
```
115
119
116
120
By adding this setting, the Dart VS Code extension will register the Dart MCP Server
117
121
configuration with VS Code so that you don't have to manually configure the server.
118
122
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
-
[](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.
141
126
142
127
For more information, see the official VS Code documentation for
0 commit comments