@triedotdev/mcp 1.0.6 → 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
 
@@ -35,12 +35,16 @@ Settings → MCP Servers → Add:
35
35
  }
36
36
  ```
37
37
 
38
+ **Restart Cursor after adding the MCP server** for changes to take effect.
39
+
38
40
  ### Configure Claude Code
39
41
 
40
42
  ```bash
41
- claude mcp add Trie -- npx @triedotdev/mcp
43
+ claude mcp add Trie --scope user -- npx @triedotdev/mcp
42
44
  ```
43
45
 
46
+ **Restart Claude Code after adding the MCP server** for changes to take effect.
47
+
44
48
  ## Usage
45
49
 
46
50
  Once configured, just ask your AI assistant:
@@ -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