agent-loop-mcp
Agentic Loop Memory Server ♾️
長期実行エージェンティックワークフローのための、業界標準の永続メモリおよび状態マネージャー。
あらゆる AI モデル(特にコンテキストウィンドウが限られた小型モデル)が、ハイエンドモデルと同等の永続性を持って機能できるようにします。このプロジェクトは、状態管理のための MCP Server とオーケストレーションのための Agent Skill という2つのパートからなるエコシステムとして動作します。
🛠 完全なセットアップ(必須)
最良の体験を得るには、オーケストレーションスキルと MCP サーバーの両方をインストールする必要があります。
1. スキルのインストール
AI エージェント(Codex、Claude Desktop、Cursor、Gemini CLI、GitHub Copilot、その他の Agent Skills ホスト)に agentic-loop スキルをインストールしてください:
npx skills add meharajM/agent-loop-mcp@agentic-loop -g -yアクティベーション前にスキルをプレビュー:
gh skill preview meharajM/agent-loop-mcp agentic-loop2. MCP Server の設定
以下を `mcp_config.json` に追加してください:
{
"mcpServers": {
"agent-loop": {
"command": "npx",
"args": ["-y", "@mhrj/mcp-agent-loop"]
}
}
}Related MCP server: Ori Mnemos
🌟 このアプローチがユニークな理由
受動的なメモリツールとは異なり、これはアクティブ状態マネージャーです。単語数を監視してコンパクションサイクルをトリガーし、あらゆる失敗に対して「自己修復戦略」を適用することで、AI エージェントが無意味なループに陥るのを防ぎます。
📂 プロジェクト構成
src/: MCP サーバーの TypeScript ソース。skills/agentic-loop/SKILL.md: AI 向けの取扱説明書。build/: JavaScript アーティファクト。
📄 ライセンス
ISC
Available Tools
6 toolscompact_memoryA
Empties the Active Context and appends the AI-provided summary to the Compacted History.
Inputs: session_id (required), context_summary (required).
get_tool_suggestionsB
Ask this tool if you are stuck and don't know what other tools to use.
Inputs: no named parameters.
init_loopA
Creates a new .md loop state file for the given session to start a continuous, autonomous task.
Inputs: objective (required), session_id (required).
log_stepA
Appends to the Active Context. Rejects if failed=true but no self_heal_strategy is provided. Warns if context is too large.
Inputs: action (required), failed (required), result (required), session_id (required), +1 more.
report_blockerA
Updates state to STATUS_BLOCKED and asks for human intervention when absolutely stuck.
Inputs: reason (required), session_id (required).
resume_loopC
Removes the block and adds human input context back into the loop.
Inputs: session_id (required), user_input (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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.
Maintenance
Related MCP Connectors
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Persistent memory for AI agents. Search, store, and recall across sessions.
Universal memory for AI agents and tools. Save, organize and search context anywhere.
Universal persistent memory and knowledge retrieval layer for AI agents and LLMs.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides persistent, searchable memory for AI agents, enabling them to retain, recall, and reflect on information across conversations.191MIT
- AlicenseNot gradedqualityAmaintenanceOpen-source persistent memory infrastructure for AI agents.178 npm337Apache 2.0
- FlicenseNot gradedqualityBmaintenanceProvides persistent memory for LLM applications, enabling AI assistants to remember user preferences, facts, and conversation history across sessions.2-
- AlicenseNot gradedqualityDmaintenanceProvides durable memory for AI agents with structured storage, semantic search, OAuth authentication, and lifecycle controls.10Apache 2.0