dev_health
Monitor MCP server health and component status. Useful for diagnostics and proactive monitoring.
Usage
dev_health(format?)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
format | "compact" | "verbose" | "compact" | Output format |
Example
βUse dev_healthβ
## MCP Server Health
Status: β
Healthy
Uptime: 2h 34m 12s
Components:
- Vector Storage: β
Pass (24ms)
- Repository Index: β
Pass (12ms)
- GitHub Index: β
Pass (8ms)
- Rate Limiter: β
Pass (89/100 tokens available)Verbose Output
βUse dev_health format verboseβ
## MCP Server Health (Verbose)
Status: β
Healthy
Version: 0.1.0
Started: 2024-01-15T08:00:00Z
Uptime: 2h 34m 12s
Process ID: 12345
Components:
βββββββββββββββββββ¬βββββββββ¬βββββββββββ¬ββββββββββββββββββββββ
β Component β Status β Latency β Details β
βββββββββββββββββββΌβββββββββΌβββββββββββΌββββββββββββββββββββββ€
β Vector Storage β β
Pass β 24ms β LanceDB connected β
β Repository Indexβ β
Pass β 12ms β 1,832 components β
β GitHub Index β β
Pass β 8ms β 172 documents β
β Rate Limiter β β
Pass β <1ms β 89/100 tokens β
βββββββββββββββββββ΄βββββββββ΄βββββββββββ΄ββββββββββββββββββββββ
Memory Usage: 145 MB
CPU: 2.3%Health States
| State | Meaning |
|---|---|
| β Healthy | All components operational |
| β οΈ Degraded | Some components have warnings |
| β Unhealthy | Critical components failing |
Component Checks
| Component | What It Checks |
|---|---|
| Vector Storage | LanceDB connection and query capability |
| Repository Index | Index exists and is readable |
| GitHub Index | GitHub metadata is accessible |
| Rate Limiter | Token bucket has capacity |
Use Cases
Proactive monitoring. Check health before important operations to catch issues early.
Debugging tool failures. If a tool returns errors, health check can identify the root cause.
Response Metadata
{
"metadata": {
"tokens": 156,
"duration_ms": 45,
"status": "healthy",
"components_checked": 4
}
}Last updated on