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:
- Shows the Unlegacy logo.
- Prompts for the MCP token from the Unlegacy frontend.
- Prompts for the MCP endpoint. Press Enter to use the local app endpoint:
http://localhost:5173/ai/mcp. - Lets the user select supported clients.
- Writes or merges MCP config.
- Installs the packaged
unlegacyskill. - 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-codecodexcursorvscode-copilotopencodeall
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_reposrepo_brieflist_docssearch_docsdoc_outlineread_docrepo_infosearchsymbol_contextimpactcypherget_code
Vault-scoped tools are the right starting point for product, migration, or system questions that cross repository boundaries:
list_vaultsvault_brieflist_vault_reposlist_vault_docsread_vault_docsearch_vault_docssearch_repo_kglist_needs_input
Typical Vault flow for an installed coding agent:
- Call
list_vaultsunless the user gave an exact Vault id. - Call
vault_brief(vault_id)to load the Vault summary, member repos, generated docs, missing evidence, and Needs Input. - Use
list_vault_docsandread_vault_docbefore drilling into source. - Use
list_vault_reposto keep follow-up repo reads inside the Vault. - Use
search_repo_kgfor code-graph verification within a Vault member repo. - Use
list_needs_inputbefore 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6caf608bf7678e1927cda2966adb2ccce4fd0b3a65ac386a9b0dc1f5d31bdcf3
|
|
| MD5 |
fdefdb0efc21a908ed15e3f0a0fd6e94
|
|
| BLAKE2b-256 |
2cc999a39c6fd709adb0d7fc931a88d346d52c8fea96d2bf6995ba302ec7dfc3
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f9c99272008d2e7bfa8f22aa16eccaff4fb16e52d25cfb960330184f725a04e
|
|
| MD5 |
eb306ed200520a7d72d0022dfdf74901
|
|
| BLAKE2b-256 |
523f8a01702e217ee0f177ef621055da38f69180239ad203837b47a3207d2a56
|