@triedotdev/mcp 1.0.5 → 1.0.7

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Trie
2
2
 
3
- **Customizable Agent Parallelization for AI Code Review**
3
+ **Customizable Parallel Agents for AI Code Review**
4
4
 
5
5
  13 specialized agents scan your code for security, privacy, compliance, and bugs—all running in parallel. Create custom agents from any document.
6
6
 
@@ -8,9 +8,11 @@
8
8
 
9
9
  - **13 Built-in Agents** - Security, Privacy, SOC 2, Legal, Architecture, DevOps, and more
10
10
  - **Parallel Execution** - All agents run simultaneously for fast scans
11
+ - **🔥 YOLO Mode** - Autonomous auto-fixing as you code
11
12
  - **Custom Agents** - Create agents from PDFs, docs, or style guides
12
- - **No API Key Required** - Uses your AI tool's built-in Claude
13
+ - **No API Key Required** - Works with any MCP-compatible AI tool (Cursor, Claude Code, VS Code)
13
14
  - **Smart Triaging** - Only activates relevant agents based on code context
15
+ - **Docker Support** - Run in containers for CI/CD or isolated environments
14
16
 
15
17
  ## Quick Start
16
18
 
@@ -33,12 +35,16 @@ Settings → MCP Servers → Add:
33
35
  }
34
36
  ```
35
37
 
38
+ **Restart Cursor after adding the MCP server** for changes to take effect.
39
+
36
40
  ### Configure Claude Code
37
41
 
38
42
  ```bash
39
- claude mcp add Trie -- npx @triedotdev/mcp
43
+ claude mcp add Trie --scope user -- npx @triedotdev/mcp
40
44
  ```
41
45
 
46
+ **Restart Claude Code after adding the MCP server** for changes to take effect.
47
+
42
48
  ## Usage
43
49
 
44
50
  Once configured, just ask your AI assistant:
@@ -54,6 +60,58 @@ Run trie_security on this file
54
60
  Run trie_soc2 to check compliance
55
61
  ```
56
62
 
63
+ ## YOLO Mode 🔥
64
+
65
+ **Autonomous auto-fixing** - Trie watches your code and automatically fixes high-confidence issues as you code.
66
+
67
+ ### Via MCP
68
+
69
+ ```
70
+ Use trie_watch with action:"start" yolo:true
71
+ ```
72
+
73
+ ### Via CLI
74
+
75
+ ```bash
76
+ trie-yolo
77
+ ```
78
+
79
+ YOLO mode will:
80
+ - Watch for file changes
81
+ - Scan changed files automatically
82
+ - Auto-fix high-confidence issues (>95% confidence)
83
+ - Log all actions for review
84
+
85
+ ## Docker
86
+
87
+ Run Trie in a container for CI/CD or isolated environments.
88
+
89
+ ```bash
90
+ # Build
91
+ docker build -t trie-agent .
92
+
93
+ # YOLO mode (auto-fix)
94
+ docker run -v $(pwd):/app trie-agent --yolo
95
+
96
+ # Watch mode (scan only)
97
+ docker run -v $(pwd):/app trie-agent
98
+
99
+ # CI mode (one-shot scan)
100
+ docker run -v $(pwd):/app trie-agent --once
101
+ ```
102
+
103
+ Or use Docker Compose:
104
+
105
+ ```bash
106
+ docker-compose up
107
+ ```
108
+
109
+ | Mode | Command | Description |
110
+ |------|---------|-------------|
111
+ | YOLO | `--yolo` | Auto-fix high-confidence issues |
112
+ | Watch | (default) | Scan on file changes, no auto-fix |
113
+ | CI | `--once` | One-shot scan, exit with error code if issues found |
114
+
57
115
  ## Built-in Agents
58
116
 
59
117
  | Agent | Description |
@@ -134,13 +192,6 @@ Create `.trie/config.json` to customize:
134
192
  }
135
193
  }
136
194
  ```
137
-
138
- ## Links
139
-
140
- - [Documentation](https://trie.dev/docs)
141
- - [GitHub](https://github.com/Trie-OS/mcp-agent)
142
- - [Discord](https://discord.gg/trie-ai)
143
-
144
195
  ## License
145
196
 
146
197
  MIT
@@ -3117,13 +3117,16 @@ var CustomAgent = class extends BaseAgent {
3117
3117
  // src/agents/registry.ts
3118
3118
  import { readdir, readFile } from "fs/promises";
3119
3119
  import { join } from "path";
3120
- var AgentRegistry = class {
3120
+ var AgentRegistryImpl = class {
3121
3121
  agents = /* @__PURE__ */ new Map();
3122
3122
  customAgentsLoaded = false;
3123
+ initialized = false;
3123
3124
  constructor() {
3124
3125
  this.registerBuiltinAgents();
3125
3126
  }
3126
3127
  registerBuiltinAgents() {
3128
+ if (this.initialized) return;
3129
+ this.initialized = true;
3127
3130
  const builtinAgents = [
3128
3131
  // Core agents (always available)
3129
3132
  new SecurityAgent(),
@@ -3251,6 +3254,13 @@ var AgentRegistry = class {
3251
3254
  return null;
3252
3255
  }
3253
3256
  };
3257
+ var SINGLETON_KEY = "__TRIE_AGENT_REGISTRY__";
3258
+ function getAgentRegistry() {
3259
+ if (!globalThis[SINGLETON_KEY]) {
3260
+ globalThis[SINGLETON_KEY] = new AgentRegistryImpl();
3261
+ }
3262
+ return globalThis[SINGLETON_KEY];
3263
+ }
3254
3264
 
3255
3265
  // src/tools/scan.ts
3256
3266
  import { readFile as readFile7, readdir as readdir3 } from "fs/promises";
@@ -3884,7 +3894,7 @@ var RiskAssessor = class {
3884
3894
 
3885
3895
  // src/orchestrator/triager.ts
3886
3896
  var Triager = class {
3887
- agentRegistry = new AgentRegistry();
3897
+ agentRegistry = getAgentRegistry();
3888
3898
  config;
3889
3899
  customAgentsLoaded = false;
3890
3900
  constructor(config) {
@@ -6437,7 +6447,7 @@ var TrieScanTool = class {
6437
6447
  riskAssessor = new RiskAssessor();
6438
6448
  triager = new Triager();
6439
6449
  executor = new Executor();
6440
- agentRegistry = new AgentRegistry();
6450
+ agentRegistry = getAgentRegistry();
6441
6451
  incrementalScanner = null;
6442
6452
  progress = new ProgressReporter();
6443
6453
  customAgentsLoaded = false;
@@ -7787,10 +7797,10 @@ The AI will analyze each issue, generate the fix, and you can review before appl
7787
7797
  };
7788
7798
 
7789
7799
  export {
7790
- AgentRegistry,
7800
+ getAgentRegistry,
7791
7801
  TrieScanTool,
7792
7802
  getPrompt,
7793
7803
  getSystemPrompt,
7794
7804
  TrieFixTool
7795
7805
  };
7796
- //# sourceMappingURL=chunk-77JFVVWF.js.map
7806
+ //# sourceMappingURL=chunk-EDWYG3KK.js.map