MCP-Server

agent-loop-detector

io.github.lazymac2x/agent-loop-detector
Entwicklertools Öffentlich und erreichbar MCP 2026-07-28

Was dieses MCP kann

Analyzes AI agent traces for repeated tool-call loops, token costs, stuck states, and remediation recommendations.

analyze_trace
Full diagnostic: loop detection, cost breakdown, stuck-state classification, and fix recommendations for an AI agent trace.
Eingabeschema
{'type': 'object', 'required': ['trace'], 'properties': {'trace': {'type': 'array', 'items': {'type': 'object'}, 'description': 'Ordered array of agent steps (role, tool, input, output, tokens, model)'}, 'pricing': {'type': 'object', 'nullable': True, 'properties': {'in': {'type': 'number'}, 'out': {'type': 'number'}}}}}
breakdown_cost
Calculate per-model token usage and USD cost from an agent trace. Supports custom pricing overrides.
Eingabeschema
{'type': 'object', 'required': ['trace'], 'properties': {'trace': {'type': 'array', 'items': {'type': 'object'}}, 'pricing': {'type': 'object', 'nullable': True, 'properties': {'in': {'type': 'number'}, 'out': {'type': 'number'}}}}}
detect_loops
Detect exact-call repeats, periodic tool-call cycles, and ping-pong patterns in an agent trace.
Eingabeschema
{'type': 'object', 'required': ['trace'], 'properties': {'trace': {'type': 'array', 'items': {'type': 'object'}}}}
Hinzugefügt
breakdown_cost
17. September 2026 12:43
Hinzugefügt
detect_loops
17. September 2026 12:43
Hinzugefügt
analyze_trace
17. September 2026 12:43