mcp

v1.0.0
@sentinel-core/mcp Checked 4 days ago Published 5 months ago

MCP server exposing sentinel runtime data to coding agents

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_lineage

Trace where a runtime value comes from in the running app: state path ← redux action ← API request. Query matches state paths (e.g. 'price') and values (e.g. '1299'). Call this when the user asks why a value on the page looks wrong or where it comes from.

ParameterTypeDescription
query *stringState path segment or value to trace
tab_idstringTarget tab id from list_tabs; defaults to the last active tab

list_api_calls

List every API request the running page made (server-side render + client), with method, URL, status, duration and origin. Call this to see what the page fetched and how long requests took.

ParameterTypeDescription
tab_idstringTarget tab id from list_tabs; defaults to the last active tab

get_duplicates

Find API requests issued more than once on the running page, including server+client double-fetches. Call this when investigating wasted or redundant network traffic.

ParameterTypeDescription
tab_idstringTarget tab id from list_tabs; defaults to the last active tab

get_state

Inspect the running app's redux state. Give `path` for an exact value, `query` to search paths/values, or neither for a top-level summary. Call this to see what the state actually holds right now.

ParameterTypeDescription
pathstringExact state path, e.g. productState.product.prices[0].value
querystringFree-text search over state paths and values
tab_idstringTarget tab id from list_tabs; defaults to the last active tab

get_action_log

Recent redux actions on the running page with what each changed in state (deep diff paths). Call this to see which action wrote which part of the state.

ParameterTypeDescription
limitintegerMax actions to return (default 20)
tab_idstringTarget tab id from list_tabs; defaults to the last active tab

get_component_props

Inspect the props a React component actually received on the running page. Give `name` to see every mounted instance of that component with its current props and render count; omit `name` to list all captured components. Call this when redux state looks correct but a component renders wrong, or to see props that never touch redux (local/computed/context props).

ParameterTypeDescription
namestringComponent name, substring match (e.g. ProductCard)
tab_idstringTarget tab id from list_tabs; defaults to the last active tab

list_tabs

List browser tabs currently connected to sentinel-mcp.