Skip to main content

Inspect a Runtime Profile with MCP Inspector

Use MCP Inspector to separate a Runtime Profile or server problem from an AI client problem. LightNow generates a small executable wrapper; Inspector starts that wrapper as a stdio MCP server and exercises the same runtime context used by lightnow run.

What this test covers

BoundaryWhat success proves
Profile exportThe profile contains a Registry-linked, runner-compatible server.
Runtime readinessRequired config and secrets resolve for the selected context.
Server startupThe command, package, environment, and working directory are usable.
MCP discoveryThe server answers a real tools/list request.

This is a focused runner test, not LightNow Proxy mode. Day-to-day AI clients should still connect through LightNow Proxy.

1. Generate the wrapper

Create an executable Inspector wrapper
lightnow sync --client mcp-inspector --runner --profile default --config-path ./lightnow-mcp-inspector.sh

The profile must contain at least one Registry-linked server with an alias and version. The generated shell wrapper targets the first runner-compatible server. Use a focused profile when you need to test a particular upstream.

The wrapper has this shape:

lightnow-mcp-inspector.sh
#!/usr/bin/env sh
exec lightnow 'run' '--profile' 'default' '--server' 'sonarqube' "$@"

An organization selection adds the tenant argument. lightnow run requests the authorized stdio runtime context, resolves secrets for the local runner, and stops before server startup when required inputs are missing.

2. Open Inspector

Start the Inspector UI
npx @modelcontextprotocol/inspector ./lightnow-mcp-inspector.sh

Open the local URL printed by Inspector. Connect to the generated stdio server, run tools/list, inspect the tool schemas, and then call a small read-only tool.

For a repeatable command-line check, use Inspector's CLI mode:

List tools without the browser UI
npx @modelcontextprotocol/inspector --cli ./lightnow-mcp-inspector.sh --method tools/list

The command shape follows the official MCP Inspector documentation.

3. Interpret the failure boundary

FailureOwnerNext action
Wrapper generation failsRuntime ProfileAdd a linked server with alias and version, or choose the correct profile/context.
Runner stops before startupRuntime configComplete the required config or secrets for that profile server.
tools/list failsUpstream runtimeCheck executable, package, environment, authentication, TLS, and server logs.
Inspector works but the AI client failsClient or LightNow ProxyCheck client posture, proxy config, restart state, and tool cache.

Do not broaden the investigation until you know which row failed. Inspector working is strong evidence that the profile server can behave as a normal stdio MCP server; it does not prove that another client's generated config is current.

Continue with Debug LightNow Proxy when Inspector works but a managed client fails. Use runtime secrets and config when the runner reports missing inputs, and runtime events for request evidence from a real client session.