tzero-mcp 10.7.0 → 10.7.2
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.
- package/CHANGELOG.md +589 -0
- package/CONTRIBUTING.md +71 -0
- package/README.md +25 -17
- package/bin/postinstall.js +34 -0
- package/bin/tzero-mcp.js +16 -19
- package/bin/tzero.js +14 -19
- package/index.d.ts +24 -0
- package/index.js +7 -3
- package/package.json +24 -2
- package/src/addmcp.py +1194 -0
- package/src/main.py +60 -0
- package/src/siber_akademi_icon.py +77 -0
- package/src/tzero/jarvis/semantic_compressor.py +373 -0
- package/src/tzero.py +58 -0
- package/src/tzero_benchmark.py +475 -0
- package/src/tzero_bridge.py +362 -0
- package/src/tzero_ci.py +153 -0
- package/src/tzero_commit.py +192 -0
- package/src/tzero_cost.py +163 -0
- package/src/tzero_dashboard.py +1448 -0
- package/src/tzero_deps.py +287 -0
- package/src/tzero_drift.py +208 -0
- package/src/tzero_explain.py +240 -0
- package/src/tzero_features.py +3022 -0
- package/src/tzero_fix.py +228 -0
- package/src/tzero_fixer/__init__.py +63 -0
- package/src/tzero_fixer/amalgamation.py +334 -0
- package/src/tzero_fixer/ast_syntax_healer.py +464 -0
- package/src/tzero_fixer/ast_type_modernizer.py +288 -0
- package/src/tzero_fixer/async_io_modernizer.py +127 -0
- package/src/tzero_fixer/automated_regression_suite.py +600 -0
- package/src/tzero_fixer/benchmarks_and_diagnostics.py +174 -0
- package/src/tzero_fixer/ci_cd_self_healing_gate.py +246 -0
- package/src/tzero_fixer/code_duplicity_and_refactorer.py +151 -0
- package/src/tzero_fixer/code_smells_healer.py +260 -0
- package/src/tzero_fixer/cwe_remediator.py +171 -0
- package/src/tzero_fixer/dead_code_eliminator.py +150 -0
- package/src/tzero_fixer/dependency_vulnerability_auditor.py +309 -0
- package/src/tzero_fixer/git_advanced_surgeon.py +280 -0
- package/src/tzero_fixer/hardware_and_disk_doctor.py +325 -0
- package/src/tzero_fixer/import_graph_healer.py +412 -0
- package/src/tzero_fixer/interactive_tui.py +91 -0
- package/src/tzero_fixer/knowledge_base.py +295 -0
- package/src/tzero_fixer/knowledge_base_extended.py +940 -0
- package/src/tzero_fixer/linters_and_static_analyzer.py +307 -0
- package/src/tzero_fixer/mcp_server.py +447 -0
- package/src/tzero_fixer/models.py +385 -0
- package/src/tzero_fixer/orchestrator.py +375 -0
- package/src/tzero_fixer/os_doctor.py +502 -0
- package/src/tzero_fixer/packaging_abi_surgeon.py +323 -0
- package/src/tzero_fixer/pc_fixer_doctor.py +599 -0
- package/src/tzero_fixer/performance_and_memory_profiler.py +274 -0
- package/src/tzero_fixer/polyglot_ast_parsers.py +313 -0
- package/src/tzero_fixer/polyglot_build_healer.py +364 -0
- package/src/tzero_fixer/polyglot_config_healer.py +318 -0
- package/src/tzero_fixer/polyglot_doctor.py +372 -0
- package/src/tzero_fixer/polyglot_linters.py +619 -0
- package/src/tzero_fixer/polyglot_schema_validator.py +305 -0
- package/src/tzero_fixer/security_cwe_database.py +444 -0
- package/src/tzero_fixer/security_deep_rules.py +114 -0
- package/src/tzero_fixer/security_rules_catalog.py +110 -0
- package/src/tzero_fixer/security_zero_leak.py +326 -0
- package/src/tzero_fixer/smart_patch_recommender.py +223 -0
- package/src/tzero_fixer/synthetic_workspace_generator.py +220 -0
- package/src/tzero_fixer/system_diagnostics_extended.py +493 -0
- package/src/tzero_fixer/system_repair_recipes.py +447 -0
- package/src/tzero_fixer/venv_doctor.py +309 -0
- package/src/tzero_gateway.py +885 -0
- package/src/tzero_guard.py +243 -0
- package/src/tzero_infra.py +274 -0
- package/src/tzero_jarvis/__init__.py +124 -0
- package/src/tzero_jarvis/causal_graph.py +310 -0
- package/src/tzero_jarvis/graph_visualizer.py +395 -0
- package/src/tzero_jarvis/hybrid_search.py +214 -0
- package/src/tzero_jarvis/latent_press.py +137 -0
- package/src/tzero_jarvis/memory_consolidation.py +212 -0
- package/src/tzero_jarvis/minhash_lsh.py +184 -0
- package/src/tzero_jarvis/orchestrator.py +335 -0
- package/src/tzero_jarvis/self_healing.py +308 -0
- package/src/tzero_jarvis/semantic_compressor.py +887 -0
- package/src/tzero_jarvis/swarm.py +261 -0
- package/src/tzero_jarvis/swarm_bft.py +144 -0
- package/src/tzero_jarvis/workspace_orchestrator.py +1167 -0
- package/src/tzero_jarvis/zero_key_router.py +173 -0
- package/src/tzero_mcp.py +4858 -0
- package/src/tzero_neural_cortex.py +1425 -0
- package/src/tzero_packer.py +370 -0
- package/src/tzero_patch.py +624 -0
- package/src/tzero_pc_fixer.py +12657 -0
- package/src/tzero_pipe.py +95 -0
- package/src/tzero_polyglot.py +422 -0
- package/src/tzero_reachability.py +272 -0
- package/src/tzero_replay.py +141 -0
- package/src/tzero_security.py +570 -0
- package/src/tzero_snapshot.py +258 -0
- package/src/tzero_stubs.py +313 -0
- package/src/tzero_superdesign.py +774 -0
- package/src/tzero_sync.py +241 -0
- package/src/tzero_task_benchmark.py +363 -0
- package/src/tzero_tui.py +244 -0
- package/src/tzero_v3.py +9435 -0
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Contributing to T-Zero
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing to **T-Zero**! We welcome community contributions, bug reports, and performance optimizations from engineers worldwide.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🛠 Local Development Setup
|
|
8
|
+
|
|
9
|
+
1. **Clone the repository:**
|
|
10
|
+
```bash
|
|
11
|
+
git clone https://github.com/toprakahmetaydogmus/TZeroAlgorithm.git
|
|
12
|
+
cd TZeroAlgorithm
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
2. **Create a virtual environment:**
|
|
16
|
+
```bash
|
|
17
|
+
python -m venv .venv
|
|
18
|
+
# Windows:
|
|
19
|
+
.venv\Scripts\activate
|
|
20
|
+
# Linux/macOS:
|
|
21
|
+
source .venv/bin/activate
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
3. **Install dependencies and editable package:**
|
|
25
|
+
```bash
|
|
26
|
+
pip install -e ".[test,build]"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 🧪 Verification Pipeline Before Submitting a PR
|
|
32
|
+
|
|
33
|
+
Before opening a pull request, ensure all verification gates pass locally:
|
|
34
|
+
|
|
35
|
+
1. **Syntax Check:**
|
|
36
|
+
```bash
|
|
37
|
+
python -m py_compile $(git diff --name-only HEAD | grep '\.py$')
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
2. **Run Zero-Leak Secret Audit:**
|
|
41
|
+
```bash
|
|
42
|
+
python tests/audit_secrets.py
|
|
43
|
+
# Must return: Total secret audit findings: 0
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
3. **Run Unit Tests:**
|
|
47
|
+
```bash
|
|
48
|
+
python -m unittest discover tests -v
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
4. **Run Empirical Task Benchmark:**
|
|
52
|
+
```bash
|
|
53
|
+
python tzero_task_benchmark.py
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 📐 Code Style & Architecture Guidelines
|
|
59
|
+
|
|
60
|
+
- **Determinism First:** All AST parsing, BM25 searching, and token reduction must run 100% locally with zero external network telemetry.
|
|
61
|
+
- **Inward Dependencies:** Core modules (`tzero_packer`, `tzero_guard`) must not depend on outer presentation layers (`tzero_tui`, `tzero_gui`).
|
|
62
|
+
- **No Plaintext Secrets:** Never commit API keys, connection URIs, or high-entropy tokens.
|
|
63
|
+
- **Air-Gapped Compliance:** Respect `TZERO_NO_AUTO_INSTALL=1` across all scripts.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 💬 Community & Discussions
|
|
68
|
+
|
|
69
|
+
- **GitHub Issues:** [Bug Reports & Feature Requests](https://github.com/toprakahmetaydogmus/TZeroAlgorithm/issues)
|
|
70
|
+
- **Hugging Face Space:** [Interactive Web Demo](https://huggingface.co/spaces/toprakke4/tzero-token-reducer)
|
|
71
|
+
- **Maintainer:** Toprak Ahmet Aydoğmuş (`siberakademi@org.tr`)
|
package/README.md
CHANGED
|
@@ -2,55 +2,63 @@
|
|
|
2
2
|
|
|
3
3
|
> **Deterministic AST Context Compressor, 95% Token Reducer & 20-Tool MCP Server for Cursor, Claude Desktop, Antigravity & Copilot.**
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/tzero-mcp)
|
|
5
|
+
[](https://www.npmjs.com/package/tzero-mcp)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
[](https://socket.dev/npm/package/tzero-mcp)
|
|
7
8
|
[](https://github.com/toprakahmetaydogmus/TZeroAlgorithm)
|
|
8
9
|
|
|
9
10
|
---
|
|
10
11
|
|
|
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!**
|
|
12
|
+
### ⭐ Built by a 15-Year-Old Solo Developer (Please Star Our Repo!)
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Hi! I'm **Toprak Ahmet Aydoğmuş**, a 15-year-old solo open-source developer from **Siber Akademi**. I created T-Zero from scratch to eliminate token limits, reduce prompt costs by up to 95%, and stop AI coding hallucinations using deterministic Abstract Syntax Tree (AST) analysis.
|
|
15
|
+
|
|
16
|
+
If this package helps your engineering team or AI workflows:
|
|
17
|
+
⭐ **Please give our repository a STAR on GitHub:**
|
|
18
|
+
👉 **[https://github.com/toprakahmetaydogmus/TZeroAlgorithm](https://github.com/toprakahmetaydogmus/TZeroAlgorithm)**
|
|
19
|
+
*Every single star means the world to a young open-source creator! 🚀*
|
|
15
20
|
|
|
16
21
|
---
|
|
17
22
|
|
|
18
|
-
## ⚡ Instant MCP Execution (
|
|
23
|
+
## ⚡ Instant MCP Execution (Zero Install Needed)
|
|
19
24
|
|
|
20
|
-
Run directly via `npx` in your `claude_desktop_config.json
|
|
25
|
+
Run directly via `npx` in your `claude_desktop_config.json`, Cursor MCP settings, or Windsurf / Antigravity config:
|
|
21
26
|
|
|
22
27
|
```json
|
|
23
28
|
{
|
|
24
29
|
"mcpServers": {
|
|
25
30
|
"tzero": {
|
|
26
31
|
"command": "npx",
|
|
27
|
-
"args": ["-y", "tzero-mcp"]
|
|
32
|
+
"args": ["-y", "tzero-mcp@latest"]
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
}
|
|
31
36
|
```
|
|
32
37
|
|
|
33
|
-
## 🚀 CLI Installation
|
|
38
|
+
## 🚀 CLI Installation & Usage
|
|
34
39
|
|
|
35
40
|
```bash
|
|
36
|
-
# Global installation
|
|
41
|
+
# Global installation via npm
|
|
37
42
|
npm install -g tzero-mcp
|
|
38
43
|
|
|
39
|
-
# Compress
|
|
44
|
+
# Compress any project directory into an AST Skeleton tree (95% token savings)
|
|
40
45
|
tzero --tree . --out tree.txt
|
|
41
46
|
|
|
42
|
-
# Launch MCP Server
|
|
47
|
+
# Launch interactive Model Context Protocol (MCP) Server
|
|
43
48
|
tzero-mcp
|
|
49
|
+
|
|
50
|
+
# 1-Click connect to Cursor, Claude Desktop, Antigravity & VS Code
|
|
51
|
+
tzero-add-mcp
|
|
44
52
|
```
|
|
45
53
|
|
|
46
|
-
## 🛠
|
|
54
|
+
## 🛠 Key Capabilities
|
|
47
55
|
|
|
48
|
-
- **95% Token Reduction:** Compresses source code into AST skeletons
|
|
49
|
-
- **Zero-Leak Security Guard:**
|
|
50
|
-
- **Reality-Lock Pre-Flight:**
|
|
51
|
-
- **20 Native Tools:**
|
|
56
|
+
- **95% Deterministic Token Reduction:** Compresses source code into AST skeletons preserving function signatures, type annotations, and docstrings while pruning redundant logic bodies.
|
|
57
|
+
- **100% Zero-Leak Security Guard:** Deep Shannon Entropy ($H \ge 4.75$) scanner for API keys and secrets before LLM context ingestion.
|
|
58
|
+
- **Reality-Lock Pre-Flight:** Catches hallucinations before code execution by validating imports and call hierarchies against real AST nodes.
|
|
59
|
+
- **20 Native Developer Tools:** AST PageRank, call-chain tracer, BM25 semantic hybrid search, change blast radius analyzer, and system doctor.
|
|
60
|
+
- **100% Private, Local & Free:** Pure offline operation — $0 API cost, zero cloud lock-in.
|
|
52
61
|
|
|
53
62
|
## 📄 License
|
|
54
63
|
|
|
55
64
|
MIT © [Toprak Ahmet Aydoğmuş](https://github.com/toprakahmetaydogmus)
|
|
56
|
-
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* T-Zero Post-Install Banner & Star Request
|
|
5
|
+
* Author: Toprak Ahmet Aydoğmuş (15-Year-Old Solo Developer @ Siber Akademi)
|
|
6
|
+
* Repository: https://github.com/toprakahmetaydogmus/TZeroAlgorithm
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const isCI = process.env.CI || process.env.CONTINUOUS_INTEGRATION;
|
|
10
|
+
if (!isCI) {
|
|
11
|
+
const cyan = "\x1b[36m";
|
|
12
|
+
const yellow = "\x1b[33m";
|
|
13
|
+
const green = "\x1b[32m";
|
|
14
|
+
const bold = "\x1b[1m";
|
|
15
|
+
const reset = "\x1b[0m";
|
|
16
|
+
|
|
17
|
+
console.log(`
|
|
18
|
+
${yellow}┌──────────────────────────────────────────────────────────────────────────────┐
|
|
19
|
+
│ ${bold}${green}⚡ T-ZERO CONTEXT ARCHITECT & MCP SERVER INSTALLED SUCCESSFULLY!${reset}${yellow} │
|
|
20
|
+
│ │
|
|
21
|
+
│ Hi! I'm ${bold}Toprak Ahmet Aydoğmuş${reset}${yellow}, a 15-year-old solo developer from │
|
|
22
|
+
│ ${bold}Siber Akademi${reset}${yellow}. I built T-Zero from scratch to eliminate token bloat and │
|
|
23
|
+
│ AI coding hallucinations using deterministic AST analysis. │
|
|
24
|
+
│ │
|
|
25
|
+
│ ⭐ ${bold}If T-Zero saves you tokens or helps your AI workflows,${reset}${yellow} │
|
|
26
|
+
│ ${bold}${cyan}please give our repository a STAR on GitHub:${reset}${yellow} │
|
|
27
|
+
│ │
|
|
28
|
+
│ 👉 ${bold}${cyan}https://github.com/toprakahmetaydogmus/TZeroAlgorithm${reset}${yellow} │
|
|
29
|
+
│ │
|
|
30
|
+
│ Every star means the world to a young open-source creator! 🚀 Thank you! │
|
|
31
|
+
└──────────────────────────────────────────────────────────────────────────────┘${reset}
|
|
32
|
+
`);
|
|
33
|
+
}
|
|
34
|
+
process.exit(0);
|
package/bin/tzero-mcp.js
CHANGED
|
@@ -8,15 +8,21 @@
|
|
|
8
8
|
|
|
9
9
|
const { spawn, execSync } = require("child_process");
|
|
10
10
|
const process = require("process");
|
|
11
|
+
const path = require("path");
|
|
12
|
+
const pkg = require("../package.json");
|
|
11
13
|
|
|
12
14
|
// In MCP mode, banner is printed to stderr to keep stdout strictly for JSON-RPC
|
|
13
15
|
const banner = `\x1b[33m
|
|
14
16
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
15
|
-
│ ⭐ T-ZERO MCP SERVER
|
|
17
|
+
│ ⭐ T-ZERO MCP SERVER v${pkg.version} (Model Context Protocol) │
|
|
16
18
|
│ │
|
|
17
19
|
│ Hi! I'm Toprak Ahmet Aydoğmuş, a 15-year-old developer from Siber Akademi. │
|
|
18
|
-
│
|
|
20
|
+
│ I created T-Zero to eliminate token limits & hallucinations. │
|
|
21
|
+
│ │
|
|
22
|
+
│ If T-Zero helps your workflows, please give our project a STAR on GitHub: │
|
|
19
23
|
│ 👉 https://github.com/toprakahmetaydogmus/TZeroAlgorithm │
|
|
24
|
+
│ │
|
|
25
|
+
│ Every star means the world to a young open-source creator! 🚀 Thank you! │
|
|
20
26
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
21
27
|
\x1b[0m`;
|
|
22
28
|
|
|
@@ -44,25 +50,16 @@ if (!py) {
|
|
|
44
50
|
process.exit(1);
|
|
45
51
|
}
|
|
46
52
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
try {
|
|
55
|
-
execSync(`${py} -m pip install -U tzero-mcp`, { stdio: "inherit" });
|
|
56
|
-
} catch (err) {
|
|
57
|
-
console.error("\x1b[31m[ERROR] Failed to auto-install tzero-mcp. Please run: pip install -U tzero-mcp\x1b[0m");
|
|
58
|
-
process.exit(1);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
53
|
+
const srcDir = path.resolve(__dirname, "..", "src");
|
|
54
|
+
const scriptPath = path.join(srcDir, "tzero_mcp.py");
|
|
55
|
+
|
|
56
|
+
const env = Object.assign({}, process.env, {
|
|
57
|
+
PYTHONPATH: srcDir + (process.env.PYTHONPATH ? path.delimiter + process.env.PYTHONPATH : "")
|
|
58
|
+
});
|
|
61
59
|
|
|
62
|
-
const args = [
|
|
63
|
-
const child = spawn(py, args, { stdio: "inherit" });
|
|
60
|
+
const args = [scriptPath, ...process.argv.slice(2)];
|
|
61
|
+
const child = spawn(py, args, { stdio: "inherit", env });
|
|
64
62
|
|
|
65
63
|
child.on("close", (code) => {
|
|
66
64
|
process.exit(code ?? 0);
|
|
67
65
|
});
|
|
68
|
-
|
package/bin/tzero.js
CHANGED
|
@@ -8,16 +8,20 @@
|
|
|
8
8
|
|
|
9
9
|
const { spawn, execSync } = require("child_process");
|
|
10
10
|
const process = require("process");
|
|
11
|
+
const path = require("path");
|
|
12
|
+
const pkg = require("../package.json");
|
|
11
13
|
|
|
12
14
|
const banner = `\x1b[33m
|
|
13
15
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
14
|
-
│ ⭐ T-ZERO CONTEXT ARCHITECT & MCP ENGINE
|
|
16
|
+
│ ⭐ T-ZERO CONTEXT ARCHITECT & MCP ENGINE v${pkg.version} │
|
|
15
17
|
│ │
|
|
16
18
|
│ Hi! I'm Toprak Ahmet Aydoğmuş, a 15-year-old developer from Siber Akademi. │
|
|
17
19
|
│ I built T-Zero from scratch to eliminate token bloat and AI hallucinations. │
|
|
18
20
|
│ │
|
|
19
|
-
│ If this tool saves you tokens, please give
|
|
21
|
+
│ If this tool saves you tokens, please give our project a STAR on GitHub: │
|
|
20
22
|
│ 👉 https://github.com/toprakahmetaydogmus/TZeroAlgorithm │
|
|
23
|
+
│ │
|
|
24
|
+
│ Every star means the world to a young open-source creator! 🚀 Thank you! │
|
|
21
25
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
22
26
|
\x1b[0m`;
|
|
23
27
|
|
|
@@ -45,25 +49,16 @@ if (!py) {
|
|
|
45
49
|
process.exit(1);
|
|
46
50
|
}
|
|
47
51
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
execSync(`${py} -c "import tzero_v3"`, { stdio: "ignore" });
|
|
51
|
-
} catch (e) {
|
|
52
|
-
if (process.stdout.isTTY) {
|
|
53
|
-
console.log("\x1b[36m[T-Zero] First-time setup: installing tzero-mcp from PyPI...\x1b[0m");
|
|
54
|
-
}
|
|
55
|
-
try {
|
|
56
|
-
execSync(`${py} -m pip install -U tzero-mcp`, { stdio: "inherit" });
|
|
57
|
-
} catch (err) {
|
|
58
|
-
console.error("\x1b[31m[ERROR] Failed to auto-install tzero-mcp. Please run: pip install -U tzero-mcp\x1b[0m");
|
|
59
|
-
process.exit(1);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
52
|
+
const srcDir = path.resolve(__dirname, "..", "src");
|
|
53
|
+
const scriptPath = path.join(srcDir, "tzero_v3.py");
|
|
62
54
|
|
|
63
|
-
const
|
|
64
|
-
|
|
55
|
+
const env = Object.assign({}, process.env, {
|
|
56
|
+
PYTHONPATH: srcDir + (process.env.PYTHONPATH ? path.delimiter + process.env.PYTHONPATH : "")
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const args = [scriptPath, ...process.argv.slice(2)];
|
|
60
|
+
const child = spawn(py, args, { stdio: "inherit", env });
|
|
65
61
|
|
|
66
62
|
child.on("close", (code) => {
|
|
67
63
|
process.exit(code ?? 0);
|
|
68
64
|
});
|
|
69
|
-
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* T-Zero Model Context Protocol (MCP) Server & AST Context Architect
|
|
3
|
+
* Author: Toprak Ahmet Aydoğmuş (Siber Akademi)
|
|
4
|
+
* Repository: https://github.com/toprakahmetaydogmus/TZeroAlgorithm
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export interface TZeroPackageInfo {
|
|
8
|
+
version: string;
|
|
9
|
+
author: string;
|
|
10
|
+
repository: string;
|
|
11
|
+
srcDir: string;
|
|
12
|
+
mcpServer: string;
|
|
13
|
+
cli: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare const version: string;
|
|
17
|
+
export declare const author: string;
|
|
18
|
+
export declare const repository: string;
|
|
19
|
+
export declare const srcDir: string;
|
|
20
|
+
export declare const mcpServer: string;
|
|
21
|
+
export declare const cli: string;
|
|
22
|
+
|
|
23
|
+
declare const tzero: TZeroPackageInfo;
|
|
24
|
+
export default tzero;
|
package/index.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* T-Zero Context Architect & MCP Server
|
|
3
5
|
* https://github.com/toprakahmetaydogmus/TZeroAlgorithm
|
|
4
6
|
*/
|
|
5
7
|
|
|
6
8
|
module.exports = {
|
|
7
|
-
version: "10.7.
|
|
9
|
+
version: "10.7.2",
|
|
8
10
|
author: "Toprak Ahmet Aydoğmuş (Siber Akademi)",
|
|
9
|
-
repository: "https://github.com/toprakahmetaydogmus/TZeroAlgorithm"
|
|
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")
|
|
10
15
|
};
|
|
11
|
-
|
package/package.json
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tzero-mcp",
|
|
3
|
-
"version": "10.7.
|
|
3
|
+
"version": "10.7.2",
|
|
4
4
|
"description": "Deterministic AST Context Compressor, 95% Token Reducer & 20-Tool MCP Server for Cursor, Claude Desktop & Copilot.",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"default": "./index.js"
|
|
11
|
+
},
|
|
12
|
+
"./package.json": "./package.json"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=18.0.0"
|
|
17
|
+
},
|
|
6
18
|
"files": [
|
|
7
19
|
"bin",
|
|
20
|
+
"src",
|
|
8
21
|
"index.js",
|
|
22
|
+
"index.d.ts",
|
|
9
23
|
"README.md",
|
|
24
|
+
"CHANGELOG.md",
|
|
25
|
+
"CONTRIBUTING.md",
|
|
10
26
|
"LICENSE",
|
|
11
27
|
"package.json"
|
|
12
28
|
],
|
|
@@ -15,11 +31,17 @@
|
|
|
15
31
|
"tzero-mcp": "bin/tzero-mcp.js"
|
|
16
32
|
},
|
|
17
33
|
"scripts": {
|
|
34
|
+
"postinstall": "node bin/postinstall.js",
|
|
18
35
|
"test": "node bin/tzero.js --version"
|
|
19
36
|
},
|
|
20
37
|
"repository": {
|
|
21
38
|
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/toprakahmetaydogmus/TZeroAlgorithm.git"
|
|
39
|
+
"url": "git+https://github.com/toprakahmetaydogmus/TZeroAlgorithm.git",
|
|
40
|
+
"directory": "installers/npm"
|
|
41
|
+
},
|
|
42
|
+
"funding": {
|
|
43
|
+
"type": "github",
|
|
44
|
+
"url": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm"
|
|
23
45
|
},
|
|
24
46
|
"keywords": [
|
|
25
47
|
"mcp",
|