Newcontext-mode—Save 98% of your AI coding agent's context windowLearn more
MCP Directory
ServersClientsBlog

context-mode

Save 98% of your AI coding agent's context window. Works with Claude Code, Cursor, Copilot, Codex, and more.

Try context-mode
MCP Directory

Model Context Protocol Directory

MKSF LTD
Suite 8805 5 Brayford Square
London, E1 0SG

MCP Directory

  • About
  • Blog
  • Documentation
  • Contact

Menu

  • Servers
  • Clients

© 2026 model-context-protocol.com

The Model Context Protocol (MCP) is an open standard for AI model communication.
Powered by Mert KoseogluSoftware Forge
  1. Home
  2. Servers
  3. mcp_antigravity

mcp_antigravity

GitHub

2
0

JustClone Coordination MCP Server

The AI-native operating system for your company.

A production-grade coordination hub that enables AI agents and human teams to work as a single organism — sharing tasks, context, decisions, and persistent memory across projects. Not AI for AI's sake, but AI integrated directly into company operations.

Why This Matters

Most AI tooling treats agents as isolated chat sessions. Each agent starts from zero, asks the same questions, loses context between sessions. JustClone MCP solves this with three innovations:

  1. Shared Project State — Tasks, plans, results, and context persist in PostgreSQL. Any agent picks up where another left off.
  2. Inter-Agent Messaging — Agents coordinate directly: the coder tells the copywriter what's ready, marketing asks sales for numbers, all without human relay.
  3. Two-Tier Agentic Memory — Inspired by Anthropic's productivity plugin architecture. A hot cache of the most-used knowledge loads automatically on session start. Deep storage holds everything else. Agents decode shorthand, recall people, terms, and decisions instantly — across sessions, across projects, across time.

Architecture

┌─────────────────────────────────────────────────────────┐
│                    OpenClaw / Agents                     │
│  (Coder · Sales · Marketing · Copywriter · Researcher)  │
└───────────────┬─────────────────────────────────────────┘
                │ MCP Protocol (Streamable HTTP)
                ▼
┌─────────────────────────────────────────────────────────┐
│              JustClone Coordination Server               │
│  FastMCP + Starlette │ 28 Tools │ 12 REST endpoints     │
├─────────────────────────────────────────────────────────┤
│                    PostgreSQL 16                         │
│  projects · tasks · plans · results · context           │
│  sessions · messages · memories (two-tier)              │
└─────────────────────────────────────────────────────────┘

Stack

ComponentTech
MCP ServerFastMCP + Starlette (Streamable HTTP)
DatabasePostgreSQL 16 + asyncpg
MigrationsAlembic (2 migrations)
Dashboardnginx on port 20080
RuntimeDocker Compose
Testspytest-asyncio (41 tests)

Quick Start

# 1. Start the stack
docker compose up -d --build

# 2. Dashboard
open http://localhost:20080

# 3. MCP endpoint (connect any agent here)
http://localhost:8765/mcp

Two-Tier Agentic Memory

The flagship feature. Every agent automatically receives a hot cache of knowledge when starting a session — no setup, no config, no "remind me what we're doing".

How It Works

Agent calls jc_start("antigravity", "kaoru-bot")
  ↓
Server returns:
  ✅ Protocol (how to coordinate)
  ✅ Active tasks
  ✅ Context keys
  ✅ Unread messages
  ✅ Memory hot cache (top 30 by usage)
      person: 🌐 fedor — Owner, Tech Lead
      term:   📁 archetype — Persona routing pattern
      client: 🌐 acme-corp — Enterprise deal, Q2 close

Scoping: Project + Global

ScopeDescriptionVisibility
Global (is_global=True)Company-wide: people, terms, processesEvery agent, every project
ProjectProject-specific: decisions, tech stackOnly agents on that project

Tiered lookup: agent asks for "fedor" → checks project first → falls back to global.

Categories

person · project · term · client · deal · process · preference · other

Usage-Based Hot Cache

Every jc_recall increments usage_count. The hot cache (jc_start response) returns the top 30 most-used memories. Frequently accessed knowledge floats to the top automatically — no manual curation needed.

MCP Tools (28)

Session & State

ToolDescription
jc_startBegin session — returns protocol, state, and memory hot cache
jc_updateGet current project snapshot

Tasks

ToolDescription
jc_create_taskAdd a task to the board
jc_update_taskMove task between statuses
jc_complete_taskMark task done with summary
jc_list_tasksList all tasks grouped by status
jc_get_taskGet full task details + plan + result
jc_edit_taskEdit task title/description
jc_delete_taskDelete a task by reference

Context

ToolDescription
jc_get_contextRead all context keys
jc_set_contextWrite a context key/value
jc_delete_contextDelete a context key

Plans & Results

ToolDescription
jc_save_planStore implementation plan for a task
jc_get_planRetrieve plan for a task
jc_save_resultStore task result
jc_get_resultRetrieve task result

Sessions & Messaging

ToolDescription
jc_start_sessionRegister an agent session
jc_end_sessionEnd session with summary
jc_post_messageSend message to another agent
jc_get_messagesFetch messages for an agent

Memory (Two-Tier)

ToolDescription
jc_rememberStore a memory (project or global scope)
jc_recallRecall memory by key (tiered: project → global)
jc_memory_searchSearch memories by partial match
jc_forgetDelete a memory
jc_memory_promotePromote/demote memory tier (hot ↔ deep)

Admin

ToolDescription
jc_list_projectsList all projects
jc_list_sessionsList recent sessions for a project
jc_delete_projectDelete project + all data (CASCADE)

REST API (12 endpoints)

MethodEndpointDescription
GET/healthHealth check
GET/api/projectsList projects
POST/api/projectsCreate project
DELETE/api/projects/{id}Delete project
GET/api/projects/{id}/tasksList tasks
DELETE/api/projects/{id}/tasks/{ref}Delete task
GET/api/projects/{id}/contextList context
DELETE/api/projects/{id}/context/{key}Delete context key
GET/api/projects/{id}/messagesList messages
GET/api/projects/{id}/sessionsList sessions
GET/api/projects/{id}/memoriesList project + global memories
GET/api/memories/globalList global memories only

Universal Agent Protocol

Any AI agent connecting via MCP receives the full coordination protocol automatically when calling jc_start. The protocol covers:

  • Session lifecycle: jc_start → work → jc_end_session → jc_update
  • Task flow: backlog → todo → in_progress → done (or blocked)
  • Context sharing: persistent key/value store for decisions, tech stack, blockers
  • Inter-agent messaging: agents coordinate handoffs directly
  • Two-tier memory: hot cache auto-loads on start, tiered lookup for everything else

Multi-Agent Scenario

Session 1 — Coder (Antigravity):
  jc_start("antigravity", "kaoru-bot")
  → Sees hot cache: "archetype = persona routing pattern"
  → Works on the feature
  jc_remember("kaoru-bot", "term", "PSR", "Pipeline Status Report")
  jc_post_message(recipient="copywriter", content="Landing page copy ready for review")

Session 2 — Copywriter:
  jc_start("copywriter", "kaoru-bot")
  → Hot cache already includes "PSR" (auto-promoted by usage)
  → Unread message: "Landing page copy ready for review"
  → Starts work immediately, no context lost

Connecting Any Agent

Any MCP-compatible client can connect by pointing to http://host:8765/mcp.
No authentication required. The server is fully agent-agnostic — agent names
are just strings passed to jc_start.

{
  "mcpServers": {
    "justclone-mcp": {
      "serverUrl": "http://localhost:8765/mcp"
    }
  }
}

Database Schema (8 tables)

TablePurpose
projectsProject registry
tasksTask board (backlog → done)
plansImplementation plans per task
resultsTask outputs and deliverables
contextKey/value config and state
sessionsAgent session tracking
messagesInter-agent messaging
memoriesTwo-tier memory (hot/deep, project/global)

Development

# Local dev (requires postgres running)
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env   # edit DATABASE_URL if needed

# Run migrations
DATABASE_URL=postgresql://mcp:mcp@localhost:5432/justclone_mcp alembic upgrade head

# Run server
python server.py

# Tests (41 tests, requires postgres on localhost:5432)
pytest tests/ -v

Ports

PortService
8765MCP Server + REST API
20080Web Dashboard
5432PostgreSQL (internal)

Roadmap

  • OpenClaw integration — single pane of glass across all projects
  • Trello/Linear sync — bidirectional task sync with external boards
  • Auth layer — per-agent permissions and API keys
  • Auto-promote/demote — LRU-based hot cache management
  • Full-text search upgrade — switch from ILIKE to tsvector for memory search at scale

Repository

HA
Hazgar2111

Hazgar2111/mcp_antigravity

Created

April 13, 2026

Updated

April 13, 2026

Language

Python

Category

Developer Tools