@triedotdev/mcp 1.0.37 → 1.0.39

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAgentRegistry
3
- } from "../chunk-QFTSX2BX.js";
3
+ } from "../chunk-B3MBKB2U.js";
4
4
  import "../chunk-3CS6Z2SL.js";
5
5
  import "../chunk-OB45V2QC.js";
6
6
  import "../chunk-IMFD4SJC.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triedotdev/mcp",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Intelligent Agent Orchestration for AI Coding Tools",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -73,7 +73,6 @@
73
73
  "homepage": "https://trie.dev",
74
74
  "files": [
75
75
  "dist",
76
- "README.md",
77
- "QUICK_START.md"
76
+ "README.md"
78
77
  ]
79
78
  }
package/QUICK_START.md DELETED
@@ -1,228 +0,0 @@
1
- # Quick Start Guide
2
-
3
- Get Trie Agent up and running in minutes to start scanning and reviewing AI-generated code.
4
-
5
- ## Prerequisites
6
-
7
- - **Node.js 18+** installed ([download](https://nodejs.org/))
8
- - **AI coding tool** (Cursor, Claude Code, or VS Code with MCP support)
9
-
10
- ## Installation
11
-
12
- ### Step 1: Install Trie Agent
13
-
14
- ```bash
15
- npm install -g @triedotdev/mcp
16
- ```
17
-
18
- ### Step 2: Configure Your AI Tool
19
-
20
- No API key required! Trie uses your AI tool's built-in Claude to do the analysis.
21
-
22
- ## Configuration
23
-
24
- ### For Claude Code
25
-
26
- Use the `claude` CLI to add the MCP server:
27
-
28
- ```bash
29
- claude mcp add Trie -- npx @triedotdev/mcp
30
- ```
31
-
32
- Or add to `~/.claude/settings.json`:
33
-
34
- ```json
35
- {
36
- "mcpServers": {
37
- "Trie": {
38
- "command": "node",
39
- "args": ["/usr/local/lib/node_modules/@triedotdev/mcp/dist/index.js"]
40
- }
41
- }
42
- }
43
- ```
44
-
45
- ### For Cursor
46
-
47
- 1. Open Cursor Settings → MCP Servers
48
- 2. Add this configuration:
49
-
50
- ```json
51
- {
52
- "mcpServers": {
53
- "Trie": {
54
- "command": "node",
55
- "args": ["/usr/local/lib/node_modules/@triedotdev/mcp/dist/index.js"]
56
- }
57
- }
58
- }
59
- ```
60
-
61
- **Note:** If installed globally, the path might be different. Find it with:
62
- ```bash
63
- npm list -g @triedotdev/mcp
64
- ```
65
-
66
- ### For VS Code
67
-
68
- Add to your VS Code settings (`.vscode/settings.json` or user settings):
69
-
70
- ```json
71
- {
72
- "mcp.servers": {
73
- "Trie": {
74
- "command": "node",
75
- "args": ["/usr/local/lib/node_modules/@triedotdev/mcp/dist/index.js"]
76
- }
77
- }
78
- }
79
- ```
80
-
81
- ## Usage
82
-
83
- ### Scan Your Code
84
-
85
- Once configured, use Trie Agent in your AI coding tool:
86
-
87
- **In Cursor/Claude Code:**
88
- ```
89
- Scan this code with Trie Agent
90
- ```
91
-
92
- **Or use the MCP tool directly:**
93
- ```
94
- Use trie_scan to analyze the current file
95
- ```
96
-
97
- ### Example Workflow
98
-
99
- 1. **Generate code** with your AI assistant
100
- 2. **Scan for issues:**
101
- ```
102
- Scan this with Trie Agent
103
- ```
104
- 3. **Review results** - Trie will show:
105
- - Risk level and activated agents
106
- - Critical issues requiring review
107
- - Suggested fix prompts for AI
108
- - Plain-language explanations
109
- 4. **Fix issues:**
110
- ```
111
- Apply the suggested fixes for the critical issues
112
- ```
113
- 5. **Generate tests:**
114
- ```
115
- Generate tests for this code
116
- ```
117
-
118
- ## Available Tools
119
-
120
- - **`trie_scan`** - Scan code with intelligent agent selection
121
- - **`trie_fix`** - Generate high-confidence fix prompts
122
- - **`trie_explain`** - Get plain-language explanations of code/issues
123
- - **`trie_test`** - Generate tests or check coverage
124
- - **`trie_watch`** - Monitor files for changes and report issues
125
- - **`trie_register_agent`** - Add custom agents
126
-
127
- ## Example Output
128
-
129
- ```
130
- 🔍 TRIE AGENT SCAN
131
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
132
-
133
- Smart Triaging:
134
- ✓ Risk Level: high
135
- ✓ Reason: High-risk authentication feature
136
- ✓ Agents activated: security, privacy, legal, architecture, typecheck
137
- ✓ Execution time: 8.2s
138
-
139
- Results:
140
- Score: 72/100 (needs work)
141
-
142
- 🔴 2 Critical Issues (require your review)
143
- 🟡 3 Serious Issues
144
- 🔵 2 Moderate Issues
145
-
146
- Critical Issues Preview:
147
- 1. Password stored without hashing (auth/signup.ts:23)
148
- Agent: Security | Confidence: 100%
149
- 2. PII stored in plain text (models/user.ts:15)
150
- Agent: Privacy | Confidence: 95%
151
- ```
152
-
153
- ## Configuration (Optional)
154
-
155
- Create `.trie/config.json` in your project root to customize behavior:
156
-
157
- ```json
158
- {
159
- "version": "1.0",
160
- "triaging": {
161
- "enabled": true,
162
- "riskThresholds": {
163
- "critical": 70,
164
- "high": 40,
165
- "medium": 20
166
- }
167
- },
168
- "agents": {
169
- "builtin": {
170
- "security": { "enabled": true },
171
- "privacy": { "enabled": true },
172
- "legal": { "enabled": true },
173
- "accessibility": { "enabled": true }
174
- }
175
- }
176
- }
177
- ```
178
-
179
- ## Troubleshooting
180
-
181
- ### Agent not found
182
-
183
- **Problem:** Can't find the Trie Agent executable
184
-
185
- **Solution:** Find the installation path:
186
- ```bash
187
- npm list -g @triedotdev/mcp
188
- # Or
189
- npx @triedotdev/mcp --help
190
- ```
191
-
192
- Update your MCP config with the correct path.
193
-
194
- ### No agents activating
195
-
196
- **Problem:** Scan runs but no agents are triggered
197
-
198
- **Solution:**
199
- - Check that your code matches patterns (auth, payments, UI, etc.)
200
- - Review the triaging logic in `.trie/config.json`
201
- - Try scanning a file with known issues (auth, payments, etc.)
202
-
203
- ### MCP connection fails
204
-
205
- **Problem:** Can't connect to Trie Agent server
206
-
207
- **Solution:**
208
- 1. Verify Node.js is installed: `node --version` (should be 18+)
209
- 2. Check the path in MCP config is correct
210
- 3. Restart your AI coding tool
211
- 4. Check console/logs for error messages
212
-
213
- ## Next Steps
214
-
215
- - **Try different code patterns** - Test with auth, payments, UI components
216
- - **Explore agents** - See which agents activate for different code types
217
- - **Generate tests** - Create comprehensive test suites
218
- - **Add custom agents** - Extend Trie with your own review logic
219
-
220
- ## Support
221
-
222
- - 📚 **Documentation**: [trie.dev/docs](https://trie.dev/docs)
223
- - 🐛 **Issues**: [GitHub Issues](https://github.com/Trie-OS/Trie-Agent/issues)
224
- - 💬 **Community**: [Discord](https://discord.gg/trie-ai)
225
-
226
- ---
227
-
228
- **Ready to ship safer code?** Start scanning your AI-generated code now! 🚀