Skip to main content

A/MCL — Agent/Multi-Coding-agent Context Layer. MCP server for automatic context persistence across AI coding agents.

Project description

A/MCL — Agent/Multi-Coding-agent Context Layer

Zero-intervention context persistence across AI coding agents.

When you hit a rate limit on one agent (Antigravity, Cursor, Claude Code) and switch to another, A/MCL ensures the new agent automatically has access to the complete conversation history, file changes, reasoning chains, and project state. No commands. No manual handoff. It just works.


How It Works

A/MCL is an MCP (Model Context Protocol) server. MCP-compatible agents discover it automatically at launch and gain access to shared project context via standard tools, resources, and prompts.

┌──────────────┐     stdio      ┌────────────────┐     SQLite     ┌──────────┐
│  AI Agent    │ ◄────────────► │  A/MCL Server  │ ◄────────────► │  Context │
│ (Antigravity,│                │  (FastMCP)     │                │  Store   │
│  Cursor, etc)│                │                │                │ (~/.amcl)│
└──────────────┘                └────────────────┘                └──────────┘
  1. Install oncepip install -e . (or pip install amcl-server)
  2. Setupamcl-server setup (creates DB, shows MCP config)
  3. Use your agents normally → Context is automatically shared
  4. Switch agents → New agent picks up exactly where the last one left off

Quick Start

# Clone & install
cd A:MCL
pip install -e .

# Initialize and Auto-Register
amcl-server setup

# Check status
amcl-server status

The setup command automatically detects all installed AI agents and IDE extensions on your system and registers A/MCL directly into their settings. Once you run setup, you are completely done.


Supported Agents (Auto-Detected)

A/MCL automatically integrates with:

  • Cursor (~/.cursor/mcp.json)
  • Claude Desktop / Antigravity (Library/Application Support/Claude/claude_desktop_config.json)
  • Amp (~/.amp/mcp.json)
  • Roo / Cline (VSCode & Cursor instances)
  • Generic MCP clients (~/.mcp/config.json)

If your agent isn't automatically found, the setup command will print the exact JSON snippet you can manually paste into its MCP configuration.


What Gets Shared

Category Data
Conversation All messages between user and agents, with agent attribution
File Changes Files created, modified, deleted — tracked automatically
Tasks Current goal, active tasks, completed work, blockers
Decisions Design decisions with rationale and alternatives considered
Agent History Which agents worked on what, session timestamps

MCP Tools

Agents can invoke these tools:

Tool Description
context_get_current Full project context snapshot
context_update Append new conversation/file/decision data
context_query Search context history
context_get_files_changed Files changed since last agent switch
context_get_conversation Recent N messages
context_get_reasoning Decision log
context_add_decision Log a design decision
context_mark_complete Mark a task as completed
context_add_blocker Record a blocking issue

MCP Resources

Read-only data endpoints:

  • context://current-project — Complete snapshot
  • context://conversation — Message history
  • context://files — File state & changes
  • context://reasoning — Decision log
  • context://tasks — Task state
  • context://agents — Agent session history

MCP Prompts

Pre-built prompts for context injection:

  • Project Context — Complete project overview
  • Recent Work — Summary of last session
  • Continuation — "Pick up where we left off"
  • Decisions Log — Key decisions and rationale

Environment Variables

Variable Default Description
AMCL_DATA_DIR ~/.amcl Where context database lives
AMCL_LOG_LEVEL WARNING Logging verbosity
AMCL_AGENT_NAME unknown Name of the connecting agent
AMCL_PROJECT_DIR cwd Project directory override

Architecture

src/amcl/
├── types.py                  # Shared dataclasses
├── cli.py                    # CLI (setup, status, start)
├── __main__.py               # python -m amcl entry point
├── storage/
│   ├── database.py           # SQLite schema + migrations
│   └── storage_manager.py    # CRUD operations
├── context/
│   ├── context_manager.py    # Central orchestrator
│   ├── project_detector.py   # Git root / language detection
│   ├── conversation_logger.py # Message logging + summarization
│   └── file_watcher.py       # watchdog file monitoring
└── mcp/
    ├── server.py             # FastMCP server factory
    ├── tools.py              # 9 MCP tools
    ├── resources.py          # 6 MCP resources
    └── prompts.py            # 4 MCP prompts

Privacy

All data stays local on your machine in ~/.amcl/amcl.db. Nothing is ever sent to external servers. No telemetry, no analytics.


License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amcl_server-1.0.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amcl_server-1.0.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file amcl_server-1.0.0.tar.gz.

File metadata

  • Download URL: amcl_server-1.0.0.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for amcl_server-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4ff9a77e3e2bc93f6b711daeb21773d651c38dddd44a16fc925e7d9ebc0e8f47
MD5 9e990f7ca2b96a1e23b50aa14c245144
BLAKE2b-256 2b3dc7ae88b4cefab2c8255781592710d4f24f1d7f70e89011ca84c8382f22a7

See more details on using hashes here.

File details

Details for the file amcl_server-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: amcl_server-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for amcl_server-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1120a470a27007fdfaabb457d10330a8124f97354124c7ef1f13e7430f4ee9b8
MD5 eddafa114700f6a7586d2f11bc10d043
BLAKE2b-256 006866884d6baa39ebd8263edc83f9debf7cb0f991f2c4ae092f07ab412e84e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page