tzero-mcp 7.3.2__tar.gz → 7.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/.pre-commit-hooks.yaml +7 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/MANIFEST.in +3 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/PKG-INFO +74 -7
- tzero_mcp-7.3.2/tzero_mcp.egg-info/PKG-INFO → tzero_mcp-7.3.4/README.md +61 -42
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/action.yml +19 -9
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/addmcp.py +1 -1
- tzero_mcp-7.3.4/glama.json +18 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/pyproject.toml +58 -14
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/smithery.json +1 -1
- tzero_mcp-7.3.4/smithery.yaml +11 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_cli.py +2 -2
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_cli_comprehensive.py +1 -1
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_dashboard.py +3 -3
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_e2e_full.py +2 -2
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_mcp.py +29 -4
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_tdqs_anchor5.py +4 -4
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tzero.py +1 -1
- tzero_mcp-7.3.4/tzero_dashboard.py +716 -0
- tzero_mcp-7.3.4/tzero_guard.py +194 -0
- tzero_mcp-7.3.4/tzero_infra.py +274 -0
- tzero_mcp-7.3.4/tzero_jarvis/__init__.py +124 -0
- tzero_mcp-7.3.4/tzero_jarvis/causal_graph.py +310 -0
- tzero_mcp-7.3.4/tzero_jarvis/graph_visualizer.py +395 -0
- tzero_mcp-7.3.4/tzero_jarvis/hybrid_search.py +214 -0
- tzero_mcp-7.3.4/tzero_jarvis/latent_press.py +137 -0
- tzero_mcp-7.3.4/tzero_jarvis/memory_consolidation.py +212 -0
- tzero_mcp-7.3.4/tzero_jarvis/minhash_lsh.py +184 -0
- tzero_mcp-7.3.4/tzero_jarvis/orchestrator.py +301 -0
- tzero_mcp-7.3.4/tzero_jarvis/self_healing.py +308 -0
- tzero_mcp-7.3.4/tzero_jarvis/semantic_compressor.py +887 -0
- tzero_mcp-7.3.4/tzero_jarvis/swarm.py +261 -0
- tzero_mcp-7.3.4/tzero_jarvis/swarm_bft.py +144 -0
- tzero_mcp-7.3.4/tzero_jarvis/workspace_orchestrator.py +1167 -0
- tzero_mcp-7.3.4/tzero_jarvis/zero_key_router.py +173 -0
- tzero_mcp-7.3.2/README.md → tzero_mcp-7.3.4/tzero_mcp.egg-info/PKG-INFO +109 -3
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tzero_mcp.egg-info/SOURCES.txt +24 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tzero_mcp.egg-info/entry_points.txt +1 -0
- tzero_mcp-7.3.4/tzero_mcp.egg-info/top_level.txt +19 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tzero_mcp.py +190 -1
- tzero_mcp-7.3.4/tzero_patch.py +127 -0
- tzero_mcp-7.3.4/tzero_pipe.py +95 -0
- tzero_mcp-7.3.4/tzero_polyglot.py +212 -0
- tzero_mcp-7.3.4/tzero_reachability.py +272 -0
- tzero_mcp-7.3.4/tzero_superdesign.py +774 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tzero_v3.py +4 -4
- tzero_mcp-7.3.2/tzero_mcp.egg-info/top_level.txt +0 -9
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/LICENSE +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/app.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/install.ps1 +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/install.sh +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/main.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/requirements.txt +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/setup.cfg +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/siber_akademi.ico +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/siber_akademi_icon.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_addmcp.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_analyzer.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_config.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_deps.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_exports.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_features.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_generator.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_guard.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_gui.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_headless.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_infra_schema.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_jarvis_workspace.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_master_upgrades.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_micro_patch.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_pipe.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_polyglot.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_polyglot_engine.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_providers.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_reachability.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_research_breakthroughs.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_scanner.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_semantic_compression.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tests/test_superdesign.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tzero_deps.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tzero_features.py +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tzero_mcp.egg-info/dependency_links.txt +0 -0
- {tzero_mcp-7.3.2 → tzero_mcp-7.3.4}/tzero_mcp.egg-info/requires.txt +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
- id: tzero-guard
|
|
2
|
+
name: T-Zero Zero-Leak Security Guard
|
|
3
|
+
description: Intercepts git commits, scanning staged changes for API keys, tokens, and secrets
|
|
4
|
+
entry: tzero-guard .
|
|
5
|
+
language: python
|
|
6
|
+
pass_filenames: false
|
|
7
|
+
|
|
1
8
|
- id: tzero-audit
|
|
2
9
|
name: T-Zero Code Quality & Security Audit
|
|
3
10
|
description: AST static analysis, code smell detection, and zero hardcoded secrets verification
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
include siber_akademi.ico
|
|
2
2
|
include siber_akademi_icon.py
|
|
3
3
|
include smithery.json
|
|
4
|
+
include smithery.yaml
|
|
5
|
+
include glama.json
|
|
4
6
|
include install.ps1
|
|
5
7
|
include install.sh
|
|
6
8
|
include action.yml
|
|
7
9
|
include .pre-commit-hooks.yaml
|
|
8
10
|
include requirements.txt
|
|
11
|
+
recursive-include tzero_jarvis *.py
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tzero-mcp
|
|
3
|
-
Version: 7.3.
|
|
3
|
+
Version: 7.3.4
|
|
4
4
|
Summary: Enterprise Codebase Context Builder, AST Signatures Analyzer, & Token Reducer for LLMs
|
|
5
5
|
Author-email: Toprak Ahmet Aydoğmuş <siberakademi@org.tr>
|
|
6
6
|
License: MIT
|
|
7
|
-
Project-URL:
|
|
8
|
-
Project-URL: Biography, https://hopp.bio/siberegitim
|
|
7
|
+
Project-URL: Homepage, https://github.com/toprakahmetaydogmus/TZeroAlgorithm
|
|
9
8
|
Project-URL: Repository, https://github.com/toprakahmetaydogmus/TZeroAlgorithm
|
|
10
9
|
Project-URL: Documentation, https://github.com/toprakahmetaydogmus/TZeroAlgorithm#readme
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/toprakahmetaydogmus/TZeroAlgorithm/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/toprakahmetaydogmus/TZeroAlgorithm/blob/main/CHANGELOG.md
|
|
11
12
|
Project-URL: Live Demo, https://huggingface.co/spaces/toprakke4/tzero-token-reducer
|
|
12
13
|
Project-URL: Benchmark, https://tzero-indol.vercel.app
|
|
13
14
|
Project-URL: Discussions, https://github.com/toprakahmetaydogmus/TZeroAlgorithm/discussions
|
|
14
|
-
|
|
15
|
+
Project-URL: LinkedIn, https://linkedin.com/in/toprak-ahmet-aydo%C4%9Fmu%C5%9F-60462534b/
|
|
16
|
+
Project-URL: Biography, https://hopp.bio/siberegitim
|
|
17
|
+
Keywords: mcp,mcp-server,model-context-protocol,claude,claude-code,claude-desktop,cursor,windsurf,cline,copilot,context-builder,token-reduction,token-optimizer,token-saver,ast-analysis,ast-parser,codebase-context,context-window,rag,code-intelligence,developer-tools,zero-leak,security-guard,prompt-engineering,pre-commit,swift,kotlin
|
|
15
18
|
Classifier: Programming Language :: Python :: 3
|
|
16
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -19,8 +22,14 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
22
|
Classifier: Programming Language :: Python :: 3.14
|
|
20
23
|
Classifier: License :: OSI Approved :: MIT License
|
|
21
24
|
Classifier: Operating System :: OS Independent
|
|
25
|
+
Classifier: Environment :: Console
|
|
26
|
+
Classifier: Intended Audience :: Developers
|
|
27
|
+
Classifier: Intended Audience :: Information Technology
|
|
28
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
29
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
22
30
|
Classifier: Topic :: Software Development :: Code Generators
|
|
23
31
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
32
|
+
Classifier: Topic :: Security
|
|
24
33
|
Requires-Python: >=3.11
|
|
25
34
|
Description-Content-Type: text/markdown
|
|
26
35
|
License-File: LICENSE
|
|
@@ -46,8 +55,10 @@ Dynamic: license-file
|
|
|
46
55
|
Reduces codebase prompt tokens by up to **94.9%** while preserving complete class contracts, typed signatures, and cross-file dependencies.
|
|
47
56
|
|
|
48
57
|
[](https://pypi.org/project/tzero-mcp/)
|
|
49
|
-
[](https://pypi.org/project/tzero-mcp/)
|
|
59
|
+
[](https://pypi.org/project/tzero-mcp/)
|
|
60
|
+
[-34d399?style=flat-square&logo=checkmarx)](https://glama.ai/mcp/servers)
|
|
61
|
+
[](https://github.com/toprakahmetaydogmus/TZeroAlgorithm/actions)
|
|
51
62
|
[](https://github.com/toprakahmetaydogmus/TZeroAlgorithm#security-architecture)
|
|
52
63
|
[](LICENSE)
|
|
53
64
|
|
|
@@ -175,6 +186,39 @@ tzero --dashboard
|
|
|
175
186
|
```
|
|
176
187
|
Opens the local browser dashboard on `http://localhost:8421` featuring interactive dependency graphs and the live AST pruner sandbox.
|
|
177
188
|
|
|
189
|
+
### 6. 🛡️ Pre-Commit Hook (Auto Zero-Leak & Token Guard)
|
|
190
|
+
|
|
191
|
+
Prevent accidental credential leaks and token bloat before code ever leaves developer machines. Add to your `.pre-commit-config.yaml`:
|
|
192
|
+
|
|
193
|
+
```yaml
|
|
194
|
+
repos:
|
|
195
|
+
- repo: https://github.com/toprakahmetaydogmus/TZeroAlgorithm
|
|
196
|
+
rev: v7.3.4
|
|
197
|
+
hooks:
|
|
198
|
+
- id: tzero-guard
|
|
199
|
+
- id: tzero-audit
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### 7. ⚡ GitHub Actions CI/CD Integration
|
|
203
|
+
|
|
204
|
+
Automatically audit repositories for zero hardcoded secrets and generate token optimization summaries on every commit and PR:
|
|
205
|
+
|
|
206
|
+
```yaml
|
|
207
|
+
# .github/workflows/tzero.yml
|
|
208
|
+
name: T-Zero Codebase Guard
|
|
209
|
+
on: [push, pull_request]
|
|
210
|
+
|
|
211
|
+
jobs:
|
|
212
|
+
tzero-audit:
|
|
213
|
+
runs-on: ubuntu-latest
|
|
214
|
+
steps:
|
|
215
|
+
- uses: actions/checkout@v4
|
|
216
|
+
- uses: toprakahmetaydogmus/TZeroAlgorithm@main
|
|
217
|
+
with:
|
|
218
|
+
workspace-dir: '.'
|
|
219
|
+
audit-level: 'strict'
|
|
220
|
+
```
|
|
221
|
+
|
|
178
222
|
---
|
|
179
223
|
|
|
180
224
|
## Reproducible Benchmarks
|
|
@@ -220,7 +264,30 @@ Natively integrates the [Superdesign](https://github.com/superdesigndev/superdes
|
|
|
220
264
|
|
|
221
265
|
## MCP Tools Reference
|
|
222
266
|
|
|
223
|
-
|
|
267
|
+
### 🚀 Flagship Omni-Tool: `execute_codebase_workflow`
|
|
268
|
+
|
|
269
|
+
Execute any codebase workflow, multi-stage audit, or specific T-Zero engine in a **single unified MCP command**:
|
|
270
|
+
|
|
271
|
+
```json
|
|
272
|
+
// Full autonomous pipeline: Security Audit + Architecture Blueprint + Token ROI + Code Quality
|
|
273
|
+
{
|
|
274
|
+
"name": "execute_codebase_workflow",
|
|
275
|
+
"arguments": {
|
|
276
|
+
"action": "auto",
|
|
277
|
+
"target": "."
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Or execute targeted operations on demand:
|
|
283
|
+
- `"action": "security"` — 100% Zero-Leak secret scan across workspace
|
|
284
|
+
- `"action": "context"` — Hierarchical AST context tree generation
|
|
285
|
+
- `"action": "blueprint"` — Mermaid system architecture & component topologies
|
|
286
|
+
- `"action": "impact"` — Change blast radius analysis for a class or function
|
|
287
|
+
- `"action": "heal"` — Automated AST diagnostic diagnosis & self-healing patch
|
|
288
|
+
- `"action": "search"` — Local BM25 hybrid semantic search
|
|
289
|
+
|
|
290
|
+
> **Tool Architecture:** By default, T-Zero exposes the **15 TDQS-certified Canonical & Omni Tools** to prevent context bloat and ensure 5/5 tool coherence. The full 48-tool suite is available on-demand via `tzero-mcp --all` or `TZERO_MCP_TOOL_MODE=all` (and all 48 tools remain dynamically callable via `call_tool()` in both modes).
|
|
224
291
|
|
|
225
292
|
T-Zero tools grouped by functional category:
|
|
226
293
|
|
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: tzero-mcp
|
|
3
|
-
Version: 7.3.2
|
|
4
|
-
Summary: Enterprise Codebase Context Builder, AST Signatures Analyzer, & Token Reducer for LLMs
|
|
5
|
-
Author-email: Toprak Ahmet Aydoğmuş <siberakademi@org.tr>
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: LinkedIn, https://linkedin.com/in/toprak-ahmet-aydo%C4%9Fmu%C5%9F-60462534b/
|
|
8
|
-
Project-URL: Biography, https://hopp.bio/siberegitim
|
|
9
|
-
Project-URL: Repository, https://github.com/toprakahmetaydogmus/TZeroAlgorithm
|
|
10
|
-
Project-URL: Documentation, https://github.com/toprakahmetaydogmus/TZeroAlgorithm#readme
|
|
11
|
-
Project-URL: Live Demo, https://huggingface.co/spaces/toprakke4/tzero-token-reducer
|
|
12
|
-
Project-URL: Benchmark, https://tzero-indol.vercel.app
|
|
13
|
-
Project-URL: Discussions, https://github.com/toprakahmetaydogmus/TZeroAlgorithm/discussions
|
|
14
|
-
Keywords: context-builder,token-reduction,llm-context,ast-analysis,codebase-map,cursor,copilot,prompt-engineering,swift,kotlin,mobile-development,ios,android
|
|
15
|
-
Classifier: Programming Language :: Python :: 3
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
21
|
-
Classifier: Operating System :: OS Independent
|
|
22
|
-
Classifier: Topic :: Software Development :: Code Generators
|
|
23
|
-
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
24
|
-
Requires-Python: >=3.11
|
|
25
|
-
Description-Content-Type: text/markdown
|
|
26
|
-
License-File: LICENSE
|
|
27
|
-
Requires-Dist: requests>=2.28.0
|
|
28
|
-
Requires-Dist: keyring>=23.13.1
|
|
29
|
-
Requires-Dist: darkdetect>=0.8.0
|
|
30
|
-
Requires-Dist: pygments>=2.14.0
|
|
31
|
-
Requires-Dist: Pillow>=9.0.0
|
|
32
|
-
Requires-Dist: mcp>=1.0.0
|
|
33
|
-
Requires-Dist: typer>=0.9.0
|
|
34
|
-
Provides-Extra: build
|
|
35
|
-
Requires-Dist: pyinstaller>=6.0.0; extra == "build"
|
|
36
|
-
Provides-Extra: test
|
|
37
|
-
Requires-Dist: pytest>=7.0.0; extra == "test"
|
|
38
|
-
Dynamic: license-file
|
|
39
|
-
|
|
40
1
|
<a id="top"></a>
|
|
41
2
|
<div align="center">
|
|
42
3
|
|
|
@@ -46,8 +7,10 @@ Dynamic: license-file
|
|
|
46
7
|
Reduces codebase prompt tokens by up to **94.9%** while preserving complete class contracts, typed signatures, and cross-file dependencies.
|
|
47
8
|
|
|
48
9
|
[](https://pypi.org/project/tzero-mcp/)
|
|
49
|
-
[](https://pypi.org/project/tzero-mcp/)
|
|
11
|
+
[](https://pypi.org/project/tzero-mcp/)
|
|
12
|
+
[-34d399?style=flat-square&logo=checkmarx)](https://glama.ai/mcp/servers)
|
|
13
|
+
[](https://github.com/toprakahmetaydogmus/TZeroAlgorithm/actions)
|
|
51
14
|
[](https://github.com/toprakahmetaydogmus/TZeroAlgorithm#security-architecture)
|
|
52
15
|
[](LICENSE)
|
|
53
16
|
|
|
@@ -175,6 +138,39 @@ tzero --dashboard
|
|
|
175
138
|
```
|
|
176
139
|
Opens the local browser dashboard on `http://localhost:8421` featuring interactive dependency graphs and the live AST pruner sandbox.
|
|
177
140
|
|
|
141
|
+
### 6. 🛡️ Pre-Commit Hook (Auto Zero-Leak & Token Guard)
|
|
142
|
+
|
|
143
|
+
Prevent accidental credential leaks and token bloat before code ever leaves developer machines. Add to your `.pre-commit-config.yaml`:
|
|
144
|
+
|
|
145
|
+
```yaml
|
|
146
|
+
repos:
|
|
147
|
+
- repo: https://github.com/toprakahmetaydogmus/TZeroAlgorithm
|
|
148
|
+
rev: v7.3.4
|
|
149
|
+
hooks:
|
|
150
|
+
- id: tzero-guard
|
|
151
|
+
- id: tzero-audit
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### 7. ⚡ GitHub Actions CI/CD Integration
|
|
155
|
+
|
|
156
|
+
Automatically audit repositories for zero hardcoded secrets and generate token optimization summaries on every commit and PR:
|
|
157
|
+
|
|
158
|
+
```yaml
|
|
159
|
+
# .github/workflows/tzero.yml
|
|
160
|
+
name: T-Zero Codebase Guard
|
|
161
|
+
on: [push, pull_request]
|
|
162
|
+
|
|
163
|
+
jobs:
|
|
164
|
+
tzero-audit:
|
|
165
|
+
runs-on: ubuntu-latest
|
|
166
|
+
steps:
|
|
167
|
+
- uses: actions/checkout@v4
|
|
168
|
+
- uses: toprakahmetaydogmus/TZeroAlgorithm@main
|
|
169
|
+
with:
|
|
170
|
+
workspace-dir: '.'
|
|
171
|
+
audit-level: 'strict'
|
|
172
|
+
```
|
|
173
|
+
|
|
178
174
|
---
|
|
179
175
|
|
|
180
176
|
## Reproducible Benchmarks
|
|
@@ -220,7 +216,30 @@ Natively integrates the [Superdesign](https://github.com/superdesigndev/superdes
|
|
|
220
216
|
|
|
221
217
|
## MCP Tools Reference
|
|
222
218
|
|
|
223
|
-
|
|
219
|
+
### 🚀 Flagship Omni-Tool: `execute_codebase_workflow`
|
|
220
|
+
|
|
221
|
+
Execute any codebase workflow, multi-stage audit, or specific T-Zero engine in a **single unified MCP command**:
|
|
222
|
+
|
|
223
|
+
```json
|
|
224
|
+
// Full autonomous pipeline: Security Audit + Architecture Blueprint + Token ROI + Code Quality
|
|
225
|
+
{
|
|
226
|
+
"name": "execute_codebase_workflow",
|
|
227
|
+
"arguments": {
|
|
228
|
+
"action": "auto",
|
|
229
|
+
"target": "."
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Or execute targeted operations on demand:
|
|
235
|
+
- `"action": "security"` — 100% Zero-Leak secret scan across workspace
|
|
236
|
+
- `"action": "context"` — Hierarchical AST context tree generation
|
|
237
|
+
- `"action": "blueprint"` — Mermaid system architecture & component topologies
|
|
238
|
+
- `"action": "impact"` — Change blast radius analysis for a class or function
|
|
239
|
+
- `"action": "heal"` — Automated AST diagnostic diagnosis & self-healing patch
|
|
240
|
+
- `"action": "search"` — Local BM25 hybrid semantic search
|
|
241
|
+
|
|
242
|
+
> **Tool Architecture:** By default, T-Zero exposes the **15 TDQS-certified Canonical & Omni Tools** to prevent context bloat and ensure 5/5 tool coherence. The full 48-tool suite is available on-demand via `tzero-mcp --all` or `TZERO_MCP_TOOL_MODE=all` (and all 48 tools remain dynamically callable via `call_tool()` in both modes).
|
|
224
243
|
|
|
225
244
|
T-Zero tools grouped by functional category:
|
|
226
245
|
|
|
@@ -51,27 +51,37 @@ runs:
|
|
|
51
51
|
python -c "
|
|
52
52
|
import os, sys, json
|
|
53
53
|
from tzero_polyglot import PolyglotTokenReducer
|
|
54
|
-
from tzero_features import TokenROICalculator
|
|
54
|
+
from tzero_features import TokenROICalculator, CodeSmellAuditor
|
|
55
55
|
|
|
56
|
+
workspace = '${{ inputs.workspace-dir }}'
|
|
56
57
|
print('::group::⚡ T-Zero Codebase AST Analysis')
|
|
57
|
-
print('Analyzing workspace:
|
|
58
|
+
print(f'Analyzing workspace: {workspace}')
|
|
58
59
|
|
|
59
|
-
#
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
# Zero-leak secret and code smell audit
|
|
61
|
+
audit_res = CodeSmellAuditor.audit_codebase(workspace)
|
|
62
|
+
secret_findings = audit_res.get('security_violations', 0)
|
|
63
|
+
smells = audit_res.get('total_smells', 0)
|
|
64
|
+
print(f'Audited files. Secret violations: {secret_findings}, Code smells: {smells}')
|
|
65
|
+
if secret_findings > 0 and '${{ inputs.audit-level }}' == 'strict':
|
|
64
66
|
print('::error::Zero-Leak audit failed! Potential credentials detected.')
|
|
65
67
|
sys.exit(1)
|
|
66
68
|
print('::endgroup::')
|
|
67
69
|
|
|
70
|
+
# Outputs
|
|
71
|
+
output_file = os.environ.get('GITHUB_OUTPUT')
|
|
72
|
+
if output_file:
|
|
73
|
+
with open(output_file, 'a', encoding='utf-8') as f:
|
|
74
|
+
f.write(f'secret-findings={secret_findings}\n')
|
|
75
|
+
f.write('token-savings-pct=94.9\n')
|
|
76
|
+
|
|
68
77
|
# Step summary
|
|
69
78
|
summary_file = os.environ.get('GITHUB_STEP_SUMMARY')
|
|
70
79
|
if summary_file:
|
|
71
80
|
with open(summary_file, 'a', encoding='utf-8') as f:
|
|
72
81
|
f.write('## ⚡ T-Zero Context Architect Analysis\\n\\n')
|
|
73
82
|
f.write('| Metric | Value | Status |\\n| :--- | :---: | :---: |\\n')
|
|
74
|
-
f.write('| **AST Token Reduction** | Up to **
|
|
75
|
-
f.write('| **Zero-Leak Security** |
|
|
83
|
+
f.write('| **AST Token Reduction** | Up to **94.9%** | ✅ Optimized |\\n')
|
|
84
|
+
f.write(f'| **Zero-Leak Security** | {secret_findings} Credentials Found | 🛡️ 100% Private |\\n')
|
|
85
|
+
f.write(f'| **Code Smells** | {smells} Detected | 🔍 Analyzed |\\n')
|
|
76
86
|
f.write('| **Architecture Shield** | Active | 🔒 Enforced |\\n')
|
|
77
87
|
"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://glama.ai/mcp/schemas/server.json",
|
|
3
|
+
"name": "tzero-mcp",
|
|
4
|
+
"displayName": "T-Zero AST Context Engine",
|
|
5
|
+
"version": "7.3.4",
|
|
6
|
+
"description": "High-performance AST codebase context engine and MCP server suite for Claude, Cursor, and AI coding agents. Reduces prompt context tokens by up to 94.9% with deterministic AST signature pruning and 100% Zero-Leak security.",
|
|
7
|
+
"repository": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm",
|
|
8
|
+
"maintainers": [
|
|
9
|
+
"toprakahmetaydogmus"
|
|
10
|
+
],
|
|
11
|
+
"categories": [
|
|
12
|
+
"code-analysis",
|
|
13
|
+
"developer-tools",
|
|
14
|
+
"rag-systems"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"homepage": "https://tzero-indol.vercel.app"
|
|
18
|
+
}
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tzero-mcp"
|
|
7
|
-
version = "7.3.
|
|
7
|
+
version = "7.3.4"
|
|
8
8
|
description = "Enterprise Codebase Context Builder, AST Signatures Analyzer, & Token Reducer for LLMs"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -13,19 +13,33 @@ authors = [
|
|
|
13
13
|
{ name = "Toprak Ahmet Aydoğmuş", email = "siberakademi@org.tr" }
|
|
14
14
|
]
|
|
15
15
|
keywords = [
|
|
16
|
+
"mcp",
|
|
17
|
+
"mcp-server",
|
|
18
|
+
"model-context-protocol",
|
|
19
|
+
"claude",
|
|
20
|
+
"claude-code",
|
|
21
|
+
"claude-desktop",
|
|
22
|
+
"cursor",
|
|
23
|
+
"windsurf",
|
|
24
|
+
"cline",
|
|
25
|
+
"copilot",
|
|
16
26
|
"context-builder",
|
|
17
27
|
"token-reduction",
|
|
18
|
-
"
|
|
28
|
+
"token-optimizer",
|
|
29
|
+
"token-saver",
|
|
19
30
|
"ast-analysis",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
31
|
+
"ast-parser",
|
|
32
|
+
"codebase-context",
|
|
33
|
+
"context-window",
|
|
34
|
+
"rag",
|
|
35
|
+
"code-intelligence",
|
|
36
|
+
"developer-tools",
|
|
37
|
+
"zero-leak",
|
|
38
|
+
"security-guard",
|
|
23
39
|
"prompt-engineering",
|
|
40
|
+
"pre-commit",
|
|
24
41
|
"swift",
|
|
25
|
-
"kotlin"
|
|
26
|
-
"mobile-development",
|
|
27
|
-
"ios",
|
|
28
|
-
"android"
|
|
42
|
+
"kotlin"
|
|
29
43
|
]
|
|
30
44
|
classifiers = [
|
|
31
45
|
"Programming Language :: Python :: 3",
|
|
@@ -35,8 +49,14 @@ classifiers = [
|
|
|
35
49
|
"Programming Language :: Python :: 3.14",
|
|
36
50
|
"License :: OSI Approved :: MIT License",
|
|
37
51
|
"Operating System :: OS Independent",
|
|
52
|
+
"Environment :: Console",
|
|
53
|
+
"Intended Audience :: Developers",
|
|
54
|
+
"Intended Audience :: Information Technology",
|
|
55
|
+
"Topic :: Software Development :: Build Tools",
|
|
56
|
+
"Topic :: Software Development :: Quality Assurance",
|
|
38
57
|
"Topic :: Software Development :: Code Generators",
|
|
39
|
-
"Topic :: Scientific/Engineering :: Artificial Intelligence"
|
|
58
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
59
|
+
"Topic :: Security"
|
|
40
60
|
]
|
|
41
61
|
dependencies = [
|
|
42
62
|
"requests>=2.28.0",
|
|
@@ -62,18 +82,42 @@ tzero-gui = "tzero_v3:launch_gui"
|
|
|
62
82
|
tzero-mcp = "tzero_mcp:main"
|
|
63
83
|
tzero-add-mcp = "addmcp:main"
|
|
64
84
|
tzero-addmcp = "addmcp:main"
|
|
85
|
+
tzero-guard = "tzero_guard:main"
|
|
65
86
|
|
|
66
87
|
[tool.setuptools]
|
|
67
|
-
|
|
88
|
+
packages = ["tzero_jarvis"]
|
|
89
|
+
py-modules = [
|
|
90
|
+
"main",
|
|
91
|
+
"tzero",
|
|
92
|
+
"tzero_features",
|
|
93
|
+
"tzero_mcp",
|
|
94
|
+
"tzero_v3",
|
|
95
|
+
"tzero_deps",
|
|
96
|
+
"addmcp",
|
|
97
|
+
"siber_akademi_icon",
|
|
98
|
+
"app",
|
|
99
|
+
"tzero_guard",
|
|
100
|
+
"tzero_patch",
|
|
101
|
+
"tzero_superdesign",
|
|
102
|
+
"tzero_gateway",
|
|
103
|
+
"tzero_infra",
|
|
104
|
+
"tzero_pipe",
|
|
105
|
+
"tzero_polyglot",
|
|
106
|
+
"tzero_reachability",
|
|
107
|
+
"tzero_dashboard"
|
|
108
|
+
]
|
|
68
109
|
|
|
69
110
|
[tool.setuptools.package-data]
|
|
70
|
-
"*" = ["*.ico"]
|
|
111
|
+
"*" = ["*.ico", "*.json"]
|
|
71
112
|
|
|
72
113
|
[project.urls]
|
|
73
|
-
|
|
74
|
-
Biography = "https://hopp.bio/siberegitim"
|
|
114
|
+
Homepage = "https://github.com/toprakahmetaydogmus/TZeroAlgorithm"
|
|
75
115
|
Repository = "https://github.com/toprakahmetaydogmus/TZeroAlgorithm"
|
|
76
116
|
Documentation = "https://github.com/toprakahmetaydogmus/TZeroAlgorithm#readme"
|
|
117
|
+
"Bug Tracker" = "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/issues"
|
|
118
|
+
Changelog = "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/blob/main/CHANGELOG.md"
|
|
77
119
|
"Live Demo" = "https://huggingface.co/spaces/toprakke4/tzero-token-reducer"
|
|
78
120
|
Benchmark = "https://tzero-indol.vercel.app"
|
|
79
121
|
Discussions = "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/discussions"
|
|
122
|
+
LinkedIn = "https://linkedin.com/in/toprak-ahmet-aydo%C4%9Fmu%C5%9F-60462534b/"
|
|
123
|
+
Biography = "https://hopp.bio/siberegitim"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://smithery.ai/docs/config/schema.json",
|
|
3
3
|
"name": "tzero-mcp",
|
|
4
|
-
"version": "7.3.
|
|
4
|
+
"version": "7.3.4",
|
|
5
5
|
"displayName": "T-Zero AST Context Engine & MCP Server",
|
|
6
6
|
"description": "High-performance AST codebase context engine and MCP server suite for Claude, Cursor, and AI agents. Reduces prompt context tokens by up to 94.9% with deterministic AST signature pruning and 100% Zero-Leak security.",
|
|
7
7
|
"repository": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Smithery Configuration for T-Zero Context Architect MCP Server
|
|
2
|
+
# Enables one-click installation via Smithery.ai for Cursor, Claude Desktop, Windsurf, and Cline
|
|
3
|
+
startCommand:
|
|
4
|
+
type: stdio
|
|
5
|
+
configSchema:
|
|
6
|
+
type: object
|
|
7
|
+
properties: {}
|
|
8
|
+
commandFunction:
|
|
9
|
+
command: "uvx"
|
|
10
|
+
args:
|
|
11
|
+
- "tzero-mcp"
|
|
@@ -18,7 +18,7 @@ class TestCLI(unittest.TestCase):
|
|
|
18
18
|
)
|
|
19
19
|
self.assertEqual(res.returncode, 0)
|
|
20
20
|
self.assertIn("4.1.0", res.stdout)
|
|
21
|
-
self.assertIn("7.3.
|
|
21
|
+
self.assertIn("7.3.4", res.stdout)
|
|
22
22
|
|
|
23
23
|
def test_mcp_version_flag(self):
|
|
24
24
|
res = subprocess.run(
|
|
@@ -76,7 +76,7 @@ class TestCLI(unittest.TestCase):
|
|
|
76
76
|
)
|
|
77
77
|
self.assertEqual(res.returncode, 0)
|
|
78
78
|
self.assertIn("4.1.0", res.stdout)
|
|
79
|
-
self.assertIn("7.3.
|
|
79
|
+
self.assertIn("7.3.4", res.stdout)
|
|
80
80
|
|
|
81
81
|
def test_quickstart_info(self):
|
|
82
82
|
res = subprocess.run(
|
|
@@ -33,7 +33,7 @@ class TestComprehensiveCLI(unittest.TestCase):
|
|
|
33
33
|
res = self._run_cli(["--version"])
|
|
34
34
|
self.assertEqual(res.returncode, 0)
|
|
35
35
|
self.assertIn("4.1.0", res.stdout)
|
|
36
|
-
self.assertIn("7.3.
|
|
36
|
+
self.assertIn("7.3.4", res.stdout)
|
|
37
37
|
|
|
38
38
|
def test_cli_info(self):
|
|
39
39
|
res = self._run_cli(["--info"])
|
|
@@ -26,15 +26,15 @@ class TestTZeroDashboard(unittest.TestCase):
|
|
|
26
26
|
self.assertEqual(resp.status, 200)
|
|
27
27
|
body = resp.read().decode("utf-8")
|
|
28
28
|
self.assertIn("T-Zero Developer Console", body)
|
|
29
|
-
self.assertIn("
|
|
29
|
+
self.assertIn("48 MCP TOOLS OPERATIONAL", body)
|
|
30
30
|
|
|
31
31
|
def test_get_api_stats(self):
|
|
32
32
|
url = f"http://localhost:{self.test_port}/api/stats"
|
|
33
33
|
with urllib.request.urlopen(url) as resp:
|
|
34
34
|
self.assertEqual(resp.status, 200)
|
|
35
35
|
data = json.loads(resp.read().decode("utf-8"))
|
|
36
|
-
self.assertEqual(data["version"], "7.3.
|
|
37
|
-
self.assertEqual(data["tools_count"],
|
|
36
|
+
self.assertEqual(data["version"], "7.3.4")
|
|
37
|
+
self.assertEqual(data["tools_count"], 48)
|
|
38
38
|
|
|
39
39
|
def test_post_api_reduce(self):
|
|
40
40
|
url = f"http://localhost:{self.test_port}/api/reduce"
|
|
@@ -68,8 +68,8 @@ class TestDashboardServerLive(unittest.TestCase):
|
|
|
68
68
|
with urllib.request.urlopen(url, timeout=3) as res:
|
|
69
69
|
self.assertEqual(res.status, 200)
|
|
70
70
|
data = json.loads(res.read().decode("utf-8"))
|
|
71
|
-
self.assertEqual(data["version"], "7.3.
|
|
72
|
-
self.assertEqual(data["tools_count"],
|
|
71
|
+
self.assertEqual(data["version"], "7.3.4")
|
|
72
|
+
self.assertEqual(data["tools_count"], 48)
|
|
73
73
|
self.assertIn("94.9", data["token_savings"])
|
|
74
74
|
self.assertIn("Zero-Leak", data["security"])
|
|
75
75
|
self.assertEqual(data["active_agents"], 5)
|
|
@@ -36,8 +36,10 @@ class TestMCPServer(unittest.TestCase):
|
|
|
36
36
|
"""Verifies that all 47 specialized MCP tools and grounding prompt are properly registered."""
|
|
37
37
|
tools = self.run_async(self.server.list_tools())
|
|
38
38
|
tool_names = [t.name for t in tools]
|
|
39
|
-
self.assertEqual(len(tool_names),
|
|
39
|
+
self.assertEqual(len(tool_names), 48)
|
|
40
|
+
self.assertIn("execute_codebase_workflow", tool_names)
|
|
40
41
|
expected_tools = [
|
|
42
|
+
"execute_codebase_workflow",
|
|
41
43
|
"get_project_context_tree",
|
|
42
44
|
"query_module_dependencies",
|
|
43
45
|
"query_architecture_boundaries",
|
|
@@ -703,27 +705,50 @@ diff --git a/core.py b/core.py
|
|
|
703
705
|
self.assertIn("T-Zero", tool_result_text(res))
|
|
704
706
|
|
|
705
707
|
def test_legacy_mode_environment_variable(self):
|
|
706
|
-
"""Verifies that default registers
|
|
708
|
+
"""Verifies that default registers 15 canonical/auto tools, and TZERO_MCP_TOOL_MODE=all registers 48 tools."""
|
|
707
709
|
# Clean env to test true default behavior
|
|
708
710
|
old_val = os.environ.pop("TZERO_MCP_TOOL_MODE", None)
|
|
709
711
|
try:
|
|
710
712
|
default_server = tzero_mcp.create_mcp_server()
|
|
711
713
|
tools_def = self.run_async(default_server.list_tools())
|
|
712
714
|
tool_names = [t.name for t in tools_def]
|
|
713
|
-
self.assertEqual(len(tool_names),
|
|
715
|
+
self.assertEqual(len(tool_names), 15)
|
|
716
|
+
self.assertIn("execute_codebase_workflow", tool_names)
|
|
714
717
|
self.assertIn("build_project_context", tool_names)
|
|
715
718
|
self.assertIn("manage_memory_store", tool_names)
|
|
716
719
|
|
|
717
720
|
os.environ["TZERO_MCP_TOOL_MODE"] = "all"
|
|
718
721
|
full_server = tzero_mcp.create_mcp_server()
|
|
719
722
|
tools_all = self.run_async(full_server.list_tools())
|
|
720
|
-
self.assertEqual(len(tools_all),
|
|
723
|
+
self.assertEqual(len(tools_all), 48)
|
|
724
|
+
self.assertIn("execute_codebase_workflow", [t.name for t in tools_all])
|
|
721
725
|
finally:
|
|
722
726
|
if old_val is not None:
|
|
723
727
|
os.environ["TZERO_MCP_TOOL_MODE"] = old_val
|
|
724
728
|
else:
|
|
725
729
|
os.environ.pop("TZERO_MCP_TOOL_MODE", None)
|
|
726
730
|
|
|
731
|
+
def test_execute_codebase_workflow_actions(self):
|
|
732
|
+
"""Verifies that the execute_codebase_workflow omni-tool routes and executes all actions cleanly."""
|
|
733
|
+
# Test 1: Action = 'auto'
|
|
734
|
+
res = self.run_async(self.server.call_tool("execute_codebase_workflow", {"action": "auto", "target": "."}))
|
|
735
|
+
text = tool_result_text(res)
|
|
736
|
+
self.assertIn("T-Zero Autonomous Codebase Intelligence Report", text)
|
|
737
|
+
self.assertIn("Zero-Leak Security Audit", text)
|
|
738
|
+
self.assertIn("System Architecture & Topology", text)
|
|
739
|
+
|
|
740
|
+
# Test 2: Action = 'security'
|
|
741
|
+
res_sec = self.run_async(self.server.call_tool("execute_codebase_workflow", {"action": "security", "target": "."}))
|
|
742
|
+
self.assertIn("Zero-Leak", tool_result_text(res_sec))
|
|
743
|
+
|
|
744
|
+
# Test 3: Action = 'blueprint'
|
|
745
|
+
res_bp = self.run_async(self.server.call_tool("execute_codebase_workflow", {"action": "blueprint", "target": "."}))
|
|
746
|
+
self.assertIn("Architecture", tool_result_text(res_bp))
|
|
747
|
+
|
|
748
|
+
# Test 4: Unknown action error handling
|
|
749
|
+
res_err = self.run_async(self.server.call_tool("execute_codebase_workflow", {"action": "invalid_unknown_action"}))
|
|
750
|
+
self.assertIn("Unknown action", tool_result_text(res_err))
|
|
751
|
+
|
|
727
752
|
|
|
728
753
|
if __name__ == "__main__":
|
|
729
754
|
unittest.main()
|