tzero-mcp 0.0.0-stage → 10.7.1

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.
Files changed (98) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +55 -2
  3. package/bin/tzero-mcp.js +61 -0
  4. package/bin/tzero.js +62 -0
  5. package/index.js +16 -0
  6. package/package.json +42 -4
  7. package/src/addmcp.py +1194 -0
  8. package/src/main.py +60 -0
  9. package/src/siber_akademi_icon.py +77 -0
  10. package/src/tzero/jarvis/semantic_compressor.py +373 -0
  11. package/src/tzero.py +58 -0
  12. package/src/tzero_benchmark.py +475 -0
  13. package/src/tzero_bridge.py +362 -0
  14. package/src/tzero_ci.py +153 -0
  15. package/src/tzero_commit.py +192 -0
  16. package/src/tzero_cost.py +163 -0
  17. package/src/tzero_dashboard.py +1448 -0
  18. package/src/tzero_deps.py +287 -0
  19. package/src/tzero_drift.py +208 -0
  20. package/src/tzero_explain.py +240 -0
  21. package/src/tzero_features.py +3022 -0
  22. package/src/tzero_fix.py +228 -0
  23. package/src/tzero_fixer/__init__.py +63 -0
  24. package/src/tzero_fixer/amalgamation.py +334 -0
  25. package/src/tzero_fixer/ast_syntax_healer.py +464 -0
  26. package/src/tzero_fixer/ast_type_modernizer.py +288 -0
  27. package/src/tzero_fixer/async_io_modernizer.py +127 -0
  28. package/src/tzero_fixer/automated_regression_suite.py +600 -0
  29. package/src/tzero_fixer/benchmarks_and_diagnostics.py +174 -0
  30. package/src/tzero_fixer/ci_cd_self_healing_gate.py +246 -0
  31. package/src/tzero_fixer/code_duplicity_and_refactorer.py +151 -0
  32. package/src/tzero_fixer/code_smells_healer.py +260 -0
  33. package/src/tzero_fixer/cwe_remediator.py +171 -0
  34. package/src/tzero_fixer/dead_code_eliminator.py +150 -0
  35. package/src/tzero_fixer/dependency_vulnerability_auditor.py +309 -0
  36. package/src/tzero_fixer/git_advanced_surgeon.py +280 -0
  37. package/src/tzero_fixer/hardware_and_disk_doctor.py +325 -0
  38. package/src/tzero_fixer/import_graph_healer.py +412 -0
  39. package/src/tzero_fixer/interactive_tui.py +91 -0
  40. package/src/tzero_fixer/knowledge_base.py +295 -0
  41. package/src/tzero_fixer/knowledge_base_extended.py +940 -0
  42. package/src/tzero_fixer/linters_and_static_analyzer.py +307 -0
  43. package/src/tzero_fixer/mcp_server.py +447 -0
  44. package/src/tzero_fixer/models.py +385 -0
  45. package/src/tzero_fixer/orchestrator.py +375 -0
  46. package/src/tzero_fixer/os_doctor.py +502 -0
  47. package/src/tzero_fixer/packaging_abi_surgeon.py +323 -0
  48. package/src/tzero_fixer/pc_fixer_doctor.py +599 -0
  49. package/src/tzero_fixer/performance_and_memory_profiler.py +274 -0
  50. package/src/tzero_fixer/polyglot_ast_parsers.py +313 -0
  51. package/src/tzero_fixer/polyglot_build_healer.py +364 -0
  52. package/src/tzero_fixer/polyglot_config_healer.py +318 -0
  53. package/src/tzero_fixer/polyglot_doctor.py +372 -0
  54. package/src/tzero_fixer/polyglot_linters.py +619 -0
  55. package/src/tzero_fixer/polyglot_schema_validator.py +305 -0
  56. package/src/tzero_fixer/security_cwe_database.py +444 -0
  57. package/src/tzero_fixer/security_deep_rules.py +114 -0
  58. package/src/tzero_fixer/security_rules_catalog.py +110 -0
  59. package/src/tzero_fixer/security_zero_leak.py +326 -0
  60. package/src/tzero_fixer/smart_patch_recommender.py +223 -0
  61. package/src/tzero_fixer/synthetic_workspace_generator.py +220 -0
  62. package/src/tzero_fixer/system_diagnostics_extended.py +493 -0
  63. package/src/tzero_fixer/system_repair_recipes.py +447 -0
  64. package/src/tzero_fixer/venv_doctor.py +309 -0
  65. package/src/tzero_gateway.py +885 -0
  66. package/src/tzero_guard.py +243 -0
  67. package/src/tzero_infra.py +274 -0
  68. package/src/tzero_jarvis/__init__.py +124 -0
  69. package/src/tzero_jarvis/causal_graph.py +310 -0
  70. package/src/tzero_jarvis/graph_visualizer.py +395 -0
  71. package/src/tzero_jarvis/hybrid_search.py +214 -0
  72. package/src/tzero_jarvis/latent_press.py +137 -0
  73. package/src/tzero_jarvis/memory_consolidation.py +212 -0
  74. package/src/tzero_jarvis/minhash_lsh.py +184 -0
  75. package/src/tzero_jarvis/orchestrator.py +335 -0
  76. package/src/tzero_jarvis/self_healing.py +308 -0
  77. package/src/tzero_jarvis/semantic_compressor.py +887 -0
  78. package/src/tzero_jarvis/swarm.py +261 -0
  79. package/src/tzero_jarvis/swarm_bft.py +144 -0
  80. package/src/tzero_jarvis/workspace_orchestrator.py +1167 -0
  81. package/src/tzero_jarvis/zero_key_router.py +173 -0
  82. package/src/tzero_mcp.py +4858 -0
  83. package/src/tzero_neural_cortex.py +1425 -0
  84. package/src/tzero_packer.py +370 -0
  85. package/src/tzero_patch.py +624 -0
  86. package/src/tzero_pc_fixer.py +12657 -0
  87. package/src/tzero_pipe.py +95 -0
  88. package/src/tzero_polyglot.py +422 -0
  89. package/src/tzero_reachability.py +272 -0
  90. package/src/tzero_replay.py +141 -0
  91. package/src/tzero_security.py +570 -0
  92. package/src/tzero_snapshot.py +258 -0
  93. package/src/tzero_stubs.py +313 -0
  94. package/src/tzero_superdesign.py +774 -0
  95. package/src/tzero_sync.py +241 -0
  96. package/src/tzero_task_benchmark.py +363 -0
  97. package/src/tzero_tui.py +244 -0
  98. package/src/tzero_v3.py +9435 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Toprak Ahmet Aydoğmuş
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,56 @@
1
- # Temporary Holding Version
1
+ # tzero-mcp
2
+
3
+ > **Deterministic AST Context Compressor, 95% Token Reducer & 20-Tool MCP Server for Cursor, Claude Desktop, Antigravity & Copilot.**
4
+
5
+ [![npm version](https://img.shields.io/npm/v/tzero-mcp.svg)](https://www.npmjs.com/package/tzero-mcp)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+ [![GitHub Stars](https://img.shields.io/github/stars/toprakahmetaydogmus/TZeroAlgorithm?style=social)](https://github.com/toprakahmetaydogmus/TZeroAlgorithm)
8
+
9
+ ---
10
+
11
+ ### ⭐ Built by a 15-Year-Old Solo Developer
12
+ Hi! I'm **Toprak Ahmet Aydoğmuş**, a 15-year-old developer from Siber Akademi. I created T-Zero to solve LLM token limits and eliminate AI coding hallucinations using deterministic AST analysis. If you find this package useful, **please star our repository on GitHub!**
13
+
14
+ 👉 **[https://github.com/toprakahmetaydogmus/TZeroAlgorithm](https://github.com/toprakahmetaydogmus/TZeroAlgorithm)**
15
+
16
+ ---
17
+
18
+ ## ⚡ Instant MCP Execution (No Install Needed)
19
+
20
+ Run directly via `npx` in your `claude_desktop_config.json` or Cursor MCP settings:
21
+
22
+ ```json
23
+ {
24
+ "mcpServers": {
25
+ "tzero": {
26
+ "command": "npx",
27
+ "args": ["-y", "tzero-mcp"]
28
+ }
29
+ }
30
+ }
31
+ ```
32
+
33
+ ## 🚀 CLI Installation
34
+
35
+ ```bash
36
+ # Global installation
37
+ npm install -g tzero-mcp
38
+
39
+ # Compress a directory into an AST Skeleton tree (95% token savings)
40
+ tzero --tree . --out tree.txt
41
+
42
+ # Launch MCP Server
43
+ tzero-mcp
44
+ ```
45
+
46
+ ## 🛠 Features
47
+
48
+ - **95% Token Reduction:** Compresses source code into AST skeletons with intact function signatures and docstrings.
49
+ - **Zero-Leak Security Guard:** Scans for hardcoded secrets before LLM context ingestion.
50
+ - **Reality-Lock Pre-Flight:** Prevents hallucinations by verifying imports and function calls against AST.
51
+ - **20 Native Tools:** Memory store, AST pagerank, call chain tracer, diff context, and more.
52
+
53
+ ## 📄 License
54
+
55
+ MIT © [Toprak Ahmet Aydoğmuş](https://github.com/toprakahmetaydogmus)
2
56
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * T-Zero Model Context Protocol (MCP) Server Launcher
5
+ * Author: Toprak Ahmet Aydoğmuş (15-Year-Old Solo Developer @ Siber Akademi)
6
+ * Repository: https://github.com/toprakahmetaydogmus/TZeroAlgorithm
7
+ */
8
+
9
+ const { spawn, execSync } = require("child_process");
10
+ const process = require("process");
11
+
12
+ // In MCP mode, banner is printed to stderr to keep stdout strictly for JSON-RPC
13
+ const banner = `\x1b[33m
14
+ ┌──────────────────────────────────────────────────────────────────────────────┐
15
+ │ ⭐ T-ZERO MCP SERVER v10.7.0 (Model Context Protocol) │
16
+ │ │
17
+ │ Hi! I'm Toprak Ahmet Aydoğmuş, a 15-year-old developer from Siber Akademi. │
18
+ │ If this tool helps you, please star: │
19
+ │ 👉 https://github.com/toprakahmetaydogmus/TZeroAlgorithm │
20
+ └──────────────────────────────────────────────────────────────────────────────┘
21
+ \x1b[0m`;
22
+
23
+ if (process.stderr.isTTY) {
24
+ process.stderr.write(banner + "\n");
25
+ }
26
+
27
+ function findPython() {
28
+ const candidates = ["python3", "python", "py"];
29
+ for (const cmd of candidates) {
30
+ try {
31
+ execSync(`${cmd} --version`, { stdio: "ignore" });
32
+ return cmd;
33
+ } catch (e) {
34
+ // continue
35
+ }
36
+ }
37
+ return null;
38
+ }
39
+
40
+ const path = require("path");
41
+ const py = findPython();
42
+ if (!py) {
43
+ console.error("\x1b[31m[ERROR] Python 3.10+ is required to run T-Zero MCP Server.\x1b[0m");
44
+ console.error("Please install Python from https://python.org or your package manager.");
45
+ process.exit(1);
46
+ }
47
+
48
+ const srcDir = path.resolve(__dirname, "..", "src");
49
+ const scriptPath = path.join(srcDir, "tzero_mcp.py");
50
+
51
+ const env = Object.assign({}, process.env, {
52
+ PYTHONPATH: srcDir + (process.env.PYTHONPATH ? path.delimiter + process.env.PYTHONPATH : "")
53
+ });
54
+
55
+ const args = [scriptPath, ...process.argv.slice(2)];
56
+ const child = spawn(py, args, { stdio: "inherit", env });
57
+
58
+ child.on("close", (code) => {
59
+ process.exit(code ?? 0);
60
+ });
61
+
package/bin/tzero.js ADDED
@@ -0,0 +1,62 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * T-Zero Context Architect CLI Launcher
5
+ * Author: Toprak Ahmet Aydoğmuş (15-Year-Old Solo Developer @ Siber Akademi)
6
+ * Repository: https://github.com/toprakahmetaydogmus/TZeroAlgorithm
7
+ */
8
+
9
+ const { spawn, execSync } = require("child_process");
10
+ const process = require("process");
11
+
12
+ const banner = `\x1b[33m
13
+ ┌──────────────────────────────────────────────────────────────────────────────┐
14
+ │ ⭐ T-ZERO CONTEXT ARCHITECT & MCP ENGINE v10.7.0 │
15
+ │ │
16
+ │ Hi! I'm Toprak Ahmet Aydoğmuş, a 15-year-old developer from Siber Akademi. │
17
+ │ I built T-Zero from scratch to eliminate token bloat and AI hallucinations. │
18
+ │ │
19
+ │ If this tool saves you tokens, please give us a ⭐ on GitHub: │
20
+ │ 👉 https://github.com/toprakahmetaydogmus/TZeroAlgorithm │
21
+ └──────────────────────────────────────────────────────────────────────────────┘
22
+ \x1b[0m`;
23
+
24
+ if (process.stdout.isTTY && !process.argv.includes("--json") && !process.argv.includes("--pipe")) {
25
+ console.log(banner);
26
+ }
27
+
28
+ function findPython() {
29
+ const candidates = ["python3", "python", "py"];
30
+ for (const cmd of candidates) {
31
+ try {
32
+ execSync(`${cmd} --version`, { stdio: "ignore" });
33
+ return cmd;
34
+ } catch (e) {
35
+ // continue
36
+ }
37
+ }
38
+ return null;
39
+ }
40
+
41
+ const path = require("path");
42
+ const py = findPython();
43
+ if (!py) {
44
+ console.error("\x1b[31m[ERROR] Python 3.10+ is required to run T-Zero.\x1b[0m");
45
+ console.error("Please install Python from https://python.org or your package manager.");
46
+ process.exit(1);
47
+ }
48
+
49
+ const srcDir = path.resolve(__dirname, "..", "src");
50
+ const scriptPath = path.join(srcDir, "tzero_v3.py");
51
+
52
+ const env = Object.assign({}, process.env, {
53
+ PYTHONPATH: srcDir + (process.env.PYTHONPATH ? path.delimiter + process.env.PYTHONPATH : "")
54
+ });
55
+
56
+ const args = [scriptPath, ...process.argv.slice(2)];
57
+ const child = spawn(py, args, { stdio: "inherit", env });
58
+
59
+ child.on("close", (code) => {
60
+ process.exit(code ?? 0);
61
+ });
62
+
package/index.js ADDED
@@ -0,0 +1,16 @@
1
+ const path = require("path");
2
+
3
+ /**
4
+ * T-Zero Context Architect & MCP Server
5
+ * https://github.com/toprakahmetaydogmus/TZeroAlgorithm
6
+ */
7
+
8
+ module.exports = {
9
+ version: "10.7.1",
10
+ author: "Toprak Ahmet Aydoğmuş (Siber Akademi)",
11
+ repository: "https://github.com/toprakahmetaydogmus/TZeroAlgorithm",
12
+ srcDir: path.resolve(__dirname, "src"),
13
+ mcpServer: path.resolve(__dirname, "src", "tzero_mcp.py"),
14
+ cli: path.resolve(__dirname, "src", "tzero_v3.py")
15
+ };
16
+
package/package.json CHANGED
@@ -1,6 +1,44 @@
1
1
  {
2
2
  "name": "tzero-mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "10.7.1",
4
+ "description": "Deterministic AST Context Compressor, 95% Token Reducer & 20-Tool MCP Server for Cursor, Claude Desktop & Copilot.",
5
+ "main": "index.js",
6
+ "files": [
7
+ "bin",
8
+ "src",
9
+ "index.js",
10
+ "README.md",
11
+ "LICENSE",
12
+ "package.json"
13
+ ],
14
+ "bin": {
15
+ "tzero": "bin/tzero.js",
16
+ "tzero-mcp": "bin/tzero-mcp.js"
17
+ },
18
+ "scripts": {
19
+ "test": "node bin/tzero.js --version"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/toprakahmetaydogmus/TZeroAlgorithm.git"
24
+ },
25
+ "keywords": [
26
+ "mcp",
27
+ "mcp-server",
28
+ "cursor",
29
+ "claude",
30
+ "claude-desktop",
31
+ "token-reduction",
32
+ "ast-pruning",
33
+ "context-window",
34
+ "ai-coding",
35
+ "antigravity",
36
+ "windsurf"
37
+ ],
38
+ "author": "Toprak Ahmet Aydoğmuş (Siber Akademi) <siberakademi@org.tr> (https://github.com/toprakahmetaydogmus)",
39
+ "license": "MIT",
40
+ "bugs": {
41
+ "url": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/issues"
42
+ },
43
+ "homepage": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm#readme"
44
+ }