architectgbt-mcp 0.2.4 → 0.3.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
@@ -30,9 +42,14 @@ Get instant AI model recommendations for your projects directly in Cursor IDE or
30
42
 
31
43
  ## Installation
32
44
 
33
- ### Cursor IDE
45
+ ### Option 1: Anonymous (Free, No Setup)
46
+
47
+ **Works immediately** - no configuration, no API key, no signup:
48
+
49
+ #### Cursor IDE
34
50
 
35
51
  1. Create `.cursor/mcp.json` in your project:
52
+
36
53
  ```json
37
54
  {
38
55
  "mcpServers": {
@@ -45,17 +62,16 @@ Get instant AI model recommendations for your projects directly in Cursor IDE or
45
62
  ```
46
63
 
47
64
  2. Restart Cursor
65
+ 3. Ask Claude: "Recommend an AI model for my chatbot"
66
+ 4. ✅ **Works instantly** - 3 free recommendations/day
48
67
 
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
68
+ #### Claude Desktop
55
69
 
56
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
70
+ 1. **Open config:**
71
+ - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
72
+ - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
57
73
 
58
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
74
+ 2. **Add this:**
59
75
 
60
76
  ```json
61
77
  {
@@ -68,67 +84,128 @@ Get instant AI model recommendations for your projects directly in Cursor IDE or
68
84
  }
69
85
  ```
70
86
 
71
- ### VS Code (with Continue or other MCP extensions)
87
+ 3. Restart Claude Desktop
88
+ 4. ✅ **Works instantly** - 3 free recommendations/day
89
+
90
+ ---
72
91
 
73
- Install an MCP-compatible extension, then add to settings:
92
+ ### Option 2: Pro (Unlimited with API Key)
93
+
94
+ Want unlimited recommendations? [Upgrade to Pro](https://architectgbt.com/pricing) then:
95
+
96
+ #### Cursor IDE (Pro)
97
+
98
+ 1. Create `.cursor/mcp.json`:
74
99
 
75
100
  ```json
76
101
  {
77
- "mcp.servers": {
102
+ "mcpServers": {
78
103
  "architectgbt": {
79
104
  "command": "npx",
80
- "args": ["-y", "architectgbt-mcp@latest"]
105
+ "args": ["-y", "architectgbt-mcp@latest"],
106
+ "env": {
107
+ "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
108
+ }
81
109
  }
82
110
  }
83
111
  }
84
112
  ```
85
113
 
86
- ### Zed Editor
114
+ 2. Get API key from [Settings](https://architectgbt.com/dashboard/settings)
115
+ 3. Replace `agbt_your_key_here` with your key
116
+ 4. Restart Cursor
117
+ 5. ✅ **Unlimited recommendations**
87
118
 
88
- Add to `~/.config/zed/settings.json`:
119
+ #### Claude Desktop (Pro)
120
+
121
+ 1. **Open config:**
122
+ - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
123
+ - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
124
+
125
+ 2. **Edit the config:**
89
126
 
90
127
  ```json
91
128
  {
92
- "context_servers": {
129
+ "mcpServers": {
93
130
  "architectgbt": {
94
131
  "command": "npx",
95
- "args": ["-y", "architectgbt-mcp@latest"]
132
+ "args": ["-y", "architectgbt-mcp@latest"],
133
+ "env": {
134
+ "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
135
+ }
96
136
  }
97
137
  }
98
138
  }
99
139
  ```
100
140
 
101
- ### Any MCP-Compatible Client
141
+ 3. Get API key from [Settings](https://architectgbt.com/dashboard/settings)
142
+ 4. Replace `agbt_your_key_here` with your key
143
+ 5. Restart Claude Desktop
144
+ 6. ✅ **Unlimited recommendations**
102
145
 
103
- This server follows the [Model Context Protocol](https://modelcontextprotocol.io) standard and works with any MCP-compatible client. Run it via stdio:
146
+ 5. **Test it** - Look for 🔌 icon in bottom right, then ask:
147
+ - "Show me all available AI models"
104
148
 
105
- ```bash
106
- npx architectgbt-mcp@latest
107
- ```
149
+ ### VS Code (with Continue or other MCP extensions)
108
150
 
109
- ### With API Key (Unlimited Access)
151
+ ---
110
152
 
111
- Add your API key to any config above:
153
+ ### Other Editors
154
+
155
+ #### VS Code (with Continue extension)
112
156
 
113
157
  ```json
114
158
  {
115
- "mcpServers": {
159
+ "mcp.servers": {
116
160
  "architectgbt": {
117
161
  "command": "npx",
118
- "args": ["-y", "architectgbt-mcp@latest"],
119
- "env": {
120
- "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
121
- }
162
+ "args": ["-y", "architectgbt-mcp@latest"]
122
163
  }
123
164
  }
124
165
  }
125
166
  ```
126
167
 
127
- ## Pricing
168
+ **For unlimited:** Add `"env": { "ARCHITECTGBT_API_KEY": "agbt_your_key" }` and [upgrade to Pro](https://architectgbt.com/pricing).
169
+
170
+ #### Zed Editor
128
171
 
129
- | Tier | Recommendations | Cost | API Key |
130
- |------|----------------|------|---------|
131
- | **Free** | 3/day | $0 | Not needed |
172
+ Add to `~/.config/zed/settings.json`:
173
+
174
+ ```json
175
+ {
176
+ "context_servers": {
177
+ "architectgbt": {
178
+ "command": "npx",
179
+ "args": ["-y", "architectgbt-mcp@latest"]
180
+ }
181
+ }
182
+ }
183
+ ```
184
+
185
+ **For unlimited:** Add `"env": { "ARCHITECTGBT_API_KEY": "agbt_your_key" }` and [upgrade to Pro](https://architectgbt.com/pricing).
186
+ ```bash
187
+ npx architectgbt-mcp@latest
188
+ ```
189
+ MCP Access | Cost | Setup Required |
190
+ |------|-----------|------|---------------|
191
+ | **Anonymous** | 3/day | $0 | None - works instantly |
192
+ | **Free Account** | 3/day + 10/month web | $0 | Signup only (no API key) |
193
+ | **Pro** | Unlimited | $15-29/month | API key required |
194
+
195
+ ### Free Tier
196
+ - ✅ **No signup needed** - works immediately
197
+ - ✅ **3 recommendations/day** via MCP (IP-based)
198
+ - ✅ **No configuration** - just `npx -y architectgbt-mcp`
199
+ - 📈 Perfect for trying it out!
200
+
201
+ ### Pro Tier
202
+ - ✅ **Unlimited recommendations** (MCP + web app)
203
+ - ✅ **API key access** (up to 5 keys)
204
+ - ✅ **Priority support**
205
+ - ✅ **Advanced features**
206
+ - 💳 [$15-29/month →](https://architectgbt.com/pricing)
207
+
208
+ **Getting the free tier limit?** [Upgrade to Pro](https://architectgbt.com/pricing) for unlimited access.
132
209
  | **Pro** | Unlimited | $15/month | Required |
133
210
 
134
211
  [Get your API key →](https://architectgbt.com/dashboard/settings)
@@ -178,14 +255,31 @@ Perfect for customer support with fast responses, strong reasoning...
178
255
  • Extremely fast (sub-second)
179
256
  • Cost-effective at scale
180
257
  ...
181
- ```
182
258
 
183
- **Parameters:**
184
- - `prompt` (required): Your project description
185
- - `budget` (optional): "low" | "medium" | "high" | "unlimited"
186
- - `priority` (optional): "cost" | "speed" | "quality" | "balanced"
259
+ **Free tier:** You've used 3 free recommendations today.
260
+
261
+ **Options:**
262
+ 1. Wait for reset (resets every 24 hours)
263
+ 2. 📈 [Upgrade to Pro](https://architectgbt.com/pricing) for unlimited access
264
+
265
+ ### "API Key Invalid" (Pro users)
266
+
267
+ 1. Check key starts with `agbt_`
268
+ 2. Regenerate from [Settings](https://architectgbt.com/dashboard/settings)
269
+ 3. Make sure it's in the `env` section of your config
270
+ 4. Verify you're on a Pro plan
271
+
272
+ ### Not Working at All?
273
+
274
+ **First time user:**
275
+ - ✅ No API key needed for free tier
276
+ - ✅ Remove the `env` section from config if present
277
+ - ✅ Just use: `"args": ["-y", "architectgbt-mcp@latest"]`
187
278
 
188
- - `language` (required): "typescript" | "python"
279
+ **Pro user:**
280
+ - ❌ Check API key is valid
281
+ - ❌ Ensure you've upgraded to Pro at [architectgbt.com/pricing](https://architectgbt.com/pricing)
282
+ - ❌ Free accounts cannot use API keys
189
283
 
190
284
  ## Environment Variables
191
285
 
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",
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.3.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 = {