Repository navigation
Update Dart DevTools documentation #714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
1c5dce5
aed267f
05e24f8
4448511
8ba905f
8c52c1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| --- | ||
| title: "PowerSync DevTools for Dart and Flutter" | ||
| description: "Launch PowerSync DevTools in the Dart and Flutter DevTools view you already know!" | ||
|
benitav marked this conversation as resolved.
|
||
| sidebarTitle: "Dart & Flutter" | ||
| --- | ||
|
|
||
| The PowerSync SDK contributes a DevTools extension to [Dart & Flutter DevTools](https://docs.flutter.dev/tools/devtools/overview). No additional dependencies or setup is required to launch PowerSync DevTools. The extension is included in the `powersync` package from v2.6.0 and activates automatically when a `PowerSyncDatabase` is opened. It is disabled in release builds. | ||
|
|
||
| ## Open the Extension | ||
|
|
||
| First, open DevTools: | ||
|
|
||
| - In **VS Code**, launch your app in debug mode, then run the **Dart: Open DevTools in Browser** command from the command palette. | ||
| - In **Android Studio / Intellij**, click the **Flutter DevTools** button in the run toolbar. | ||
| - For apps launched from the command line, see [these instructions](https://docs.flutter.dev/tools/devtools/cli). | ||
|
|
||
| In DevTools, a **powersync** tab appears in the DevTools tab bar alongside the standard panels. If you have multiple databases open, use the dropdown in the top-right corner to switch between them. | ||
|
|
||
| <Frame caption="The PowerSync entry in DevTools"> | ||
|  | ||
| </Frame> | ||
|
|
||
| For a complete overview of what PowerSync DevTools has to offer, see [Using DevTools](/tools/devtools/using-devtools). | ||
|
benitav marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ PowerSync DevTools exposes MCP (Model Context Protocol) tools that let a coding | |
| | Vite | `http://localhost:5173/__devtools/__mcp` (use your dev server port) | | ||
| | Nuxt DevTools 4 | `http://localhost:3000/__devtools/__mcp` (use your dev server port) | | ||
| | Node.js | `<url>/__mcp`, where `url` is the value that `enablePowerSyncDiagnostics()` returns | | ||
| | Dart and Flutter | Use the MCP server [built in to the Dart SDK](https://docs.flutter.dev/ai/tools#dart-and-flutter-mcp-server) instead. | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The linked Flutter docs page describes the Dart and Flutter MCP server as a separate package (source at github.com/dart-lang/ai, pkgs/dart_mcp_server) that you set up through an editor plugin, not something that ships inside the Dart SDK itself, and the page gives no install/launch instructions that would confirm "built in". Verify this before publishing, or soften the claim to something like "the official Dart and Flutter MCP server" without asserting it's built into the SDK. |
||
|
|
||
| Nuxt DevTools 3 does not have an MCP endpoint. | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.