Span

Official registry Other

Codebase understanding stored with its evidence, marked stale when that evidence changes.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

PYPI package span-mcp
Claude Code
claude mcp add span -- uvx span-mcp==0.8.2
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "span": {
            "command": "uvx",
            "args": [
                "span-mcp==0.8.2"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. The problem
  2. See it
  3. How it works
  4. Quick start
  5. Works with
  6. Why it is different
  7. What it is not
  8. Status
  9. Documentation
  10. Contributing
  11. Registry
  12. License
  13. In one sentence

Persistent codebase understanding for coding agents.

Span is a local MCP server that keeps what your agent learned about your repository tied to the code it came from, and marks it stale when the supporting evidence changes.

Quick start · How it works · Docs

The problem

Coding agents either trust documentation and memory that may no longer match the repository, or they re-read the same source, tests, contracts, and configuration every session and reconstruct the same understanding.

Nothing normally fails when a note becomes wrong. The file still looks valid, the agent still reads it, and the next session starts from the same uncertainty.

Span gives the agent a third option: established understanding, stored with the evidence that supports it, and an explicit answer about whether that support is still current.

See it

This is a real exchange from the current build, against a two-file fixture. The client is a scripted MCP client, not a model; it shows the wire and freshness behaviour, not model judgement. Raw records: current MCP acceptance evidence.

> explain src/alpha.py
Pending cont-1  CQ-01
  "VALUE = 1"

> submit_interpretation cont-1
PURPOSE  alpha computes the value
  CURRENT

> explain src/alpha.py
PURPOSE  alpha computes the value
  CURRENT

# edit src/alpha.py

> status src/alpha.py
PURPOSE  alpha computes the value
  STALE
  evidence changed
  scope: src/alpha.py

> refresh src/alpha.py
Pending cont-6  CQ-01
  "VALUE = 1 # touched"

> submit_interpretation cont-6
PURPOSE  alpha computes the value
  CURRENT
predecessor  STALE

The first call suspends with a bounded task. The submission establishes the purpose, and the next explain reads it back as current. After the file changes, status reports the purpose as stale, with the changed file and the scope to re-check. Refresh re-examines that one scope; the new result becomes current while the predecessor stays recorded as stale.

Stale means the supporting evidence changed. It does not mean Span has proved the old conclusion false.

The edit did not invalidate the whole repository, and it did not leave the old conclusion looking current. Span does not remove the first investigation; it keeps that work from being discarded when the session ends.

How it works

Like tests give code a feedback loop, Span gives codebase understanding one.

  1. Establish. The agent investigates a bounded area. Span keeps the conclusion together with the evidence and authority it used.
  2. Reuse. Later agents get the established understanding while its support is still current.
  3. Invalidate narrowly. When supporting evidence changes, only the understanding that depended on it becomes STALE.
  4. Re-check. The agent investigates the affected scope and submits a new result. Unaffected understanding stays current; the predecessor remains as history.
StateMeaning
CURRENTThe recorded understanding is still supported by the evidence and premises it depends on.
STALERelevant support changed after the understanding was established. Re-check it before treating it as current.
UNVERIFIABLEA conclusion exists, but the support needed to confirm it could not be obtained: a recorded source is absent from the inventory, an authority seed is missing, an inventory fingerprint is unavailable, or a bounded premise walk did not complete. It is neither current nor known-stale. A provider or store failure is not this state — the operation fails instead.

Quick start

Span currently requires Linux (the verified installation path), Python 3.12 or newer, and Node.js with npm.

pipx install span-mcp        # or: pip install span-mcp
span-install --repo /path/to/your/repo

span-install creates Span's runtime environment, provisions the managed structural indexer, deploys the Agent Skills, and registers supported hosts. Restart or reload your coding agent after installation.

Verify the installation:

span-install --verify-only

To work from a source checkout instead — when contributing, or when pinning to a commit — clone the repository and run the installer from its root:

git clone https://github.com/pontivus-com/span.git
cd span
python3 scripts/install-span.py --repo /path/to/your/repo

Installation establishes operational readiness, not repository understanding. For the manual Codex command and the OpenCode entry, see install and connect.

Works with

HostSetup
Claude CodeManaged by the installer when the Claude Code CLI is present: user-scope MCP registration, skills at ~/.claude/skills, and report-only lifecycle hooks in ~/.claude/settings.json. Manual registration is in install and connect.
CodexManaged by the installer when the Codex CLI is present. Manual registration is in install and connect.
OpenCodeManaged when an opencode.json is present. The supported manual entry is in install and connect.
Other MCP hostsConnect over stdio with span-mcp --data-dir <DATA_DIR> --repo <TARGET_REPO>.

Span runs locally over stdio. It does not call an LLM, choose a model, or store provider credentials. Its state lives in a data directory outside the repositories it analyzes.

Why it is different

Documentation records an answer. Agent memory remembers. Search finds evidence. Span maintains the interpretation layer between them: the conclusion, its evidence, its authority, its dependencies, and its freshness.

ApproachPersists interpreted understandingTracks whether it is still supportedSurfaces what changed, with its scopeSupports scoped semantic re-check
Traditional or generated documentationYesNot inherentlyNoNo
General agent memoryYesNot inherentlyNoNot inherently
Citation-validated agent memoryYesYes, per factNo — unverified items are withheldNo
Code search / structural graphDifferent purposeSource or structure onlyStructural onlyNot semantic reassessment
SpanYesYes, per item, premise, and discovery scopeYes, with the reasonYes

The detailed comparison, including the difference between validation and scoped doubt, is in scope and boundaries.

What it is not

  • Not a documentation generator.
  • Not general agent memory, validated or otherwise.
  • Not code search or a structural graph.
  • Not an LLM service: it never invokes a model or stores provider credentials.
  • Not autonomous: it does not edit code, run tests, or make stale understanding current by itself.

See scope and boundaries for the full list.

Status

Span is beta. Linux is the currently verified installation path; macOS and Windows paths are reserved but not verified. The public operation surface is eleven MCP operations; see the MCP reference. Recorded acceptance runs are in acceptance evidence.

If Span is useful to you, a star helps other developers find it. Feedback and issues are welcome.

Documentation

Contributing

See the contributing guide. Changes should preserve the central contract: established understanding remains reusable only while its required supporting evidence remains current. Security reports are handled through SECURITY.md. Support expectations are described in SUPPORT.md.

Registry

Official MCP Registry entry: io.github.pontivus-com/span

mcp-name: io.github.pontivus-com/span

License

Span is licensed under the Apache License 2.0 (Apache-2.0). See LICENSE.

In one sentence

Span gives coding agents codebase understanding that cannot go stale silently: reuse what is still current, and re-check only what changed.

Frequently asked questions

What is Span?

Codebase understanding stored with its evidence, marked stale when that evidence changes.

How do I install Span?

It runs on your machine. In Claude Code: claude mcp add span -- uvx span-mcp==0.8.2. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Span need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is Span open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Who maintains Span?

It is published by pontivus-com. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.