--json, on stdout. Each has its own --help.
magpie-server doctor
Checks a running server. It changes nothing but one test span.
The checks
A failed check has a
fix line that says what to do. A check that cannot run after a failed one is skip.
Flags and variables
The JSON output
The JSON output
{"ok", "url", "doctorVersion", "server", "checks", "testSpan"}:server: the answer ofGET /v1/version, ornull.checks: always the five checks in order, each{"name", "status", "message", "fix"}.statusispass,failorskip;fixisnullunless the check failed.testSpan:{"traceId", "spanId", "word", "service", "delete": {"method", "path", "body", "curl"}}once the server took the span, elsenull.
Where the key and the test span go
Where the key and the test span go
- The key and the test span go only to
magpie-server. WhenGET /v1/versionis missing or does not answer asmagpie-serverdoes,sendandqueryareskip. - The test span is one span of a new trace, service
magpie-doctor. The output gives the command that deletes it. - The output never shows a key.
- A server on this machine (
localhost,127.0.0.0/8,::1) gets the requests with no proxy. For another host the doctor usesHTTP_PROXY,HTTPS_PROXY,ALL_PROXYandNO_PROXY.
magpie-server setup
Finds the language and the agent framework of a project, and prints its tracing setup. It writes no file and connects to nothing.
For each framework it prints the install line, the environment variables, the code, whether the setup was tested with Magpie, and a link to the framework’s docs. A project with none of them gets the plain OpenTelemetry variables. The output ends with the
doctor command that checks the server.
Exit code
0, or 2 for wrong flags or a --dir that is not a folder.
Set up with a coding agent
The steps a coding agent follows, with
doctor as the check.MCP for agents
Let an agent query the traces.