devtools-mcp

v1.0.0-beta.13
@spooky-sync/devtools-mcp Checked 32 minutes ago Published 3 days ago

MCP 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)

ParameterTypeDescription
tabIdnumberBrowser tab ID (uses first connected tab if omitted)

run_query

Execute a SurrealQL query against the database

ParameterTypeDescription
query *stringSurrealQL query to execute
tabIdnumberBrowser tab ID
targetstringQuery target: local or remote database

list_tables

List all database tables

ParameterTypeDescription
tabIdnumberBrowser 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.

ParameterTypeDescription
queryHash *numberqueryHash from get_active_queries
tabIdnumberBrowser tab ID

get_table_data

Fetch records from a database table

ParameterTypeDescription
tableName *stringName of the table
limitnumberMax number of records to return
tabIdnumberBrowser tab ID

update_table_row

Update a record in a database table

ParameterTypeDescription
recordId *stringRecord ID to update (e.g. "users:abc123")
updates *objectFields to update
tabIdnumberBrowser tab ID
tableNamestringName of the table (used when browser extension is connected)

delete_table_row

Delete a record from a database table

ParameterTypeDescription
recordId *stringRecord ID to delete (e.g. "users:abc123")
tabIdnumberBrowser tab ID
tableNamestringName 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)

ParameterTypeDescription
tabIdnumberBrowser 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).

ParameterTypeDescription
tabIdnumberBrowser 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?".

ParameterTypeDescription
includeTraybooleanAlso read the failed-writes tray rows
statusstringOnly entries with this status
tabIdnumberBrowser 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.

ParameterTypeDescription
afternumberOnly lines after this seq (a previous `head`)
captureLevelstringSet what the page records from now on
containsstringOnly lines whose JSON contains this text (case-insensitive)
limitnumberMax lines, newest kept
minLevelstringOnly lines at or above this level
tabIdnumberBrowser tab ID

get_auth_state

Get the current authentication state

ParameterTypeDescription
tabIdnumberBrowser 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.

ParameterTypeDescription
tabIdnumberBrowser 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.

ParameterTypeDescription
query *stringSurrealQL query to validate
tabIdnumberBrowser tab ID
targetstringWhen using the extension: lint against local (cache) or remote DB