Agent Loop Detector

io.github.lazymac2xPublished by GitHub account lazymac2xv1.0.0Updated Oct 24, 2026

Cloudflare Workers MCP server: agent-loop-detector

VerifiedStreamable HTTPWeb executableData & AnalyticsAI & ML

Overview

AI-generated overview

A remote MCP server that analyzes AI agent traces to detect loops, classify stuck states, and break down token costs.

What you can do
Detect repeated calls, periodic tool-call cycles and ping-pong patterns in an agent trace, and classify stuck states with fix recommendations in a full diagnostic run. Calculate per-model token usage and USD cost from a trace, with optional custom pricing overrides.
When to use it
Useful when debugging an agent that seems to repeat itself, stall, or burn tokens, or when you want a cost breakdown of a trace before tuning prompts or tool use.
Requirements
A remote endpoint at api.lazy-mac.com; no packages, environment variables or headers are declared. The README describes both REST and MCP (JSON-RPC 2.0) access, so network access is needed.
Before you install
Traces are sent to a third-party hosted service, so avoid including secrets or sensitive data in them. Cost figures depend on the pricing used and may be inaccurate without correct overrides.

Installation

In SourceWeft

  1. Open Agent Loop Detector in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.lazymac2x%2Fagent-loop-detector/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "agent-loop-detector": {
      "type": "http",
      "url": "https://api.lazy-mac.com/agent-loop-detector/mcp"
    }
  }
}

README

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

Source: README.md at commit e17a54a

Tools

3

analyze_trace

Full diagnostic: loop detection, cost breakdown, stuck-state classification, and fix recommendations for an AI agent trace.

Parameterstracerequiredpricing

detect_loops

Detect exact-call repeats, periodic tool-call cycles, and ping-pong patterns in an agent trace.

Parameterstracerequired

breakdown_cost

Calculate per-model token usage and USD cost from an agent trace. Supports custom pricing overrides.

Parameterstracerequiredpricing

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

90% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.