Skip to main content
Glama
zebbern

agloop-mcp

by zebbern

agloop_get_compaction_context

Retrieve compaction recovery context including compaction count, pending decisions, last delegation, and recovery hints after VS Code context compaction to restore agent state.

Instructions

Get compaction recovery context: compaction count, pending decision, last delegation, recovery hint. Critical after VS Code context compaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool `agloop_get_compaction_context` is defined as an MCP tool handler in `src/agloop_mcp/server.py`. It uses the `_sm()` helper to retrieve the compaction context from the `StateManager` and returns it as a JSON string.
    @mcp.tool()
    def agloop_get_compaction_context() -> str:
        """Get compaction recovery context: compaction count, pending decision, last delegation, recovery hint. Critical after VS Code context compaction."""
        ctx = _sm().get_compaction_context()
        if not ctx:
            return json.dumps({"error": "No compaction context"})
        return json.dumps(asdict(ctx), indent=2)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zebbern/agloop-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server