architectgbt-mcp 0.2.4 → 0.4.0

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
@@ -7,6 +7,18 @@ Get instant AI model recommendations for your projects directly in Cursor IDE or
7
7
  [![npm version](https://img.shields.io/npm/v/architectgbt-mcp.svg)](https://www.npmjs.com/package/architectgbt-mcp)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
9
 
10
+ ## Quick Start (No Signup Required!)
11
+
12
+ **Just run it** - no API key, no signup, no configuration:
13
+
14
+ ```bash
15
+ npx -y architectgbt-mcp
16
+ ```
17
+
18
+ You get **3 free recommendations per day** instantly. Perfect for trying it out!
19
+
20
+ Want unlimited? [Upgrade to Pro](#pricing) ($15/month) and add an API key.
21
+
10
22
  ## Features
11
23
 
12
24
  ### 🎯 AI Model Recommendations
@@ -22,17 +34,23 @@ Get instant AI model recommendations for your projects directly in Cursor IDE or
22
34
  - **Detailed specs** (context windows, capabilities, speed rankings)
23
35
  - **Provider filtering** (OpenAI, Anthropic, Google, Meta, Mistral)
24
36
 
25
- ### 💻 Code Templates
37
+ ### 💻 Code Templates (Pro Only)
26
38
  - **Production-ready integrations** for Anthropic, OpenAI, and Google
27
39
  - **TypeScript and Python** support
28
40
  - **Complete examples** with installation, env setup, and usage
29
41
  - **Best practices** including error handling and streaming
42
+ - **Requires Pro subscription** ($15/month)
30
43
 
31
44
  ## Installation
32
45
 
33
- ### Cursor IDE
46
+ ### Option 1: Anonymous (Free, No Setup)
47
+
48
+ **Works immediately** - no configuration, no API key, no signup:
49
+
50
+ #### Cursor IDE
34
51
 
35
52
  1. Create `.cursor/mcp.json` in your project:
53
+
36
54
  ```json
37
55
  {
38
56
  "mcpServers": {
@@ -45,17 +63,16 @@ Get instant AI model recommendations for your projects directly in Cursor IDE or
45
63
  ```
46
64
 
47
65
  2. Restart Cursor
66
+ 3. Ask Claude: "Recommend an AI model for my chatbot"
67
+ 4. ✅ **Works instantly** - 3 free recommendations/day
48
68
 
49
- 3. Ask Claude:
50
- - "Recommend an AI model for a customer support chatbot"
51
- - "Show me all available AI models"
52
- - "Give me Claude Sonnet code in TypeScript"
53
-
54
- ### Claude Desktop
69
+ #### Claude Desktop
55
70
 
56
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
71
+ 1. **Open config:**
72
+ - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
73
+ - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
57
74
 
58
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
75
+ 2. **Add this:**
59
76
 
60
77
  ```json
61
78
  {
@@ -68,86 +85,225 @@ Get instant AI model recommendations for your projects directly in Cursor IDE or
68
85
  }
69
86
  ```
70
87
 
71
- ### VS Code (with Continue or other MCP extensions)
88
+ 3. Restart Claude Desktop
89
+ 4. ✅ **Works instantly** - 3 free recommendations/day
90
+
91
+ ---
92
+
93
+ ### Option 2: Pro (Unlimited with API Key)
94
+
95
+ Want unlimited recommendations? [Upgrade to Pro](https://architectgbt.com/pricing) then:
96
+
97
+ #### Cursor IDE (Pro)
72
98
 
73
- Install an MCP-compatible extension, then add to settings:
99
+ 1. Create `.cursor/mcp.json`:
74
100
 
75
101
  ```json
76
102
  {
77
- "mcp.servers": {
103
+ "mcpServers": {
78
104
  "architectgbt": {
79
105
  "command": "npx",
80
- "args": ["-y", "architectgbt-mcp@latest"]
106
+ "args": ["-y", "architectgbt-mcp@latest"],
107
+ "env": {
108
+ "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
109
+ }
81
110
  }
82
111
  }
83
112
  }
84
113
  ```
85
114
 
86
- ### Zed Editor
115
+ 2. Get API key from [Settings](https://architectgbt.com/dashboard/settings)
116
+ 3. Replace `agbt_your_key_here` with your key
117
+ 4. Restart Cursor
118
+ 5. ✅ **Unlimited recommendations**
87
119
 
88
- Add to `~/.config/zed/settings.json`:
120
+ #### Claude Desktop (Pro)
121
+
122
+ 1. **Open config:**
123
+ - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
124
+ - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
125
+
126
+ 2. **Edit the config:**
89
127
 
90
128
  ```json
91
129
  {
92
- "context_servers": {
130
+ "mcpServers": {
93
131
  "architectgbt": {
94
132
  "command": "npx",
95
- "args": ["-y", "architectgbt-mcp@latest"]
133
+ "args": ["-y", "architectgbt-mcp@latest"],
134
+ "env": {
135
+ "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
136
+ }
96
137
  }
97
138
  }
98
139
  }
99
140
  ```
100
141
 
101
- ### Any MCP-Compatible Client
142
+ 3. Get API key from [Settings](https://architectgbt.com/dashboard/settings)
143
+ 4. Replace `agbt_your_key_here` with your key
144
+ 5. Restart Claude Desktop
145
+ 6. ✅ **Unlimited recommendations**
102
146
 
103
- This server follows the [Model Context Protocol](https://modelcontextprotocol.io) standard and works with any MCP-compatible client. Run it via stdio:
147
+ 5. **Test it** - Look for 🔌 icon in bottom right, then ask:
148
+ - "Show me all available AI models"
104
149
 
105
- ```bash
106
- npx architectgbt-mcp@latest
150
+ ---
151
+
152
+ ## Usage & Prompting Guide
153
+
154
+ **ArchitectGBT has 3 tools** - here's how to use each one effectively:
155
+
156
+ ### 🎯 Get AI Recommendations (Rate Limited)
157
+
158
+ **What it does:** AI-powered analysis to recommend the best model for your project.
159
+
160
+ **Free tier limit:** 3 per day (anonymous users)
161
+
162
+ **How to prompt:**
163
+ ```
164
+ ✅ "Recommend an AI model for building a customer support chatbot"
165
+ ✅ "What's the best model for analyzing legal documents with 50k context?"
166
+ ✅ "I need a fast, cheap model for sentiment analysis - recommend one"
167
+ ✅ "Use get_ai_recommendation to find a model for my project"
168
+ ```
169
+
170
+ **What triggers it:**
171
+ - Asking for "recommendations" or "best model for..."
172
+ - Describing a project and asking "what model should I use?"
173
+ - Explicitly saying "get_ai_recommendation"
174
+
175
+ ---
176
+
177
+ ### 💻 Get Code Templates (Pro Only)
178
+
179
+ **What it does:** Returns production-ready code snippets for integrating specific AI models.
180
+
181
+ **Tier requirement:** Pro subscription required
182
+
183
+ **How to prompt:**
184
+ ```
185
+ ✅ "Give me code to integrate Claude in TypeScript"
186
+ ✅ "Show me how to use GPT-4 in Python"
187
+ ✅ "Get me a template for Gemini integration"
188
+ ✅ "I need example code for calling Anthropic's API"
107
189
  ```
108
190
 
109
- ### With API Key (Unlimited Access)
191
+ **What triggers it:**
192
+ - Asking for "code", "template", "example", "integration"
193
+ - Mentioning a specific model + language
194
+ - Wanting implementation help
195
+
196
+ ---
110
197
 
111
- Add your API key to any config above:
198
+ ### 📊 List All Models (Unlimited)
199
+
200
+ **What it does:** Shows all 50+ AI models with pricing and specs.
201
+
202
+ **Free tier limit:** Unlimited (public endpoint)
203
+
204
+ **How to prompt:**
205
+ ```
206
+ ✅ "Show me all AI models"
207
+ ✅ "List models from Anthropic"
208
+ ✅ "What models are available?"
209
+ ✅ "Show me all OpenAI models with pricing"
210
+ ```
211
+
212
+ **What triggers it:**
213
+ - Asking to "list", "show all", "browse" models
214
+ - Wanting to see pricing/specs
215
+ - Exploring available options
216
+
217
+ ---
218
+
219
+ **💡 Pro tip:** Only `get_ai_recommendation` counts toward your daily limit. Browse models and get code templates unlimited!
220
+
221
+ ### VS Code (with Continue or other MCP extensions)
222
+
223
+ ---
224
+
225
+ ### Other Editors
226
+
227
+ #### VS Code (with Continue extension)
112
228
 
113
229
  ```json
114
230
  {
115
- "mcpServers": {
231
+ "mcp.servers": {
116
232
  "architectgbt": {
117
233
  "command": "npx",
118
- "args": ["-y", "architectgbt-mcp@latest"],
119
- "env": {
120
- "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
121
- }
234
+ "args": ["-y", "architectgbt-mcp@latest"]
122
235
  }
123
236
  }
124
237
  }
125
238
  ```
126
239
 
127
- ## Pricing
240
+ **For unlimited:** Add `"env": { "ARCHITECTGBT_API_KEY": "agbt_your_key" }` and [upgrade to Pro](https://architectgbt.com/pricing).
241
+
242
+ #### Zed Editor
243
+
244
+ Add to `~/.config/zed/settings.json`:
245
+
246
+ ```json
247
+ {
248
+ "context_servers": {
249
+ "architectgbt": {
250
+ "command": "npx",
251
+ "args": ["-y", "architectgbt-mcp@latest"]
252
+ }
253
+ }
254
+ }
255
+ ```
128
256
 
129
- | Tier | Recommendations | Cost | API Key |
130
- |------|----------------|------|---------|
131
- | **Free** | 3/day | $0 | Not needed |
257
+ **For unlimited:** Add `"env": { "ARCHITECTGBT_API_KEY": "agbt_your_key" }` and [upgrade to Pro](https://architectgbt.com/pricing).
258
+ ```bash
259
+ npx architectgbt-mcp@latest
260
+ ```
261
+ MCP Access | Cost | Setup Required |
262
+ |------|-----------|------|---------------|
263
+ | **Anonymous** | 3/day | $0 | None - works instantly |
264
+ | **Free Account** | 3/day + 10/month web | $0 | Signup only (no API key) |
265
+ | **Pro** | Unlimited | $15-29/month | API key required |
266
+
267
+ ### Free Tier
268
+ - ✅ **No signup needed** - works immediately
269
+ - ✅ **3 recommendations/day** via MCP (IP-based)
270
+ - ✅ **No configuration** - just `npx -y architectgbt-mcp`
271
+ - 📈 Perfect for trying it out!
272
+
273
+ ### Pro Tier
274
+ - ✅ **Unlimited recommendations** (MCP + web app)
275
+ - ✅ **API key access** (up to 5 keys)
276
+ - ✅ **Priority support**
277
+ - ✅ **Advanced features**
278
+ - 💳 [$15-29/month →](https://architectgbt.com/pricing)
279
+
280
+ **Getting the free tier limit?** [Upgrade to Pro](https://architectgbt.com/pricing) for unlimited access.
132
281
  | **Pro** | Unlimited | $15/month | Required |
133
282
 
134
283
  [Get your API key →](https://architectgbt.com/dashboard/settings)
135
284
 
136
285
  ## Tools
137
286
 
138
- ### `list_models`
139
- Lists all 50+ available AI models with pricing.
287
+ ### `list_models` ✅ Unlimited & Free
288
+
289
+ Browse all 50+ available AI models with real-time pricing and specs.
140
290
 
291
+ **✨ No rate limits** - use as much as you want!
292
+
293
+ **How to use:**
141
294
  ```
142
- User: "Show me all AI models"
295
+ You: "Show me all AI models from Anthropic"
296
+
297
+ Claude will use: list_models
143
298
 
144
299
  Response:
145
- Available AI Models (50 total)
300
+ Available AI Models (8 total)
146
301
  ======================================================================
147
302
 
148
303
  Anthropic:
149
304
  • Claude Haiku 4.5 $ 0.80 / $ 4.00 (in/out per 1M tokens)
150
305
  • Claude Sonnet 4.5 $ 3.00 / $ 15.00 (in/out per 1M tokens)
306
+ • Claude Opus 4 $ 15.00 / $ 75.00 (in/out per 1M tokens)
151
307
  ...
152
308
  ```
153
309
 
@@ -155,11 +311,69 @@ Anthropic:
155
311
  - `provider` (optional): Filter by "OpenAI" | "Anthropic" | "Google" | "Meta" | "Mistral"
156
312
  - `limit` (optional): Number of models (default: 50)
157
313
 
158
- ### `get_ai_recommendation`
159
- Get personalized AI model recommendations.
314
+ ---
315
+
316
+ ### `get_code_template` 🔒 Pro Feature
317
+
318
+ Get production-ready code for integrating specific AI models.
319
+
320
+ **⚠️ Requires API key** - Pro subscription ($15/month)
160
321
 
322
+ **How to use:**
161
323
  ```
162
- User: "I need an AI for a chatbot handling 10k requests/day"
324
+ You: "Give me TypeScript code to integrate Claude"
325
+
326
+ Claude will use: get_code_template
327
+
328
+ Response:
329
+ 📝 Code Template: Claude (TypeScript)
330
+
331
+ ### Installation
332
+ ```bash
333
+ npm install @anthropic-ai/sdk
334
+ ```
335
+
336
+ ### Environment Variables
337
+ ```
338
+ ANTHROPIC_API_KEY=your_api_key_here
339
+ ```
340
+
341
+ ### Code
342
+ ```typescript
343
+ import Anthropic from '@anthropic-ai/sdk';
344
+
345
+ const client = new Anthropic({
346
+ apiKey: process.env.ANTHROPIC_API_KEY,
347
+ });
348
+
349
+ const message = await client.messages.create({
350
+ model: 'claude-sonnet-4-20250514',
351
+ max_tokens: 1024,
352
+ messages: [{ role: 'user', content: 'Hello!' }],
353
+ });
354
+ ```
355
+
356
+ ### Usage Example
357
+ ```typescript
358
+ // Full implementation with error handling...
359
+ ```
360
+ ```
361
+
362
+ **Parameters:**
363
+ - `model` (required): AI model name (e.g., "Claude", "GPT-4", "Gemini")
364
+ - `language` (optional): "typescript" or "python" (default: typescript)
365
+
366
+ ### `get_ai_recommendation` ⚡ Rate Limited (3/day free)
367
+
368
+ Get personalized AI model recommendations with budget optimization and detailed analysis.
369
+
370
+ **⚠️ This is the only rate-limited tool** - counts toward your 3/day limit.
371
+
372
+ **How to use:**
373
+ ```
374
+ You: "Recommend an AI model for a customer support chatbot handling 10k requests/day"
375
+
376
+ Claude will use: get_ai_recommendation
163
377
 
164
378
  Response:
165
379
  🎯 AI Model Recommendation — Analysis Complete!
@@ -168,7 +382,7 @@ Response:
168
382
 
169
383
  Claude Haiku 4.5
170
384
  Provider: Anthropic
171
- Estimated Cost: $0.0240
385
+ Estimated Cost: $0.0240/day
172
386
  Context Window: 200,000 tokens
173
387
 
174
388
  💡 Why this model?
@@ -178,14 +392,36 @@ Perfect for customer support with fast responses, strong reasoning...
178
392
  • Extremely fast (sub-second)
179
393
  • Cost-effective at scale
180
394
  ...
395
+
396
+ ---
397
+ 📊 Free Tier: 2/3 recommendations remaining today
398
+ 💎 Get unlimited access at https://architectgbt.com
181
399
  ```
182
400
 
183
- **Parameters:**
184
- - `prompt` (required): Your project description
185
- - `budget` (optional): "low" | "medium" | "high" | "unlimited"
186
- - `priority` (optional): "cost" | "speed" | "quality" | "balanced"
401
+ **Free tier:** You've used 3 free recommendations today.
402
+
403
+ **Options:**
404
+ 1. Wait for reset (resets every 24 hours)
405
+ 2. 📈 [Upgrade to Pro](https://architectgbt.com/pricing) for unlimited access
406
+
407
+ ### "API Key Invalid" (Pro users)
408
+
409
+ 1. Check key starts with `agbt_`
410
+ 2. Regenerate from [Settings](https://architectgbt.com/dashboard/settings)
411
+ 3. Make sure it's in the `env` section of your config
412
+ 4. Verify you're on a Pro plan
413
+
414
+ ### Not Working at All?
415
+
416
+ **First time user:**
417
+ - ✅ No API key needed for free tier
418
+ - ✅ Remove the `env` section from config if present
419
+ - ✅ Just use: `"args": ["-y", "architectgbt-mcp@latest"]`
187
420
 
188
- - `language` (required): "typescript" | "python"
421
+ **Pro user:**
422
+ - ❌ Check API key is valid
423
+ - ❌ Ensure you've upgraded to Pro at [architectgbt.com/pricing](https://architectgbt.com/pricing)
424
+ - ❌ Free accounts cannot use API keys
189
425
 
190
426
  ## Environment Variables
191
427
 
package/TESTING.md CHANGED
@@ -2,56 +2,96 @@
2
2
 
3
3
  ## Quick Test Guide
4
4
 
5
- ### 1. Set Your API Key
5
+ ### Option 1: Test Anonymous (No Setup)
6
+
7
+ **Easiest way** - works immediately:
8
+
9
+ 1. **Configure Cursor IDE** - Create `.cursor/mcp.json`:
10
+
11
+ ```json
12
+ {
13
+ "mcpServers": {
14
+ "architectgbt": {
15
+ "command": "npx",
16
+ "args": ["-y", "architectgbt-mcp@latest"]
17
+ }
18
+ }
19
+ }
20
+ ```
21
+
22
+ 2. **Restart Cursor**
23
+
24
+ 3. **Test it** - Ask Claude:
25
+ - "Show me all available AI models"
26
+ - "Recommend an AI model for a chatbot"
27
+
28
+ ✅ **Expected:** Works instantly - 3 free recommendations/day
29
+
30
+ ---
31
+
32
+ ### Option 2: Test with Pro (Unlimited)
33
+
34
+ **For unlimited access** - requires Pro account:
35
+
36
+ 1. **Upgrade to Pro:** [architectgbt.com/pricing](https://architectgbt.com/pricing)
37
+
38
+ 2. **Get API Key:** [architectgbt.com/dashboard/settings](https://architectgbt.com/dashboard/settings)
39
+
40
+ 3. **Set Environment Variable:**
6
41
 
7
42
  **Windows (PowerShell):**
8
43
  ```powershell
9
- $env:ARCHITECTGBT_API_KEY = "your_api_key_here"
44
+ $env:ARCHITECTGBT_API_KEY = "agbt_your_key_here"
10
45
  ```
11
46
 
12
47
  **macOS/Linux:**
13
48
  ```bash
14
- export ARCHITECTGBT_API_KEY=your_api_key_here
49
+ export ARCHITECTGBT_API_KEY=agbt_your_key_here
15
50
  ```
16
51
 
17
- ### 2. Configure Cursor IDE
18
-
19
- Create or edit `.cursor/mcp.json` in your project:
52
+ 4. **Configure Cursor** - Edit `.cursor/mcp.json`:
20
53
 
21
54
  ```json
22
55
  {
23
56
  "mcpServers": {
24
57
  "architectgbt": {
25
58
  "command": "npx",
26
- "args": ["-y", "architectgbt-mcp@0.2.0"]
59
+ "args": ["-y", "architectgbt-mcp@latest"],
60
+ "env": {
61
+ "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
62
+ }
27
63
  }
28
64
  }
29
65
  }
30
66
  ```
31
67
 
32
- ### 3. Restart Cursor
68
+ 5. **Restart Cursor**
69
+
70
+ 6. **Test it** - Ask Claude same questions as above
71
+
72
+ ✅ **Expected:** Unlimited recommendations, no daily limits
33
73
 
34
- Close and reopen Cursor IDE to load the MCP server with your API key.
74
+ ---
35
75
 
36
- ### 4. Test Commands
76
+ ## Test Commands
37
77
 
38
- #### Test 1: List Models
78
+ ### Test 1: List Models
39
79
  Ask Claude in Cursor:
40
80
  ```
41
81
  Show me all available AI models
42
82
  ```
43
83
 
44
- Expected: List of models with pricing
84
+ Expected: List of 50+ models with pricing
45
85
 
46
- #### Test 2: Get Recommendation
86
+ ### Test 2: Get Recommendation
47
87
  Ask Claude:
48
88
  ```
49
89
  Recommend an AI model for building a chatbot with 100k daily users and $500/month budget
50
90
  ```
51
91
 
52
- Expected: Top 3 model recommendations with cost breakdown
92
+ Expected: Top recommendations with cost breakdown
53
93
 
54
- #### Test 3: Get Template
94
+ ### Test 3: Get Template
55
95
  Ask Claude:
56
96
  ```
57
97
  Show me the Next.js SaaS template
@@ -59,66 +99,136 @@ Show me the Next.js SaaS template
59
99
 
60
100
  Expected: Template code and description
61
101
 
62
- ### 5. Verify Unlimited Access
102
+ ---
63
103
 
64
- With your API key set:
65
- - ✅ No rate limits (unlimited recommendations)
66
- - ✅ Usage tracked in your dashboard
67
- - ✅ `last_used_at` updates in Settings → API Keys
104
+ ## Verify Access Level
68
105
 
69
- ### 6. Test Without API Key
106
+ ### Anonymous/Free (No API Key)
107
+ - ✅ First 3 requests work
108
+ - ❌ 4th request shows rate limit error
109
+ - ✅ Resets after 24 hours
110
+ - ✅ No signup required
70
111
 
71
- Remove the environment variable:
72
- ```powershell
73
- Remove-Item Env:\ARCHITECTGBT_API_KEY
74
- ```
75
-
76
- Restart Cursor and try again:
77
- - ✅ First 3 requests work (anonymous tier)
78
- - ✅ 4th request shows rate limit error
112
+ ### Pro (With API Key)
113
+ - ✅ Unlimited requests
114
+ - ✅ No rate limits
115
+ - ✅ Usage tracked in dashboard
116
+ ---
79
117
 
80
118
  ## Troubleshooting
81
119
 
82
- ### API Key Not Working
120
+ ### Anonymous Not Working
83
121
 
84
- 1. **Check environment variable is set:**
122
+ **Common issue:** API key in config but not valid
123
+
124
+ **Solution:**
125
+ 1. Remove the `env` section from `.cursor/mcp.json`
126
+ 2. Use just: `"args": ["-y", "architectgbt-mcp@latest"]`
127
+ 3. Restart Cursor
128
+ 4. ✅ Should work with free tier (3/day)
129
+
130
+ ### API Key Not Working (Pro Users)
131
+
132
+ 1. **Check you've upgraded:**
133
+ - Free accounts cannot use API keys
134
+ - [Upgrade to Pro](https://architectgbt.com/pricing)
135
+
136
+ 2. **Verify environment variable:**
85
137
  ```powershell
86
138
  echo $env:ARCHITECTGBT_API_KEY
87
139
  ```
88
140
 
89
- 2. **Verify format:**
141
+ 3. **Check format:**
90
142
  - Must start with `agbt_`
91
143
  - Should be 37+ characters long
92
144
 
93
- 3. **Check Cursor loaded it:**
94
- - Restart Cursor after setting the variable
95
- - Check Cursor's MCP logs
145
+ 4. **Regenerate key:**
146
+ - Go to [Settings](https://architectgbt.com/dashboard/settings)
147
+ - Generate new key
148
+ - Update config
96
149
 
97
- ### MCP Server Not Found
150
+ ### MCP Server Not Loading
98
151
 
152
+ **Test directly:**
99
153
  ```powershell
100
- # Test MCP server directly
101
- npx -y architectgbt-mcp@0.2.0
154
+ npx -y architectgbt-mcp@latest
102
155
  ```
103
156
 
104
- ### Still Getting Rate Limited
157
+ **Common fixes:**
158
+ - Ensure Node.js >= 18.0.0
159
+ - Check internet connection
160
+ - Verify JSON syntax in config
161
+ - Restart Cursor after config changes
162
+ ## Troubleshooting
163
+
164
+ ### API Key Not Working
165
+
166
+ 1. **Check environment variable is set:**
167
+ ```powershell
168
+ echo $env:ARCHITECTGBT_API_KEY
169
+ ```
170
+
171
+ 2. **Verify format:**
172
+ - Must start with `agbt_`
173
+ - Should be 37+ characters long
174
+
175
+ ---
105
176
 
106
- - Verify API key is in environment variables
107
- - Check it matches the key in your dashboard
108
- - Ensure Cursor was restarted after setting the variable
177
+ ## Testing Checklist
109
178
 
110
- ## Production Testing Checklist
179
+ ### Anonymous Tier
180
+ - [ ] Works without signup
181
+ - [ ] Works without API key
182
+ - [ ] First 3 requests succeed
183
+ - [ ] 4th request shows rate limit
184
+ - [ ] Rate limit resets after 24 hours
185
+ - [ ] Error message shows upgrade path
111
186
 
112
- - [ ] Anonymous access works (3/day limit)
187
+ ### Pro Tier
188
+ - [ ] Requires Pro subscription
113
189
  - [ ] API key provides unlimited access
114
190
  - [ ] Usage count increments in dashboard
115
- - [ ] last_used_at updates after each request
116
- - [ ] Rate limit resets after 24 hours
117
- - [ ] All 3 tools work (list_models, get_ai_recommendation, get_template)
191
+ - [ ] `last_used_at` updates after requests
192
+ - [ ] All tools work (list_models, get_ai_recommendation, get_template)
193
+ - [ ] No rate limits
194
+
195
+ ### General
118
196
  - [ ] Error messages are user-friendly
119
- - [ ] MCP works in both Cursor and Claude Desktop
197
+ - [ ] Works in Cursor IDE
198
+ - [ ] Works in Claude Desktop
199
+ - [ ] Handles network errors gracefully
200
+
201
+ ---
202
+
203
+ ## API Endpoints Used
204
+
205
+ ### Anonymous (No API Key)
206
+ - **GET** `https://architectgbt.com/api/models` - Public endpoint
207
+ - **POST** `https://architectgbt.com/api/recommend/public` - Rate limited (3/day)
208
+
209
+ ### Pro (With API Key)
210
+ - **GET** `https://architectgbt.com/api/models` - Public endpoint
211
+ - **POST** `https://architectgbt.com/api/recommend` - Unlimited
212
+
213
+ **Headers sent:**
214
+ ```
215
+ Authorization: Bearer agbt_your_key_here
216
+ Content-Type: application/json
217
+ ```
218
+
219
+ ---
220
+
221
+ ## Next Steps
222
+
223
+ ### For Free Users
224
+ 1. Try anonymous tier (3/day)
225
+ 2. Sign up at [architectgbt.com](https://architectgbt.com) for web access (10/month)
226
+ 3. [Upgrade to Pro](https://architectgbt.com/pricing) when ready for unlimited
120
227
 
121
- ## API Endpoints Being Used
228
+ ### For Pro Users
229
+ 1. Monitor usage in [Settings → API Keys](https://architectgbt.com/dashboard/settings)
230
+ 2. Generate multiple keys for different projects (max 5)
231
+ 3. Share MCP setup with your team
122
232
 
123
233
  When using MCP with API key:
124
234
  - **GET** `https://architectgbt.com/api/models` - List models
@@ -34,7 +34,7 @@ export async function handleGetRecommendation(args) {
34
34
  const input = InputSchema.parse(args);
35
35
  try {
36
36
  // Determine which endpoint to use
37
- const endpoint = API_KEY ? `${API_BASE}/api/recommend` : `${API_BASE}/api/recommend/public`;
37
+ const endpoint = API_KEY ? `${API_BASE}/api/recommend` : `${API_BASE}/api/recommend/anonymous`;
38
38
  // Build headers
39
39
  const headers = {
40
40
  "Content-Type": "application/json",
@@ -1,8 +1,9 @@
1
1
  import { z } from "zod";
2
2
  import { templates } from "../templates/index.js";
3
+ const API_KEY = process.env.ARCHITECTGBT_API_KEY;
3
4
  export const getTemplateTool = {
4
5
  name: "get_code_template",
5
- description: "Get a production-ready code template for integrating a specific AI model. Returns working code with setup instructions.",
6
+ description: "Get production-ready code templates for integrating AI models (TypeScript & Python). Pro feature - requires API key. Free users: browse models unlimited, get 3 AI recommendations/day.",
6
7
  inputSchema: {
7
8
  type: "object",
8
9
  properties: {
@@ -25,6 +26,50 @@ const InputSchema = z.object({
25
26
  });
26
27
  export async function handleGetTemplate(args) {
27
28
  const input = InputSchema.parse(args);
29
+ // Check if user has API key (Pro tier)
30
+ if (!API_KEY) {
31
+ return {
32
+ content: [
33
+ {
34
+ type: "text",
35
+ text: `🔒 **Code Templates are a Pro Feature**
36
+
37
+ Production-ready code templates require an ArchitectGBT Pro subscription.
38
+
39
+ **What you get with Pro:**
40
+ ✅ All 12+ production code templates (TypeScript & Python)
41
+ ✅ Unlimited AI recommendations
42
+ ✅ One-click Vercel deploy
43
+ ✅ Cost calculator & optimization
44
+ ✅ Priority support (24h)
45
+
46
+ **Upgrade now:** https://architectgbt.com/pricing ($15/month)
47
+
48
+ **Already Pro?**
49
+ 1. Get your API key: https://architectgbt.com/dashboard/settings
50
+ 2. Add to your MCP config:
51
+ \`\`\`json
52
+ {
53
+ "mcpServers": {
54
+ "architectgbt": {
55
+ "command": "npx",
56
+ "args": ["-y", "architectgbt-mcp"],
57
+ "env": {
58
+ "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
59
+ }
60
+ }
61
+ }
62
+ }
63
+ \`\`\`
64
+ 3. Restart your IDE
65
+
66
+ **Free tier includes:**
67
+ ✅ Browse 50+ AI models (unlimited)
68
+ ✅ 3 AI recommendations/day (no signup needed)`,
69
+ },
70
+ ],
71
+ };
72
+ }
28
73
  const modelKey = input.model.toLowerCase();
29
74
  const lang = input.language;
30
75
  // Find matching template
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "architectgbt-mcp",
3
- "version": "0.2.4",
4
- "description": "Model Context Protocol server for ArchitectGBT - AI architecture recommendations",
3
+ "version": "0.4.0",
4
+ "description": "Model Context Protocol server for ArchitectGBT - AI model recommendations with zero-friction onboarding",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "architectgbt-mcp": "./dist/index.js"
@@ -41,7 +41,7 @@ export async function handleGetRecommendation(args: unknown) {
41
41
 
42
42
  try {
43
43
  // Determine which endpoint to use
44
- const endpoint = API_KEY ? `${API_BASE}/api/recommend` : `${API_BASE}/api/recommend/public`;
44
+ const endpoint = API_KEY ? `${API_BASE}/api/recommend` : `${API_BASE}/api/recommend/anonymous`;
45
45
 
46
46
  // Build headers
47
47
  const headers: HeadersInit = {
@@ -1,10 +1,12 @@
1
1
  import { z } from "zod";
2
2
  import { templates } from "../templates/index.js";
3
3
 
4
+ const API_KEY = process.env.ARCHITECTGBT_API_KEY;
5
+
4
6
  export const getTemplateTool = {
5
7
  name: "get_code_template",
6
8
  description:
7
- "Get a production-ready code template for integrating a specific AI model. Returns working code with setup instructions.",
9
+ "Get production-ready code templates for integrating AI models (TypeScript & Python). Pro feature - requires API key. Free users: browse models unlimited, get 3 AI recommendations/day.",
8
10
  inputSchema: {
9
11
  type: "object" as const,
10
12
  properties: {
@@ -31,6 +33,51 @@ const InputSchema = z.object({
31
33
  export async function handleGetTemplate(args: unknown) {
32
34
  const input = InputSchema.parse(args);
33
35
 
36
+ // Check if user has API key (Pro tier)
37
+ if (!API_KEY) {
38
+ return {
39
+ content: [
40
+ {
41
+ type: "text",
42
+ text: `🔒 **Code Templates are a Pro Feature**
43
+
44
+ Production-ready code templates require an ArchitectGBT Pro subscription.
45
+
46
+ **What you get with Pro:**
47
+ ✅ All 12+ production code templates (TypeScript & Python)
48
+ ✅ Unlimited AI recommendations
49
+ ✅ One-click Vercel deploy
50
+ ✅ Cost calculator & optimization
51
+ ✅ Priority support (24h)
52
+
53
+ **Upgrade now:** https://architectgbt.com/pricing ($15/month)
54
+
55
+ **Already Pro?**
56
+ 1. Get your API key: https://architectgbt.com/dashboard/settings
57
+ 2. Add to your MCP config:
58
+ \`\`\`json
59
+ {
60
+ "mcpServers": {
61
+ "architectgbt": {
62
+ "command": "npx",
63
+ "args": ["-y", "architectgbt-mcp"],
64
+ "env": {
65
+ "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
66
+ }
67
+ }
68
+ }
69
+ }
70
+ \`\`\`
71
+ 3. Restart your IDE
72
+
73
+ **Free tier includes:**
74
+ ✅ Browse 50+ AI models (unlimited)
75
+ ✅ 3 AI recommendations/day (no signup needed)`,
76
+ },
77
+ ],
78
+ };
79
+ }
80
+
34
81
  const modelKey = input.model.toLowerCase();
35
82
  const lang = input.language;
36
83