These tools work with your running app. To let an agent search the PowerSync documentation, use the docs MCP server instead.
Endpoints
Nuxt DevTools 3 does not have an MCP endpoint.
On the web, the tools get the database from an open app tab. Keep your app open in a browser that Vite DevTools trusts, or the tools return an error.
For a Node.js app, set a fixed
port in enablePowerSyncDiagnostics() so that the endpoint stays the same when your app restarts.
Connect a Coding Agent
The endpoint accepts only requests that have a loopbackOrigin header, such as http://localhost:5173. Some MCP clients do not send this header, so add it to the client configuration.
For example, to add the Vite endpoint to Claude Code:
allowedOrigins: false. Read Origin and Authorization.
Tools
The tools take positional arguments namedarg0 and arg1. The last argument of most tools is the database ID. Pass null to use the first attached database, or call powersync_sources to list the IDs.
For
subscribeStream and unsubscribeStream, args is { name, params?, ttl?, priority? }.
Origin and Authorization
To change how the endpoint checks requests, use themcp setting:
Set it in your host:
- Vite 8
- Vite 7
- Nuxt DevTools 4
- Node.js
Test the Endpoint
Usecurl to check that the endpoint works. This example counts the operations in the local oplog:
403 Forbidden, the request has no loopback Origin header.