Skip to content

Start Here

Toprak Ahmet Aydoğmuş edited this page Nov 30, 2026 · 2 revisions

T-Zero Algorithm: Start Here

This page gives a compact, reproducible path from installation to a working T-Zero Algorithm MCP connection. The project is named T-Zero Algorithm; tzero and tzero-mcp are its command and package names. For source-level explanations, see Codebase-Internals and MCP-Tool-Reference.

1. Choose an installation route

Python package

pip install --upgrade tzero-mcp

npm / npx

npx -y tzero-mcp@latest

To install the CLI globally:

npm install -g tzero-mcp

Source checkout

git clone https://github.com/toprakahmetaydogmus/TZeroAlgorithm.git
cd TZeroAlgorithm
python scripts/welcome.py
pip install -e .

The repository welcome script does not install Git hooks unless explicitly requested. Read the Git-hooks section in the source README before enabling optional hooks.

2. Configure an editor

The project documents an auto-detection command and explicit editor selectors:

tzero init
tzero init --cursor
tzero init --claude
tzero init --antigravity
tzero init --windsurf
tzero init --cline
tzero init --vscode
tzero init --zed

Check tzero init --help on the installed version before using a selector: supported clients can change between releases.

Generic MCP configuration

For clients that accept a standard MCP server configuration, the repository documents this Python launch form:

{
  "mcpServers": {
    "tzero": {
      "command": "python",
      "args": ["-m", "tzero_mcp"]
    }
  }
}

The uvx alternative is:

{
  "mcpServers": {
    "tzero": {
      "command": "uvx",
      "args": ["tzero-mcp"]
    }
  }
}

Do not paste both examples into the same client configuration. Pick the launcher that is installed and available on that client's PATH.

3. Confirm the local tools

tzero --help

Restart or reload the editor after changing its MCP configuration. Confirm the server appears in the editor's MCP/tool panel before relying on it.

4. Try the core workflow

The repository describes build_project_context as the hierarchical context-tree builder and prune_code_snippet as a focused AST pruning tool. Use search_tools to discover the runtime catalog rather than assuming every optional tool is exposed by every package build.

For the complete, versioned tool list, inspect the repository README and tests alongside the installed server's tools/list result.

5. Choose the correct interface

Interface Transport Typical use Data boundary
Local MCP server stdio Editor integration Runs on the configured machine; tool output is returned to the connected client.
CLI Local process Scripts, inspection, setup Commands may read or write local files depending on the selected operation.
VS Code extension Extension commands Editor workflows and status UI Check the extension settings and command being run.
Hosted Gradio Space HTTP + event stream Public web demo/API Submitted code is sent to the hosted service; do not send confidential code.

See MCP-and-OpenAPI and Privacy-and-Network-Behavior.

Platform and package guides

Troubleshooting checklist

  1. Verify the executable exists: python --version, uvx --version, or node --version, depending on the chosen route.
  2. Verify the T-Zero package was installed in the same environment used by the MCP client.
  3. Use absolute paths in client configuration if the client does not inherit the expected PATH.
  4. Restart the client after editing its MCP configuration.
  5. Inspect the client's MCP logs for the exact command and startup error.
  6. Avoid sharing logs that contain source excerpts, filesystem paths, or credentials.
  7. Compare installed package version with the repository's current manifest before reporting a regression.

What this guide does not promise

Installation success does not prove that every tool, language parser, model provider, or optional native extension is available. Verify capabilities in the installed environment and consult the current tests and package metadata.

Clone this wiki locally