Skip to main content
Glama
zebbern

agloop-mcp

by zebbern
README.md
# agloop-mcp

MCP server providing 14 agent introspection tools for [AgLoop](https://github.com/agloop/agloop) — the VS Code Copilot custom agent framework.

## Quick Start

Add to your `.vscode/mcp.json`:
> For claude desktop or cli users use `mcpservers` instead of `servers`

```json
{
  "servers": {
    "agloop": {
      "command": "uvx",
      "args": ["agloop-mcp"]
    }
  }
}
```

Or run directly:

```bash
uvx agloop-mcp
```

## Tools

### Read Tools (10)

| Tool                            | Description                                                    |
| ------------------------------- | -------------------------------------------------------------- |
| `agloop_get_state`              | Full AgLoop state: phase, tasks, iteration, compaction context |
| `agloop_get_task`               | Single task details by ID                                      |
| `agloop_list_tasks`             | All tasks with optional status/dependency filter               |
| `agloop_get_logs`               | Execution log entries with agent/task/limit filters            |
| `agloop_get_plan`               | Current plan (YAML or Markdown)                                |
| `agloop_get_compaction_context` | Compaction recovery context                                    |
| `agloop_search_logs`            | Full-text search through execution logs                        |
| `agloop_get_agent_info`         | Agent definition file (.agent.md) content                      |
| `agloop_get_next_task`          | Topological-sort next task recommendation                      |
| `agloop_list_agents`            | All available agent names                                      |

### Write Tools (4)

| Tool                       | Description                              |
| -------------------------- | ---------------------------------------- |
| `agloop_update_task`       | Update task status and result log        |
| `agloop_append_log`        | Append structured entry to execution log |
| `agloop_create_checkpoint` | Snapshot current state for recovery      |
| `agloop_set_phase`         | Transition to a new phase                |

## Configuration

The server uses the current working directory as the workspace root. Override with:

```bash
uvx agloop-mcp --workspace /path/to/project
```

## State Files

The server reads/writes from `.agloop/` in the workspace root:

```
.agloop/
├── state.json        # Phase, tasks, iteration
├── log.json          # Execution log (JSON Lines)
├── plan.yaml         # Current plan
└── checkpoints/      # State snapshots
```

## Requirements

- Python 3.11+
- No additional dependencies beyond `mcp`

## License

MIT

TDQS

A3.5/5.0

Scored across 14 tools

Disambiguation5/5

Each tool targets a distinct aspect of the AgLoop workflow: logging, state management, agent info, task operations, and phase transitions. There is no overlap or ambiguity between tools.

Naming Consistency5/5

All tools follow a consistent 'agloop_verb_noun' pattern with appropriate verbs (append, create, get, list, search, set, update) and clear nouns, making the naming predictable.

Tool Count5/5

With 14 tools, the server covers the needed operations for a workflow management system without being excessive. The count is well-scoped for its purpose.

Completeness4/5

The tool set covers core workflow operations such as reading state, managing tasks and agents, logging, and phases. A minor gap is the lack of task creation or deletion tools, but tasks appear to be defined externally, so the surface is largely complete.

Maintenance

ActivityInactive
ResponsivenessNo issues