@triedotdev/mcp 1.0.27 → 1.0.28

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
@@ -136,7 +136,10 @@ Trie works in two modes:
136
136
  # Environment variable
137
137
  export ANTHROPIC_API_KEY=sk-ant-...
138
138
 
139
- # Or in MCP config (Cursor)
139
+ # Or add it to your project (recommended for CLI usage like `trie-yolo`)
140
+ echo 'ANTHROPIC_API_KEY=sk-ant-...' >> .env.local
141
+
142
+ # Or in MCP config (Cursor / MCP tools)
140
143
  {
141
144
  "mcpServers": {
142
145
  "Trie": {
@@ -150,6 +153,9 @@ export ANTHROPIC_API_KEY=sk-ant-...
150
153
  }
151
154
  ```
152
155
 
156
+ > **Important:** The `env` you set in Cursor’s MCP config is only inherited by the **MCP server process** that Cursor launches.
157
+ > It does **not** automatically apply to standalone terminal commands like `trie-yolo` unless your shell/project environment also has `ANTHROPIC_API_KEY`.
158
+
153
159
  When AI is enabled, you'll see:
154
160
  - `AI-powered analysis enabled` in output
155
161
  - `[AI VALIDATED]` and `[AI FOUND]` tags on issues
@@ -5756,6 +5756,12 @@ var TrieScanTool = class {
5756
5756
  const startTime = Date.now();
5757
5757
  try {
5758
5758
  let { files, context: userContext, forceAgents, directory } = args;
5759
+ const yoloMode = Boolean(args?.yoloMode ?? args?.yolo);
5760
+ const excludeAgentsInput = Array.isArray(args?.excludeAgents) ? args.excludeAgents : [];
5761
+ const excludeAgents = new Set(
5762
+ excludeAgentsInput.filter((x) => typeof x === "string" && x.trim().length > 0).map((s) => s.trim())
5763
+ );
5764
+ if (yoloMode) excludeAgents.add("agent-smith");
5759
5765
  const config = await loadConfig();
5760
5766
  const workDir = getWorkingDirectory(directory);
5761
5767
  const scanDir = workDir;
@@ -5847,7 +5853,15 @@ var TrieScanTool = class {
5847
5853
  this.logRiskAssessment(context, riskLevel);
5848
5854
  this.progress.startPhase("ai-review", "Selecting AI agents...");
5849
5855
  await this.ensureCustomAgentsLoaded();
5850
- const selectedAgents = forceAgents ? this.agentRegistry.getAgentsByNames(forceAgents) : await this.triager.selectAgents(context, riskLevel);
5856
+ let selectedAgents = forceAgents ? this.agentRegistry.getAgentsByNames(forceAgents) : await this.triager.selectAgents(context, riskLevel);
5857
+ if (excludeAgents.size > 0) {
5858
+ const before = selectedAgents.length;
5859
+ selectedAgents = selectedAgents.filter((a) => !excludeAgents.has(a.name));
5860
+ const removed = before - selectedAgents.length;
5861
+ if (removed > 0) {
5862
+ console.error(` \u{1F6AB} Excluding ${removed} agent(s): ${Array.from(excludeAgents).join(", ")}`);
5863
+ }
5864
+ }
5851
5865
  const allAgentNames = this.agentRegistry.getAgentNames();
5852
5866
  this.logTriaging(selectedAgents.map((a) => a.name), allAgentNames, context, riskLevel);
5853
5867
  this.progress.update(`${selectedAgents.length} agents selected for ${riskLevel} risk code`);
@@ -7693,4 +7707,4 @@ export {
7693
7707
  getSystemPrompt,
7694
7708
  TrieFixTool
7695
7709
  };
7696
- //# sourceMappingURL=chunk-IHJAAT6L.js.map
7710
+ //# sourceMappingURL=chunk-BICD36UW.js.map