Skip to main content

Unlegacy setup CLI for external coding agents

Project description

unlegacy-cli

Installable CLI for connecting local coding agents to Unlegacy MCP.

Unlegacy generates repository documentation, API references, knowledge graph data, and Vault investigation docs in the platform. This CLI configures external coding agents so they can consume that MCP surface.

Install

Published package:

uv tool install unlegacy-cli

or:

pip install unlegacy-cli

After install, the command is saved on the user's machine as:

unlegacy --help

From a checkout:

pip install .

or:

uv tool install .

One-shot setup without preinstalling:

uv tool run --from unlegacy-cli unlegacy setup --token mcp_live_xxx --endpoint https://app.unlegacy.ai/ai/mcp

Distribution

Build the package artifacts:

uv build

The build creates dist/unlegacy_cli-<version>.tar.gz and dist/unlegacy_cli-<version>-py3-none-any.whl. Publish those artifacts to the Python package index used by Unlegacy clients.

Setup

unlegacy setup

The flow:

  1. Shows the Unlegacy logo.
  2. Prompts for the MCP token from the Unlegacy frontend.
  3. Prompts for the MCP endpoint. Press Enter to use the local app endpoint: http://localhost:5173/ai/mcp.
  4. Lets the user select supported clients.
  5. Writes or merges MCP config.
  6. Installs the packaged unlegacy skill.
  7. Runs unlegacy doctor.

Non-interactive usage:

UNLEGACY_MCP_TOKEN=mcp_live_xxx \
unlegacy setup --client claude-code --client codex --endpoint https://app.unlegacy.ai/ai/mcp

For local development:

UNLEGACY_MCP_TOKEN=mcp_live_xxx \
unlegacy setup --client claude-code --client codex --endpoint http://localhost:5173/ai/mcp

Supported client values:

  • claude-code
  • codex
  • cursor
  • vscode-copilot
  • opencode
  • all

Commands

unlegacy setup
unlegacy doctor
unlegacy install-skills --client codex
unlegacy status

Vault-aware MCP tools

The packaged unlegacy skill now teaches agents how to use both repo-scoped and Vault-scoped tools.

Repo-scoped tools are still the right starting point for single-repository work:

  • list_repos
  • repo_brief
  • list_docs
  • search_docs
  • doc_outline
  • read_doc
  • repo_info
  • search
  • symbol_context
  • impact
  • cypher
  • get_code

Vault-scoped tools are the right starting point for product, migration, or system questions that cross repository boundaries:

  • list_vaults
  • vault_brief
  • list_vault_repos
  • list_vault_docs
  • read_vault_doc
  • search_vault_docs
  • search_repo_kg
  • list_needs_input

Typical Vault flow for an installed coding agent:

  1. Call list_vaults unless the user gave an exact Vault id.
  2. Call vault_brief(vault_id) to load the Vault summary, member repos, generated docs, missing evidence, and Needs Input.
  3. Use list_vault_docs and read_vault_doc before drilling into source.
  4. Use list_vault_repos to keep follow-up repo reads inside the Vault.
  5. Use search_repo_kg for code-graph verification within a Vault member repo.
  6. Use list_needs_input before presenting cross-repo conclusions that depend on missing docs, API refs, or KG evidence.

unlegacy doctor validates that the connected MCP endpoint exposes the required repo and Vault tools.

Development

uv run pytest

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

unlegacy_cli-0.3.0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

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

unlegacy_cli-0.3.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file unlegacy_cli-0.3.0.tar.gz.

File metadata

  • Download URL: unlegacy_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for unlegacy_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6caf608bf7678e1927cda2966adb2ccce4fd0b3a65ac386a9b0dc1f5d31bdcf3
MD5 fdefdb0efc21a908ed15e3f0a0fd6e94
BLAKE2b-256 2cc999a39c6fd709adb0d7fc931a88d346d52c8fea96d2bf6995ba302ec7dfc3

See more details on using hashes here.

File details

Details for the file unlegacy_cli-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: unlegacy_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for unlegacy_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f9c99272008d2e7bfa8f22aa16eccaff4fb16e52d25cfb960330184f725a04e
MD5 eb306ed200520a7d72d0022dfdf74901
BLAKE2b-256 523f8a01702e217ee0f177ef621055da38f69180239ad203837b47a3207d2a56

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