About toprakahmetaydogmus/TZeroAlgorithm
toprakahmetaydogmus/TZeroAlgorithm is an MCP server published by toprakahmetaydogmus in the Blockchain category: tool MCP server for AI code context management. Conduid read 22 tools from its source: analyze_change_impact, analyze_code_dependencies, audit_code_quality, build_ast_snapshot, build_project_context, diagnose_and_heal_system and 16 more. No package is published for it, so it installs from a source checkout.
The repository has 130 stars and 6 forks, and its last commit was on 1 Dec 2026. The latest release is v4.1.0 (15 Oct 2026): 📱 What's New in T-Zero v4.1.0 (Mobile Edition) Following requests from mobile application developers in the Cursor community, T-Zero v4.1.0 officially introduces native… It follows v4.0.1 (15 Oct 2026), and the 5 most recent releases go back to v3.0.16 (11 Oct 2026). Its topics include antigravity, ast, codebase-indexing, context-window, devtools and token-reduction.
Install
git clone https://github.com/toprakahmetaydogmus/TZeroAlgorithmTools (22)
analyze_change_impactScores downstream blast radius (0-100) and lists dependent files before editing.analyze_code_dependenciesExtracts import/export DAG, internal dependencies, and external packages.audit_code_qualityRuns static AST code smell checks and Shannon entropy secret scans.build_ast_snapshotPre-computes sub-8ms cached AST snapshot bundle for instantaneous agent ingestion.| Parameter | Type | Description |
|---|---|---|
| force_refresh | boolean | Whether to force rebuild the cache even if valid (default: False). |
| workspace_dir | string | Target repository root directory (default: current directory). |
build_project_contextBuilds a hierarchical context tree. Token reduction varies with the selected files and context tier.diagnose_and_heal_systemSelf-healing operating system doctor fixing environment, zombie processes, and ASTs.| Parameter | Type | Description |
|---|---|---|
| auto_repair | boolean | Whether to apply self-healing patches to disk (default: True). |
| dry_run | boolean | Whether to preview repairs without writing to disk (default: False). |
| workspace_dir | string | Target repository root directory (default: current directory). |
enforce_architecture_rulesValidates architectural layer rules and prevents cyclic or illegal cross-layer imports.estimate_token_costEstimates input cost from token counts and configured rates.execute_codebase_workflowUnified router executing composite multi-step codebase workflows.| Parameter | Type | Description |
|---|---|---|
| action | string | Workflow operation: 'auto' (comprehensive all-in-one pipeline), 'context', 'audit', 'security', 'blueprint', 'dependencies', 'impact', 'search', 'prune', 'heal', 'memory', 'swarm', 'design'. |
| options | any | Optional JSON string or dictionary of additional configuration parameters. |
| query | string | Search query, focus symbol name, or task goal prompt. |
| target | string | Target repository path, file path, diff string, or code snippet (default: '.'). |
generate_architectural_passportSynthesizes high-density AST structural passport for files and modules.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Absolute or relative path to the Python source file to inspect. |
generate_architecture_blueprintGenerates complete `ARCHITECTURE.md` with auto-generated Mermaid component diagrams.heal_hallucinated_codeSelf-healing AST corrector that repairs hallucinated method calls and phantom imports.| Parameter | Type | Description |
|---|---|---|
| code * | string | Candidate Python code to inspect and repair. |
| workspace_dir | string | Target repository root directory (default: current directory). |
manage_architecture_rulesDefines and manages active architectural boundary rules in `tzero.rules.json`.manage_memory_storeConsolidates, prunes, and manages persistent semantic memory triplets.orchestrate_agent_swarmCoordinates multi-agent PBFT consensus and task routing across workspace subagents.prove_zero_hallucinationRuns a fixed 60-scenario hallucination detection benchmark, distinguishing from 'heal_hallucinated_code' for a single candidate snippet and 'audit_code_quality' for repository findings. Results apply only to the tested cases and do not prove absence of other hallucinations.
Parameters:
- `workspace_dir` (str, optional, default='.'): Target repository root directory containing ground-truth AST symbol definitions.
- `export_docs` (bool, optional, default=True): When True, updates docs/ZERO_HALLUCINATION_PROOF.md and docs/zero_hallucination_proof.json.
Behavior:
- Mutability: export_docs=True writes benchmark artifacts in docs/ relative to the server working directory; False avoids those writes.
- Idempotency: Report timestamps and measured latencies may differ between runs.
- 100% Offline: Operates entirely locally with zero external network access.
- Auth & Rate Limits: Zero authentication or cloud credentials required; completes in <100ms.
- Error Handling: Emits clean verification status and confusion matrix.
Usage Guidelines:
- When to use: Measure detection and false-positive rates on the bundled scenarios before or after changes.
- When NOT to use: Do not use for inspecting a single candidate snippet (use 'heal_hallucinated_code' instead); do not use for secret scans (use 'verify_security_guard' instead).
Returns: Markdown benchmark results with case counts, detection and false-positive rates, and latency.| Parameter | Type | Description |
|---|---|---|
| export_docs | boolean | Whether to write ZERO_HALLUCINATION_PROOF.md to docs/. |
| workspace_dir | string | Target repository root directory (default: current directory). |
prune_code_snippetStrips method bodies on-the-fly, leaving only clean AST signatures.query_memory_storeSearches semantic vector-quantized virtual memory triplets (`<|tzero:mem:...|>`).search_codebase100% offline lexical BM25 + TF-IDF hybrid code search (no cloud embedding fees).search_toolsDynamic catalog discovery exposing all 58 runtime MCP tools on demand.| Parameter | Type | Description |
|---|---|---|
| category | string | Optional category filter: 'all', 'context', 'security', 'ast', 'memory', 'swarm', 'design'. |
| limit | integer | Maximum number of matching tools to return (1-30). |
| query | string | Keyword query (e.g., 'secret audit', 'pagerank', 'diff', 'merge'). |
transpile_model_bridgeTranspiles Python dataclasses and Pydantic schemas to TypeScript, Rust, Go, Swift, and Kotlin.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Path to Python file containing data models. |
| target_lang | string | Target language: 'ts', 'rust', 'go', or 'all' (default: 'ts'). |
verify_security_guardScans workspace for high-entropy tokens, private keys, and API credentials.Security checks
6 checks have not been run yet.