agent-loop-mcp
# Agentic Loop Memory Server ♾️
[](https://agentskills.io/specification)
[](https://skills.sh/meharajM/agent-loop-mcp)
**The industry-standard persistent memory and state manager for long-running agentic workflows.**
Enable any AI model—especially smaller ones with limited context windows—to function with the persistence of high-end models. This project works as a two-part ecosystem: an **MCP Server** for state management and an **Agent Skill** for orchestration.
## 🛠 Complete Setup (Required)
For the best experience, you must install **both** the orchestration skill and the MCP server.
### 1. Install the Skill
Install the `agentic-loop` skill into your AI agent (Codex, Claude Code, Cursor, Gemini CLI, GitHub Copilot, and other Agent Skills hosts):
```bash
npx skills add meharajM/agent-loop-mcp@agentic-loop -g -y
```
Preview the skill before activation:
```bash
gh skill preview meharajM/agent-loop-mcp agentic-loop
```
### 2. Configure the MCP Server
Add the following to your \`mcp_config.json\`:
```json
{
"mcpServers": {
"agent-loop": {
"command": "npx",
"args": ["-y", "@mhrj/mcp-agent-loop"]
}
}
}
```
## 🌟 Why this approach is unique
Unlike passive memory tools, this is an **Active State Manager**. It monitors word counts to trigger compaction cycles and enforces a "Self-Healing Strategy" on every failure, preventing AI agents from getting stuck in mindless loops.
## 📂 Project Structure
- `src/`: TypeScript source for the MCP server.
- `skills/agentic-loop/SKILL.md`: The instruction manual for the AI.
- `build/`: JavaScript artifacts.
## 📄 License
ISC
TDQS
Scored across 6 tools
Each tool has a distinct purpose: init starts a loop, log appends steps, compact clears memory, resume unblocks, report triggers human intervention, and get_tool_suggestions offers guidance. No overlapping functionality.
All tool names follow a consistent verb_noun pattern (init_loop, log_step, compact_memory, resume_loop, report_blocker, get_tool_suggestions), using snake_case throughout.
With 6 tools covering the essential loop lifecycle operations, the count is well-scoped for a specialized agent-loop management server.
The toolset provides comprehensive coverage for managing an autonomous loop: initialization, logging, memory compaction, resumption, blocker reporting, and suggestion retrieval. No obvious gaps in the workflow.