limelight-mcp

v1.3.3
limelight-mcp Checked 2 days ago Published 9 months ago

Limelight MCP Server — runtime debugging intelligence for AI coding assistants

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

limelight_get_session_overview

Get a high-level snapshot of the running app's runtime state. Returns event counts, error summary, suspicious items, and top-rendered components. THIS IS THE FIRST TOOL TO CALL when starting a debugging session — it tells you what's happening and what to investigate next.

ParameterTypeDescription
last_n_secondsnumberOnly include events from the last N seconds

limelight_get_timeline

Get a chronological view of all runtime events within a time range. Returns timestamped, one-line summaries of requests, logs, renders, and state changes. Use this to understand 'what just happened' — great for seeing the sequence of events around a bug or user interaction.

ParameterTypeDescription
event_typesarrayFilter by event type. Omit to include all types.
last_n_secondsnumberHow many seconds of history to show (default: 10)
min_severitystringMinimum severity filter. 'error' shows only errors, 'warning' includes warnings, 'info' includes everything.
offsetnumberSkip the last N events (after filtering) before taking the 30-event window. Use with hasMore to paginate backwards through the timeline.

limelight_query_network

Query captured network requests with filtering by URL, method, status code, and duration. Returns request details including URL, method, status, duration, and optionally request/response bodies. Use this to find failed requests, slow endpoints, or requests matching a specific pattern.

ParameterTypeDescription
include_bodiesbooleanInclude request/response bodies. WARNING: significantly increases response size. Only use when you need to inspect payloads.
last_n_secondsnumberOnly include requests from the last N seconds
limitnumberMaximum number of results to return (default: 10)
methodstringFilter by HTTP method (GET, POST, PUT, DELETE, etc.)
min_duration_msnumberOnly show requests slower than this threshold (ms)
status_rangeobjectFilter by status code range. Use { min: 400, max: 599 } for all errors, { min: 500, max: 599 } for server errors.
url_patternstringFilter by URL substring (e.g., '/api/users' or 'graphql')

limelight_query_logs

Query captured console events (log, warn, error, info, debug). Filter by level and message pattern. Returns log messages with timestamps, sources, and optionally stack traces. Use this to find error messages, warnings, or debug output from the app.

ParameterTypeDescription
include_stack_tracesbooleanInclude stack traces. Defaults to true for errors, false otherwise.
last_n_secondsnumberOnly include logs from the last N seconds
levelstringFilter by log level
limitnumberMaximum results (default: 10)
message_patternstringSearch within log messages (substring match, case-insensitive)

limelight_investigate_error

Run Limelight's full Debug IR pipeline on an error to get automated root cause analysis. This is the MOST POWERFUL debugging tool — it correlates the error with related events, builds a causal chain, detects violations, identifies state changes, and rules out non-causes. Provide either: - error_id: A specific event ID (from limelight_get_timeline or limelight_query_logs) - error_pattern: A substring to match against error messages, URLs, and stack traces - Neither: Investigates the most recent error Returns a structured analysis with: issue framing, causal chain, state…

ParameterTypeDescription
error_idstringSpecific event ID of the error to investigate
error_patternstringSearch for errors matching this substring (searches error messages, URLs, and stack traces)
scopestringInvestigate the most recent matching error, or return analysis for all matches (default: most_recent)
verbosebooleanReturn full detail including raw state deltas, all constraints, and extended causal chains (default: false)

limelight_correlate_event

Given any event ID, find everything related to it using Limelight's correlation engine. Returns related events organized as a timeline (before/concurrent/after) and a correlation graph with edge types (TRIGGERED, CONTRIBUTED, FOLLOWED, EVIDENCE) and confidence scores. Use this to trace cause-and-effect chains.

ParameterTypeDescription
event_id *stringThe ID of the event to find correlations for. Get event IDs from other tools like limelight_get_timeline or limelight_query_network.
verbosebooleanReturn full graph with all nodes and edges (default: false, compact mode caps at 10 nodes)

limelight_investigate_component

Deep-dive investigation of a specific React component. Returns its full render profile (render count, cost, velocity, cause breakdown, suspicious flags), prop changes, and a full Debug IR analysis that correlates its renders with state changes and network requests. Use this when a component is rendering too often or too slowly.

ParameterTypeDescription
component_name *stringThe name of the React component to investigate (e.g., 'UserList', 'ProductCard'). Partial matches are supported.
verbosebooleanReturn full analysis including causal chain, state deltas, excluded causes, and all correlated events (default: false)

limelight_get_render_profile

Show which React components are rendering, how often, how expensively, and why. Returns component render profiles sorted by cost, count, or velocity. Includes cause breakdown (props/state/context/parent), suspicious flags, and prop change analysis (identifies unstable references). Use for performance profiling.

ParameterTypeDescription
component_namestringFilter to a specific component (substring match)
limitnumberMaximum results (default: 10)
sort_bystringSort results by: render_count (most renders), render_cost (most expensive), or velocity (fastest re-rendering). Default: render_cost.
suspicious_onlybooleanOnly show components flagged as suspicious by Limelight
verbosebooleanReturn full profile with cause breakdown, prop changes, and component IDs (default: false, compact summary)

limelight_get_state_snapshot

Get state store contents and recent state change history. Supports Zustand and Redux stores. Filter by store ID and dot-notation path. With include_history=true, shows the sequence of state changes (actions, changed keys, diffs) that led to the current state. Diffs are sanitized — actual values are type-described, not exposed.

ParameterTypeDescription
history_limitnumberHow many recent state changes to include when include_history is true (default: 10)
include_historybooleanInclude recent state change history (default: false)
pathstringDot-notation path into state (e.g., 'user.preferences.theme'). Only works with include_history.
store_idstringFilter to a specific store (e.g., 'authStore', 'cartStore'). Omit to see all stores.
verbosebooleanReturn full state values instead of type-described summaries (default: false)

limelight_get_event

Retrieve the full details of a single event by its ID. Returns the complete event data including all fields (bodies, headers, stack traces, state diffs, render details). Use this for cheap inspection of any event after finding its ID from other tools like limelight_get_timeline or limelight_find_issues.

ParameterTypeDescription
event_id *stringThe ID of the event to retrieve. Get event IDs from limelight_get_timeline, limelight_query_network, limelight_query_logs, or limelight_find_issues.

limelight_find_issues

Proactively scan all captured runtime events for issues. Returns deduplicated, severity-sorted issues with titles, descriptions, and suggestions. Compact by default — use verbose=true for causal summaries and event IDs.

ParameterTypeDescription
deduplicatebooleanGroup similar issues (e.g., 20 components with the same unstable props → 1 entry with count). Default: true.
limitnumberMaximum number of issues to return (default: 5)
verbosebooleanReturn full detail including causal summaries and related event IDs (default: false, compact mode)