aoci-code

Level ALocal

A persistent, Git-versioned map of your whole codebase and database schema that coding agents read before they touch anything. Local-first MCP server + CLI in Go: a governed repository index of code knowledge that gives Claude Code, Codex, Cursor, and opencode long-term context, memory, and code intelligence.

Overview

AOCI-CODE is a local-first MCP server and Go CLI that maintains a persistent, Git-versioned index of your codebase and database schema. The model writes one line per file or table covering its responsibility, dependencies, and constraints, so coding agents read the index once and understand the whole system before starting a task, cutting repeated searching and re-learning. The index evolves with the code, can be diffed and rolled back, and covers MySQL, PostgreSQL, and openGauss.

⭐ 2.8kDatabaseGoRepo ↗Updated 2026-11-20

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "aoci-spec-aoci-code": {
      "command": "aoci",
      "args": [
        "--repo",
        "/path/to/your/project",
        "mcp"
      ]
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/aoci-spec/aoci-code

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "aoci-spec-aoci-code": {
      "command": "aoci",
      "args": [
        "--repo",
        "/path/to/your/project",
        "mcp"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers