coding-mcp provides three observability layers:
- Structured logs (Pino)
- Audit logs for mutating operations
- OpenTelemetry trace hooks
Logging
SetLOG_LEVEL to control verbosity.
Audit log
Mutating operations are appended to the audit log file.OpenTelemetry
Enable OTLP export:| Span | Description |
|---|---|
mcp.http.request | Emitted for every HTTP request received by the server |
mcp.tool.{operation} | Emitted for each tool execution, named after the operation |
HTTP monitoring endpoints
When HTTP transport is enabled:| Endpoint | Description |
|---|---|
GET /healthz | Liveness check — returns ok when the server is running |
GET /readyz | Readiness check — returns ok with the number of indexed projects |
GET /metrics | Basic metrics: request_count, error_count, and latency summary |
Troubleshooting
If traces do not appear:- Verify exporter endpoint reachability
- Verify OTLP headers format (
key=value,key2=value2) - Check server logs for initialization errors