|
1 | 1 | The Dart Tooling MCP Server exposes Dart and Flutter development tool actions to compatible AI-assistant clients.
|
2 | 2 |
|
| 3 | +[](https://cursor.com/install-mcp?name=dart_tooling&config=eyJ0eXBlIjoic3RkaW8iLCJjb21tYW5kIjoiZGFydCBtY3Atc2VydmVyIC0tZXhwZXJpbWVudGFsLW1jcC1zZXJ2ZXIgLS1mb3JjZS1yb290cy1mYWxsYmFjayJ9) |
| 4 | + |
3 | 5 | ## Status
|
4 | 6 |
|
5 | 7 | WIP. This package is still experimental and is likely to evolve quickly.
|
@@ -34,6 +36,18 @@ This server only supports the STDIO transport mechanism and runs locally on
|
34 | 36 | your machine. Many of the tools require that your MCP client has `roots`
|
35 | 37 | support, and usage of the tools is scoped to only these directories.
|
36 | 38 |
|
| 39 | +If you are using a client that claims it supports roots but does not actually |
| 40 | +set them, pass `--force-roots-fallback` which will instead enable tools for |
| 41 | +managing the roots. |
| 42 | + |
| 43 | +### Running from the SDK |
| 44 | + |
| 45 | +For most users, you should just use the `dart mcp-server` command. For now you |
| 46 | +also need to provide `--experimental-mcp-server` in order for the command to |
| 47 | +succeed. |
| 48 | + |
| 49 | +### Running a local checkout |
| 50 | + |
37 | 51 | The server entrypoint lives at `bin/main.dart`, and can be ran however you
|
38 | 52 | choose, but the easiest way is to run it as a globally activated package.
|
39 | 53 |
|
@@ -85,20 +99,26 @@ dart run dart_mcp_examples:workflow_client --server dart_mcp_server
|
85 | 99 |
|
86 | 100 | ### With Cursor
|
87 | 101 |
|
88 |
| -Go to Cursor -> Settings -> Cursor Settings and select "MCP". |
| 102 | +The following button should work for most users: |
| 103 | + |
| 104 | +[](https://cursor.com/install-mcp?name=dart_tooling&config=eyJ0eXBlIjoic3RkaW8iLCJjb21tYW5kIjoiZGFydCBtY3Atc2VydmVyIC0tZXhwZXJpbWVudGFsLW1jcC1zZXJ2ZXIgLS1mb3JjZS1yb290cy1mYWxsYmFjayJ9) |
| 105 | + |
| 106 | +To manually install it, go to Cursor -> Settings -> Cursor Settings and select "MCP". |
89 | 107 |
|
90 |
| -Then, click "Add new global MCP server". Assuming you have already globally |
91 |
| -activated the package and it is on your path, you can add |
92 |
| -`dart_mcp_server` as the command. |
| 108 | +Then, click "Add new global MCP server". |
93 | 109 |
|
94 | 110 | If you are directly editing your mcp.json file, it should look like this:
|
95 | 111 |
|
96 |
| -```yaml |
| 112 | +```json |
97 | 113 | {
|
98 | 114 | "mcpServers": {
|
99 | 115 | "dart_mcp": {
|
100 |
| - "command": "dart_mcp_server", |
101 |
| - "args": [] |
| 116 | + "command": "dart", |
| 117 | + "args": [ |
| 118 | + "mcp-server", |
| 119 | + "--experimental-mcp-server", |
| 120 | + "--force-roots-fallback" |
| 121 | + ] |
102 | 122 | }
|
103 | 123 | }
|
104 | 124 | }
|
|
0 commit comments