agent-loop-detector-api
Cloudflare Workers MCP server: agent-loop-detector. REST + MCP (JSON-RPC 2.0). Live: api.lazy-mac.com/agent-loop-detector
by lazymac2x
Cloudflare Workers MCP server: agent-loop-detector
Detects and prevents infinite loops in agent execution paths.
Captured live from the server via tools/list.
Full diagnostic: loop detection, cost breakdown, stuck-state classification, and fix recommendations for an AI agent trace.
Ordered array of agent steps (role, tool, input, output, tokens, model)
Detect exact-call repeats, periodic tool-call cycles, and ping-pong patterns in an agent trace.
Calculate per-model token usage and USD cost from an agent trace. Supports custom pricing overrides.
Cloudflare Workers MCP server: agent-loop-detector. REST + MCP (JSON-RPC 2.0). Live: api.lazy-mac.com/agent-loop-detector
Hosted server - connect over the network, no local install.
https://api.lazy-mac.com/agent-loop-detector/mcpclaude_desktop_config.json
{
"mcpServers": {
"agent-loop-detector": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.lazy-mac.com/agent-loop-detector/mcp"
]
}
}
}Desktop config is stdio-only; this bridges via mcp-remote. Native remote: Settings > Connectors.