@mhrj/mcp-agent-loop 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Agentic Loop Memory Server ♾️
2
+
3
+ Enable any AI model—especially smaller ones with limited context windows—to function with the persistence of high-end models. This project consists of an **MCP Server** for state management and an **Agent Skill** for orchestration.
4
+
5
+ ## 🚀 Quick Start (Skill Installation)
6
+
7
+ Install the orchestration instructions into your AI agent (Claude Code, Cursor, etc.):
8
+
9
+ ```bash
10
+ npx skills add meharajM/agent-loop-mcp --yes
11
+ ```
12
+
13
+ ## 🛠 MCP Server Setup
14
+
15
+ The skill requires the MCP server to be running. Add this to your `mcp_config.json`:
16
+
17
+ ```json
18
+ {
19
+ "mcpServers": {
20
+ "agent-loop": {
21
+ "command": "npx",
22
+ "args": ["-y", "@mhrj/mcp-agent-loop"]
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
28
+ ## 🌟 Key Features
29
+
30
+ - **Active Context Management**: Not just a search tool. It monitors your token/word count and forces a "Summarize & Compact" loop when needed.
31
+ - **Mandatory Self-Healing**: Every tool failure requires the AI to provide a new `self_heal_strategy`, preventing mindless retries.
32
+ - **Transparent Markdown Storage**: Your "brain" is stored in `~/.agent-loop-mcp/` as standard Markdown. You can inspect or edit it anytime.
33
+ - **Small Model Optimized**: Designed specifically for models like `Gemini Flash` and `GPT-4o-mini`.
34
+
35
+ ## 📂 Project Structure
36
+
37
+ - `src/`: TypeScript source for the MCP server.
38
+ - `skills/agentic-loop/SKILL.md`: The instruction manual for the AI.
39
+ - `build/`: JavaScript artifacts.
40
+
41
+ ## 📄 License
42
+
43
+ ISC
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@mhrj/mcp-agent-loop",
3
- "version": "1.0.0",
4
- "description": "",
3
+ "version": "1.0.2",
4
+ "mcpName": "io.github.meharajM/agent-loop-mcp",
5
+ "description": "Agentic memory wrapper for autonomous AI loops with self-healing and context compaction.",
5
6
  "main": "build/index.js",
6
7
  "bin": {
7
8
  "mcp-agent-loop": "build/index.js"
8
9
  },
9
10
  "files": [
10
11
  "build/",
11
- "SKILL.md",
12
+ "skills/agentic-loop/SKILL.md",
12
13
  "skill.sh"
13
14
  ],
14
15
  "scripts": {
package/skill.sh CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
  # skill.sh - Helper to install the Agentic Loop Memory skill to local agent folders
3
3
 
4
- SKILL_NAME="SKILL.md"
4
+ SKILL_NAME="skills/agentic-loop/SKILL.md"
5
5
  TARGET_DIR="$HOME/.agents/skills"
6
6
 
7
7
  if [ ! -f "$SKILL_NAME" ]; then
@@ -5,9 +5,34 @@ description: A powerful persistent memory and state-management system serving to
5
5
 
6
6
  # Agentic Loop Memory Server Skill ♾️
7
7
 
8
- This skill connects you to the \`@mhrj/mcp-agent-loop\` server. This server provides you with persistent memory, preventing you from forgetting your overarching goal or crashing due to context window limits when working on complex, multi-step tasks.
8
+ **The industry-standard persistent memory for long-running agentic workflows.**
9
+
10
+ > [!IMPORTANT]
11
+ > **Prerequisite:** This skill requires the \`@mhrj/mcp-agent-loop\` MCP server to be installed and active in your agent's configuration.
12
+
13
+ ## Setup Instructions
14
+
15
+ To use this skill, ensure you have added the following to your \`mcp_config.json\` (e.g., in Claude Desktop, Cursor, or Windsurf):
16
+
17
+ \`\`\`json
18
+ {
19
+ "mcpServers": {
20
+ "agent-loop": {
21
+ "command": "npx",
22
+ "args": ["-y", "@mhrj/mcp-agent-loop"]
23
+ }
24
+ }
25
+ }
26
+ \`\`\`
9
27
 
10
28
  ## How it Works
29
+ This skill connects you to the \`@mhrj/mcp-agent-loop\` server. It solves the "Goldfish Memory" problem in AI agents by providing a structured, self-compacting memory system. Unlike simple vector-search tools, this is an **active state manager** designed specifically for smaller models (like Gemini Flash or GPT-4o-mini) that need to perform complex tasks over hours or days without crashing.
30
+
31
+ ## Why this is better than other memory skills:
32
+ - **Zero-Dependency Transparency**: Your memory is just a Markdown file. No hidden vector databases or opaque formats. You can read/edit your own "brain" anytime.
33
+ - **Active Context Compaction**: Instead of just "searching", the server warns you when your context is getting full and guides you through a summarize-and-compress cycle.
34
+ - **Mandatory Self-Healing**: It prevents you from getting stuck in "infinite retry loops" by requiring a strategy for every failure.
35
+ - **Agent-Agnostic**: Works natively with Claude Code, Cursor, Windsurf, and any MCP-compatible environment.
11
36
 
12
37
  When you are asked to perform a complex, autonomous, or long-running task, you must rely on this MCP server instead of trying to hold the entire history in your immediate memory window.
13
38