devtools-mcp
v1.0.0-beta.13MCP server for Sp00ky Sync devtools
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_connections
List browser tabs connected to Sp00ky DevTools
get_state
Get the full Sp00ky DevTools state (queries, mutations, auth, database, versions)
| Parameter | Type | Description |
|---|---|---|
tabId | number | Browser tab ID (uses first connected tab if omitted) |
run_query
Execute a SurrealQL query against the database
| Parameter | Type | Description |
|---|---|---|
query * | string | SurrealQL query to execute |
tabId | number | Browser tab ID |
target | string | Query target: local or remote database |
list_tables
List all database tables
| Parameter | Type | Description |
|---|---|---|
tabId | number | Browser tab ID |
get_query_rows
Fetch the rows (data, localArray, remoteArray) of ONE active query by its queryHash. The state from get_active_queries carries counts and capped ids only.
| Parameter | Type | Description |
|---|---|---|
queryHash * | number | queryHash from get_active_queries |
tabId | number | Browser tab ID |
get_table_data
Fetch records from a database table
| Parameter | Type | Description |
|---|---|---|
tableName * | string | Name of the table |
limit | number | Max number of records to return |
tabId | number | Browser tab ID |
update_table_row
Update a record in a database table
| Parameter | Type | Description |
|---|---|---|
recordId * | string | Record ID to update (e.g. "users:abc123") |
updates * | object | Fields to update |
tabId | number | Browser tab ID |
tableName | string | Name of the table (used when browser extension is connected) |
delete_table_row
Delete a record from a database table
| Parameter | Type | Description |
|---|---|---|
recordId * | string | Record ID to delete (e.g. "users:abc123") |
tabId | number | Browser tab ID |
tableName | string | Name of the table (used when browser extension is connected) |
get_active_queries
Get all active live queries: surql, params, counts, capped membership ids and timings (rows are not included; use get_query_rows for one query)
| Parameter | Type | Description |
|---|---|---|
tabId | number | Browser tab ID |
get_query_timings
Per-query processing-time breakdown for debugging: SSP phases (parse/plan/snapshot at registration; store-apply/circuit-step/transform per ingest, plus whole-ingest `ssp` wall time), local & remote record-fetch, and frontend reconcile — each as { lastMs, p50, p90, p99, count } — sorted slowest-first. Requires the Sp00ky DevTools browser extension. The SurrealDB fallback only exposes persisted materialization percentiles (the per-phase samples are in-memory).
| Parameter | Type | Description |
|---|---|---|
tabId | number | Browser tab ID |
get_mutations
The client's writes: the outbox (pending / retrying with attempt counts), what left it since DevTools attached (synced with the server latency, or rolled back with the server error), debounced updates, the tab role and connection (a follower tab never drains), and the rows of the persistent failed-writes tray with their payload and before image. Answers "did my write reach the server?" and "why was it rolled back?".
| Parameter | Type | Description |
|---|---|---|
includeTray | boolean | Also read the failed-writes tray rows |
status | string | Only entries with this status |
tabId | number | Browser tab ID |
get_logs
Recent lines from the client's own logger (the page keeps its last 500), oldest first, each with its structured fields. Pass `after` = a previous call's `head` to read only what is new. `captureLevel` changes what the page records (e.g. 'debug') without printing more to the console; it holds for the tab's session, so a reload records its boot at that level.
| Parameter | Type | Description |
|---|---|---|
after | number | Only lines after this seq (a previous `head`) |
captureLevel | string | Set what the page records from now on |
contains | string | Only lines whose JSON contains this text (case-insensitive) |
limit | number | Max lines, newest kept |
minLevel | string | Only lines at or above this level |
tabId | number | Browser tab ID |
get_auth_state
Get the current authentication state
| Parameter | Type | Description |
|---|---|---|
tabId | number | Browser tab ID |
describe_schema
Describe all tables with columns, types, and sp00ky annotations (@crdt, @parent). Stitches INFO FOR DB with parsed schema metadata. With the browser extension this returns @crdt/@parent semantics; direct-DB mode returns raw column info only.
| Parameter | Type | Description |
|---|---|---|
tabId | number | Browser tab ID |
lint_query
Validate a SurrealQL query without running it. Sends EXPLAIN <query> through the connected channel; returns parse / plan errors with location when SurrealDB provides them.
| Parameter | Type | Description |
|---|---|---|
query * | string | SurrealQL query to validate |
tabId | number | Browser tab ID |
target | string | When using the extension: lint against local (cache) or remote DB |