Aoci Code logo

Aoci Code

Maintains a local, Git-versioned code and database-schema index that MCP-compatible coding agents read before making changes.

Install Aoci Code

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for aoci-code, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

aoci-code maintains a persistent, Git-versioned map of a repository's files, dependencies, responsibilities, and constraints, with optional MySQL or PostgreSQL schema coverage. Its local Go CLI and MCP server let an agent initialize the project, scan Git-managed files, build cognition records, and update entries after code changes. Reach for it when agents repeatedly re-read a large codebase or when project context needs to survive handoffs, new conversations, and different coding tools. The design keeps source and index data local, using database connections only for catalog metadata.

Use cases

  • Index a large existing codebase before handing it to a coding agent
  • Preserve architectural context across agents and conversations
  • Track file-level knowledge as code changes
  • Add table-level schema context for MySQL or PostgreSQL projects

Key features

  • Git-versioned repository cognition index
  • Local Go CLI and MCP server
  • Automatic detection of entries needing updates
  • Code and database-schema indexing
  • Resumable batch indexing
  • Local status panel

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

18/18 checks healthy over the last 11d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1.9kStargazers on the source repository.
Last commit1d agoMost recent push to the default branch.

How Aoci Code works

What aoci-code does

aoci-code gives coding agents a repository-level map they can read before starting work. The index records one concise entry for each managed file, including its purpose, related files, important interfaces, and assumptions that must remain true. Entries also carry compact tags describing factors such as architectural layer, domain, importance, and size.

The index is stored beside the project and tracked with Git. That makes the accumulated system knowledge available after a change of developer, agent, or conversation. Existing projects can be indexed in one operation, with a reported level of understanding for different areas. Database cognition extends the map to table-level structure for supported database systems.

How it works

The aoci command-line program initializes the project and connects the selected host to the local MCP server. A scan obtains its file inventory from Git, so the cognition files created by initialization must remain visible to that inventory. The agent then uses MCP to write the index through its existing model channel.

After the initial pass, the server watches for code changes and identifies entries that should be refreshed. The agent updates those records as it completes work. Indexing runs in batches and can resume after an interruption; large projects therefore do not need to be processed in one uninterrupted session.

The server also starts a local panel that reports project status and provides a link for viewing the index. A host restart is normally needed after initialization so the host loads the newly configured MCP server, although hosts that dynamically load MCP services may behave differently.

Setup and configuration

Download the release package matching the operating system and CPU architecture, or build from the official source when appropriate. Place aoci (or aoci.exe on Windows) at a stable absolute path, then run init for the project and scan. Restart the coding agent before asking it to build the index.

For database coverage, build the code index first. MySQL 5.7.6 and later and PostgreSQL are supported; openGauss 6.0.5 has constraints, and MariaDB is not supported. Supply the database connection-string environment variable through the host environment. Credentials are referenced by environment-variable name rather than saved by aoci-code.

Limitations and notes

The first indexing pass can take substantial time: the project describes roughly an hour per 200,000 lines depending on the model and agent. Practical capacity depends more on index size than raw line count. The server reads source code and database table structures, not business data, and does not use the Internet. It writes index and state files locally, with status-page registration in the user cache directory; database access is limited to the declared database's catalog metadata.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Aoci Code

aoci-code is an MCP server that connects coding agents to a local, Git-versioned map of a project’s codebase and database schema. Its MCP tools let agents read the index, build code or database cognition, and maintain entries as the project changes, giving them persistent context across tasks, conversations, and agent handoffs.

Install a release package for the operating system and CPU architecture, place the `aoci` executable at a stable absolute path, and run `init` for the project. Run `scan`, restart the coding agent, then ask it to build the AOCI index.

Yes, aoci-code works with Cursor through MCP integration. Run `init`; if Cursor does not write the project configuration automatically, copy the configuration it reports into Cursor yourself, then restart the agent before building the index.

Yes, aoci-code can index MySQL and PostgreSQL table structure after the code index is built. MySQL 5.7.6 and later are supported, while MariaDB is not; openGauss 6.0.5 is supported with constraints. Provide the connection-string environment variable through the host environment.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAoci Code AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/aoci-code?style=directory)](https://allmcps.com/mcp/aoci-code)
HTML Embed
<a href="https://allmcps.com/mcp/aoci-code"><img src="https://allmcps.com/api/badge/aoci-code?style=directory" alt="Aoci Code on AllMCPs" /></a>