architectgbt-mcp 0.2.3 → 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
@@ -28,11 +40,16 @@ Get instant AI model recommendations for your projects directly in Cursor IDE or
28
40
  - **Complete examples** with installation, env setup, and usage
29
41
  - **Best practices** including error handling and streaming
30
42
 
31
- ## Quick Start
43
+ ## Installation
44
+
45
+ ### Option 1: Anonymous (Free, No Setup)
32
46
 
33
- ### For Cursor IDE
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,150 @@ 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
67
+
68
+ #### Claude Desktop
69
+
70
+ 1. **Open config:**
71
+ - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
72
+ - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
73
+
74
+ 2. **Add this:**
75
+
76
+ ```json
77
+ {
78
+ "mcpServers": {
79
+ "architectgbt": {
80
+ "command": "npx",
81
+ "args": ["-y", "architectgbt-mcp@latest"]
82
+ }
83
+ }
84
+ }
85
+ ```
86
+
87
+ 3. Restart Claude Desktop
88
+ 4. ✅ **Works instantly** - 3 free recommendations/day
89
+
90
+ ---
91
+
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`:
99
+
100
+ ```json
101
+ {
102
+ "mcpServers": {
103
+ "architectgbt": {
104
+ "command": "npx",
105
+ "args": ["-y", "architectgbt-mcp@latest"],
106
+ "env": {
107
+ "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
108
+ }
109
+ }
110
+ }
111
+ }
112
+ ```
113
+
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**
118
+
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:**
126
+
127
+ ```json
128
+ {
129
+ "mcpServers": {
130
+ "architectgbt": {
131
+ "command": "npx",
132
+ "args": ["-y", "architectgbt-mcp@latest"],
133
+ "env": {
134
+ "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
135
+ }
136
+ }
137
+ }
138
+ }
139
+ ```
140
+
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**
48
145
 
49
- 3. Ask Claude:
50
- - "Recommend an AI model for a customer support chatbot"
146
+ 5. **Test it** - Look for 🔌 icon in bottom right, then ask:
51
147
  - "Show me all available AI models"
52
- - "Give me Claude Sonnet code in TypeScript"
53
148
 
54
- ## Pricing
149
+ ### VS Code (with Continue or other MCP extensions)
55
150
 
56
- | Tier | Recommendations | Cost | API Key |
57
- |------|----------------|------|---------|
58
- | **Free** | 3/day | $0 | Not needed |
151
+ ---
152
+
153
+ ### Other Editors
154
+
155
+ #### VS Code (with Continue extension)
156
+
157
+ ```json
158
+ {
159
+ "mcp.servers": {
160
+ "architectgbt": {
161
+ "command": "npx",
162
+ "args": ["-y", "architectgbt-mcp@latest"]
163
+ }
164
+ }
165
+ }
166
+ ```
167
+
168
+ **For unlimited:** Add `"env": { "ARCHITECTGBT_API_KEY": "agbt_your_key" }` and [upgrade to Pro](https://architectgbt.com/pricing).
169
+
170
+ #### Zed Editor
171
+
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.
59
209
  | **Pro** | Unlimited | $15/month | Required |
60
210
 
61
211
  [Get your API key →](https://architectgbt.com/dashboard/settings)
@@ -105,62 +255,31 @@ Perfect for customer support with fast responses, strong reasoning...
105
255
  • Extremely fast (sub-second)
106
256
  • Cost-effective at scale
107
257
  ...
108
- ```
109
-
110
- **Parameters:**
111
- - `prompt` (required): Your project description
112
- - `budget` (optional): "low" | "medium" | "high" | "unlimited"
113
- - `priority` (optional): "cost" | "speed" | "quality" | "balanced"
114
258
 
115
- ### `get_code_template`
116
- Get production-ready code templates.
259
+ **Free tier:** You've used 3 free recommendations today.
117
260
 
118
- **Parameters:**
119
- - `provider` (required): "anthropic" | "openai" | "google"
120
- - `language` (required): "typescript" | "python"
121
-
122
- ## Installation Options
123
-
124
- ### Option 1: Cursor IDE (Recommended)
125
-
126
- See Quick Start above.
261
+ **Options:**
262
+ 1. Wait for reset (resets every 24 hours)
263
+ 2. 📈 [Upgrade to Pro](https://architectgbt.com/pricing) for unlimited access
127
264
 
128
- ### Option 2: Claude Desktop
265
+ ### "API Key Invalid" (Pro users)
129
266
 
130
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
131
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
132
-
133
- ```json
134
- {
135
- "mcpServers": {
136
- "architectgbt": {
137
- "command": "npx",
138
- "args": ["-y", "architectgbt-mcp@latest"],
139
- "env": {
140
- "ARCHITECTGBT_API_KEY": "your_key_here"
141
- }
142
- }
143
- }
144
- }
145
- ```
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
146
271
 
147
- ### Option 3: Unlimited Access (API Key)
272
+ ### Not Working at All?
148
273
 
149
- Add your API key to `.cursor/mcp.json`:
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"]`
150
278
 
151
- ```json
152
- {
153
- "mcpServers": {
154
- "architectgbt": {
155
- "command": "npx",
156
- "args": ["-y", "architectgbt-mcp@latest"],
157
- "env": {
158
- "ARCHITECTGBT_API_KEY": "agbt_your_key_here"
159
- }
160
- }
161
- }
162
- }
163
- ```
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
164
283
 
165
284
  ## Environment Variables
166
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.3",
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 = {