@stacksfinder/mcp-server 1.0.2 → 1.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 StacksFinder
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,262 +1,325 @@
1
- # @stacksfinder/mcp-server
2
-
3
- [![npm version](https://img.shields.io/npm/v/@stacksfinder/mcp-server.svg)](https://www.npmjs.com/package/@stacksfinder/mcp-server)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
5
-
6
- MCP (Model Context Protocol) server that brings **deterministic tech stack recommendations** to LLM clients like Claude, Cursor, Windsurf, and other MCP-compatible tools.
7
-
8
- **Try it free** — 4 tools work without an account, including a daily demo recommendation.
9
-
10
- ## Quick Start
11
-
12
- ### Claude Code (CLI)
13
-
14
- ```bash
15
- # Add to Claude Code
16
- claude mcp add stacksfinder npx -y @stacksfinder/mcp-server
17
-
18
- # With API key for full features
19
- claude mcp add-json stacksfinder '{
20
- "command": "npx",
21
- "args": ["-y", "@stacksfinder/mcp-server"],
22
- "env": {"STACKSFINDER_API_KEY": "sk_live_xxx"}
23
- }'
24
- ```
25
-
26
- ### Claude Desktop
27
-
28
- Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
29
-
30
- ```json
31
- {
32
- "mcpServers": {
33
- "stacksfinder": {
34
- "command": "npx",
35
- "args": ["-y", "@stacksfinder/mcp-server"],
36
- "env": {
37
- "STACKSFINDER_API_KEY": "sk_live_xxx"
38
- }
39
- }
40
- }
41
- }
42
- ```
43
-
44
- ### Cursor / Windsurf
45
-
46
- Add to `.cursor/mcp.json` or `.windsurf/mcp.json` in your project root:
47
-
48
- ```json
49
- {
50
- "mcpServers": {
51
- "stacksfinder": {
52
- "command": "npx",
53
- "args": ["-y", "@stacksfinder/mcp-server"],
54
- "env": {
55
- "STACKSFINDER_API_KEY": "sk_live_xxx"
56
- }
57
- }
58
- }
59
- }
60
- ```
61
-
62
- ### VS Code + Copilot
63
-
64
- Add to `.vscode/mcp.json`:
65
-
66
- ```json
67
- {
68
- "servers": {
69
- "stacksfinder": {
70
- "command": "npx",
71
- "args": ["-y", "@stacksfinder/mcp-server"],
72
- "env": {
73
- "STACKSFINDER_API_KEY": "sk_live_xxx"
74
- }
75
- }
76
- }
77
- }
78
- ```
79
-
80
- ## Available Tools
81
-
82
- ### Free Tools (no account required)
83
-
84
- | Tool | Description |
85
- |------|-------------|
86
- | `list_technologies` | List all 30+ tech IDs by category |
87
- | `analyze_tech` | 6-dimension scores, strengths, weaknesses, compatible techs |
88
- | `compare_techs` | Side-by-side comparison of 2-4 technologies |
89
- | `recommend_stack` | **FREE 1x/day** — Full stack recommendation for any project type |
90
-
91
- ### Pro Tools (requires API key)
92
-
93
- | Tool | Description |
94
- |------|-------------|
95
- | `recommend_stack` | Unlimited recommendations with priorities & constraints |
96
- | `get_blueprint` | Fetch existing blueprint by ID |
97
- | `create_blueprint` | Generate new blueprint with AI narrative |
98
- | `setup_api_key` | Authenticate and create API key from MCP |
99
- | `list_api_keys` | List your API keys |
100
- | `revoke_api_key` | Revoke an API key |
101
-
102
- Get your API key at [stacksfinder.com/pricing](https://stacksfinder.com/pricing)
103
-
104
- ## Tool Examples
105
-
106
- ### list_technologies
107
-
108
- ```
109
- > list_technologies category="database"
110
-
111
- Available databases:
112
- - postgres (PostgreSQL)
113
- - sqlite (SQLite)
114
- - supabase (Supabase)
115
- - planetscale (PlanetScale)
116
- - turso (Turso)
117
- - neon (Neon)
118
- ```
119
-
120
- ### analyze_tech
121
-
122
- ```
123
- > analyze_tech technology="sveltekit" context="mvp"
124
-
125
- ## SvelteKit Analysis (MVP Context)
126
-
127
- | Dimension | Score | Grade |
128
- |-----------|-------|-------|
129
- | Performance | 92 | A |
130
- | DX | 88 | A |
131
- | Ecosystem | 72 | B |
132
- | Maintainability | 85 | A |
133
- | Cost | 90 | A |
134
- | Compliance | 75 | B |
135
-
136
- **Overall: 84/100 (A)**
137
-
138
- Strengths:
139
- - Compiler-first architecture, tiny bundles
140
- - Excellent TypeScript support
141
- - Built-in SSR, SSG, and edge rendering
142
-
143
- Weaknesses:
144
- - Smaller ecosystem than React
145
- - Fewer enterprise case studies
146
- ```
147
-
148
- ### compare_techs
149
-
150
- ```
151
- > compare_techs technologies=["nextjs", "sveltekit", "nuxt"]
152
-
153
- ## Comparison: Next.js vs SvelteKit vs Nuxt
154
-
155
- | Tech | Score | Grade |
156
- |------|-------|-------|
157
- | Next.js | 82 | A |
158
- | SvelteKit | 84 | A |
159
- | Nuxt | 79 | B |
160
-
161
- Per-dimension winners:
162
- - Performance: SvelteKit (+10)
163
- - DX: SvelteKit (+3)
164
- - Ecosystem: Next.js (+15)
165
- ```
166
-
167
- ### recommend_stack (Free Demo)
168
-
169
- ```
170
- > recommend_stack projectType="saas" scale="mvp"
171
-
172
- ## Recommended Stack for SaaS (MVP)
173
-
174
- | Category | Technology | Score | Grade |
175
- |----------|------------|-------|-------|
176
- | meta-framework | SvelteKit | 84 | A |
177
- | database | Supabase | 82 | A |
178
- | orm | Drizzle | 86 | A |
179
- | auth | Better Auth | 80 | A |
180
- | hosting | Vercel | 85 | A |
181
- | payments | Paddle | 86 | A |
182
-
183
- **Confidence**: medium (demo mode)
184
-
185
- ---
186
- Want more? Upgrade to Pro for custom priorities, constraints, and AI narratives.
187
- ```
188
-
189
- ## Environment Variables
190
-
191
- | Variable | Required | Default | Description |
192
- |----------|----------|---------|-------------|
193
- | `STACKSFINDER_API_KEY` | For Pro tools | - | API key from stacksfinder.com |
194
- | `STACKSFINDER_API_URL` | No | `https://stacksfinder.com` | API base URL |
195
- | `STACKSFINDER_MCP_DEBUG` | No | `false` | Enable debug logging |
196
-
197
- ## Score Dimensions
198
-
199
- All technology scores are measured across 6 dimensions (0-100):
200
-
201
- | Dimension | Description |
202
- |-----------|-------------|
203
- | **Performance** | Runtime speed, bundle size, optimization potential |
204
- | **DX** | Learning curve, tooling, documentation quality |
205
- | **Ecosystem** | Community size, integrations, job market |
206
- | **Maintainability** | Long-term code health, upgrade path |
207
- | **Cost** | Hosting costs, licensing, operational overhead |
208
- | **Compliance** | Security features, audit readiness |
209
-
210
- ## Contexts
211
-
212
- Scores vary by project context:
213
-
214
- - **default**: General-purpose scores
215
- - **mvp**: Optimized for speed-to-market, lower cost
216
- - **enterprise**: Emphasizes compliance, maintainability, support
217
-
218
- ## Error Handling
219
-
220
- Structured errors with suggestions:
221
-
222
- ```
223
- **Error (TECH_NOT_FOUND)**: Technology "nexjs" not found.
224
- **Suggestions**: nextjs, nuxt, nestjs
225
- ```
226
-
227
- ## Troubleshooting
228
-
229
- ### Debug mode
230
-
231
- ```bash
232
- STACKSFINDER_MCP_DEBUG=true npx @stacksfinder/mcp-server
233
- ```
234
-
235
- ### Common issues
236
-
237
- | Issue | Solution |
238
- |-------|----------|
239
- | "API key required" | Get key at [stacksfinder.com/pricing](https://stacksfinder.com/pricing) |
240
- | "Daily limit reached" | Wait 24h or upgrade to Pro |
241
- | "Technology not found" | Use `list_technologies` to see valid IDs |
242
-
243
- ## Development
244
-
245
- ```bash
246
- cd packages/mcp-server
247
- bun install
248
- bun run build
249
- bun run dev # Watch mode
250
- bun test # Run tests
251
- ```
252
-
253
- ## Links
254
-
255
- - **Website**: [stacksfinder.com](https://stacksfinder.com)
256
- - **Pricing**: [stacksfinder.com/pricing](https://stacksfinder.com/pricing)
257
- - **GitHub**: [github.com/hoklims/stacksfinder-mcp](https://github.com/hoklims/stacksfinder-mcp)
258
- - **npm**: [@stacksfinder/mcp-server](https://www.npmjs.com/package/@stacksfinder/mcp-server)
259
-
260
- ## License
261
-
262
- MIT
1
+ # @stacksfinder/mcp-server
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@stacksfinder/mcp-server.svg)](https://www.npmjs.com/package/@stacksfinder/mcp-server)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ MCP (Model Context Protocol) server that brings **deterministic tech stack recommendations** to LLM clients like Claude, Cursor, Windsurf, and other MCP-compatible tools.
7
+
8
+ **Try it free** — 4 tools work without an account, including a daily demo recommendation.
9
+
10
+ ## Quick Start
11
+
12
+ ### Claude Code (CLI)
13
+
14
+ ```bash
15
+ # Add to Claude Code
16
+ claude mcp add stacksfinder npx -y @stacksfinder/mcp-server
17
+
18
+ # With API key for full features
19
+ claude mcp add-json stacksfinder '{
20
+ "command": "npx",
21
+ "args": ["-y", "@stacksfinder/mcp-server"],
22
+ "env": {"STACKSFINDER_API_KEY": "sk_live_xxx"}
23
+ }'
24
+ ```
25
+
26
+ ### Claude Desktop
27
+
28
+ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
29
+
30
+ ```json
31
+ {
32
+ "mcpServers": {
33
+ "stacksfinder": {
34
+ "command": "npx",
35
+ "args": ["-y", "@stacksfinder/mcp-server"],
36
+ "env": {
37
+ "STACKSFINDER_API_KEY": "sk_live_xxx"
38
+ }
39
+ }
40
+ }
41
+ }
42
+ ```
43
+
44
+ ### Cursor / Windsurf
45
+
46
+ Add to `.cursor/mcp.json` or `.windsurf/mcp.json` in your project root:
47
+
48
+ ```json
49
+ {
50
+ "mcpServers": {
51
+ "stacksfinder": {
52
+ "command": "npx",
53
+ "args": ["-y", "@stacksfinder/mcp-server"],
54
+ "env": {
55
+ "STACKSFINDER_API_KEY": "sk_live_xxx"
56
+ }
57
+ }
58
+ }
59
+ }
60
+ ```
61
+
62
+ ### VS Code + Copilot
63
+
64
+ Add to `.vscode/mcp.json`:
65
+
66
+ ```json
67
+ {
68
+ "servers": {
69
+ "stacksfinder": {
70
+ "command": "npx",
71
+ "args": ["-y", "@stacksfinder/mcp-server"],
72
+ "env": {
73
+ "STACKSFINDER_API_KEY": "sk_live_xxx"
74
+ }
75
+ }
76
+ }
77
+ }
78
+ ```
79
+
80
+ ## Available Tools
81
+
82
+ ### Free Tools (no account required)
83
+
84
+ | Tool | Description |
85
+ |------|-------------|
86
+ | `list_technologies` | List all 30+ tech IDs by category |
87
+ | `analyze_tech` | 6-dimension scores, strengths, weaknesses, compatible techs |
88
+ | `compare_techs` | Side-by-side comparison of 2-4 technologies |
89
+ | `recommend_stack` | **FREE 1x/day** — Full stack recommendation for any project type |
90
+
91
+ ### Pro Tools (requires API key)
92
+
93
+ | Tool | Description |
94
+ |------|-------------|
95
+ | `recommend_stack` | Unlimited recommendations with priorities & constraints |
96
+ | `get_blueprint` | Fetch existing blueprint by ID |
97
+ | `create_blueprint` | Generate new blueprint with AI narrative |
98
+ | `setup_api_key` | Authenticate and create API key from MCP |
99
+ | `list_api_keys` | List your API keys |
100
+ | `revoke_api_key` | Revoke an API key |
101
+
102
+ ### Audit Tools (requires API key) 🆕
103
+
104
+ | Tool | Description |
105
+ |------|-------------|
106
+ | `create_audit` | Run technical debt audit on your stack |
107
+ | `get_audit` | Fetch audit report by ID |
108
+ | `list_audits` | List your audit reports |
109
+ | `compare_audits` | Compare two audits to track progress |
110
+ | `get_audit_quota` | Check your remaining audit quota |
111
+ | `get_migration_recommendation` | **NEW** Analyze audit for migration opportunities with builder constraints |
112
+
113
+ Get your API key at [stacksfinder.com/pricing](https://stacksfinder.com/pricing)
114
+
115
+ ## Tool Examples
116
+
117
+ ### list_technologies
118
+
119
+ ```
120
+ > list_technologies category="database"
121
+
122
+ Available databases:
123
+ - postgres (PostgreSQL)
124
+ - sqlite (SQLite)
125
+ - supabase (Supabase)
126
+ - planetscale (PlanetScale)
127
+ - turso (Turso)
128
+ - neon (Neon)
129
+ ```
130
+
131
+ ### analyze_tech
132
+
133
+ ```
134
+ > analyze_tech technology="sveltekit" context="mvp"
135
+
136
+ ## SvelteKit Analysis (MVP Context)
137
+
138
+ | Dimension | Score | Grade |
139
+ |-----------|-------|-------|
140
+ | Performance | 92 | A |
141
+ | DX | 88 | A |
142
+ | Ecosystem | 72 | B |
143
+ | Maintainability | 85 | A |
144
+ | Cost | 90 | A |
145
+ | Compliance | 75 | B |
146
+
147
+ **Overall: 84/100 (A)**
148
+
149
+ Strengths:
150
+ - Compiler-first architecture, tiny bundles
151
+ - Excellent TypeScript support
152
+ - Built-in SSR, SSG, and edge rendering
153
+
154
+ Weaknesses:
155
+ - Smaller ecosystem than React
156
+ - Fewer enterprise case studies
157
+ ```
158
+
159
+ ### compare_techs
160
+
161
+ ```
162
+ > compare_techs technologies=["nextjs", "sveltekit", "nuxt"]
163
+
164
+ ## Comparison: Next.js vs SvelteKit vs Nuxt
165
+
166
+ | Tech | Score | Grade |
167
+ |------|-------|-------|
168
+ | Next.js | 82 | A |
169
+ | SvelteKit | 84 | A |
170
+ | Nuxt | 79 | B |
171
+
172
+ Per-dimension winners:
173
+ - Performance: SvelteKit (+10)
174
+ - DX: SvelteKit (+3)
175
+ - Ecosystem: Next.js (+15)
176
+ ```
177
+
178
+ ### recommend_stack (Free Demo)
179
+
180
+ ```
181
+ > recommend_stack projectType="saas" scale="mvp"
182
+
183
+ ## Recommended Stack for SaaS (MVP)
184
+
185
+ | Category | Technology | Score | Grade |
186
+ |----------|------------|-------|-------|
187
+ | meta-framework | SvelteKit | 84 | A |
188
+ | database | Supabase | 82 | A |
189
+ | orm | Drizzle | 86 | A |
190
+ | auth | Better Auth | 80 | A |
191
+ | hosting | Vercel | 85 | A |
192
+ | payments | Paddle | 86 | A |
193
+
194
+ **Confidence**: medium (demo mode)
195
+
196
+ ---
197
+ Want more? Upgrade to Pro for custom priorities, constraints, and AI narratives.
198
+ ```
199
+
200
+ ### create_audit (Pro)
201
+
202
+ ```
203
+ > create_audit name="Q1 2026 Review" technologies=[{name:"react",version:"18.2.0"},{name:"lodash",version:"4.17.20"},{name:"express",version:"4.17.0"}]
204
+
205
+ ## Audit Report: Q1 2026 Review
206
+
207
+ **Health Score: 72/100** ⚠️
208
+
209
+ | Severity | Count |
210
+ |----------|-------|
211
+ | 🔴 Critical | 2 |
212
+ | 🟠 High | 1 |
213
+ | 🟡 Medium | 3 |
214
+ | 🟢 Low | 2 |
215
+ | ℹ️ Info | 5 |
216
+
217
+ ### Critical Findings
218
+
219
+ **🔴 Security vulnerability in lodash** (lodash 4.17.20)
220
+ CVE-2021-23337 - Prototype pollution vulnerability
221
+ → Upgrade to lodash 4.17.21 or later
222
+
223
+ **🔴 Outdated Express version** (express 4.17.0)
224
+ Express 4.17.0 is missing security patches
225
+ → Upgrade to express 4.21+ for security fixes
226
+ ```
227
+
228
+ ### compare_audits (Pro)
229
+
230
+ ```
231
+ > compare_audits baseAuditId="uuid-jan" compareAuditId="uuid-mar"
232
+
233
+ ## Audit Comparison
234
+
235
+ **Trend: 📈 Improving** (+16 health score)
236
+
237
+ | Metric | January | March |
238
+ |--------|---------|-------|
239
+ | Health Score | 62 | 78 |
240
+ | Critical | 4 | 1 |
241
+ | High | 6 | 3 |
242
+
243
+ ### Resolved Issues (6)
244
+ - ✅ Critical: lodash vulnerability
245
+ - ✅ High: moment.js deprecation
246
+ - ✅ High: outdated Node version
247
+ ```
248
+
249
+ ## Environment Variables
250
+
251
+ | Variable | Required | Default | Description |
252
+ |----------|----------|---------|-------------|
253
+ | `STACKSFINDER_API_KEY` | For Pro tools | - | API key from stacksfinder.com |
254
+ | `STACKSFINDER_API_URL` | No | `https://stacksfinder.com` | API base URL |
255
+ | `STACKSFINDER_MCP_DEBUG` | No | `false` | Enable debug logging |
256
+
257
+ ## Score Dimensions
258
+
259
+ All technology scores are measured across 6 dimensions (0-100):
260
+
261
+ | Dimension | Description |
262
+ |-----------|-------------|
263
+ | **Performance** | Runtime speed, bundle size, optimization potential |
264
+ | **DX** | Learning curve, tooling, documentation quality |
265
+ | **Ecosystem** | Community size, integrations, job market |
266
+ | **Maintainability** | Long-term code health, upgrade path |
267
+ | **Cost** | Hosting costs, licensing, operational overhead |
268
+ | **Compliance** | Security features, audit readiness |
269
+
270
+ ## Contexts
271
+
272
+ Scores vary by project context:
273
+
274
+ - **default**: General-purpose scores
275
+ - **mvp**: Optimized for speed-to-market, lower cost
276
+ - **enterprise**: Emphasizes compliance, maintainability, support
277
+
278
+ ## Error Handling
279
+
280
+ Structured errors with suggestions:
281
+
282
+ ```
283
+ **Error (TECH_NOT_FOUND)**: Technology "nexjs" not found.
284
+ **Suggestions**: nextjs, nuxt, nestjs
285
+ ```
286
+
287
+ ## Troubleshooting
288
+
289
+ ### Debug mode
290
+
291
+ ```bash
292
+ STACKSFINDER_MCP_DEBUG=true npx @stacksfinder/mcp-server
293
+ ```
294
+
295
+ ### Common issues
296
+
297
+ | Issue | Solution |
298
+ |-------|----------|
299
+ | "API key required" | Get key at [stacksfinder.com/pricing](https://stacksfinder.com/pricing) |
300
+ | "Daily limit reached" | Wait 24h or upgrade to Pro |
301
+ | "Technology not found" | Use `list_technologies` to see valid IDs |
302
+
303
+ ## Development
304
+
305
+ ```bash
306
+ cd packages/mcp-server
307
+ bun install
308
+ bun run build
309
+ bun run dev # Watch mode
310
+ bun test # Run tests
311
+ ```
312
+
313
+ ## Links
314
+
315
+ - **Website**: [stacksfinder.com](https://stacksfinder.com)
316
+ - **Pricing**: [stacksfinder.com/pricing](https://stacksfinder.com/pricing)
317
+ - **Discord**: [discord.gg/scBHF2EumC](https://discord.gg/scBHF2EumC)
318
+ - **Glama**: [glama.ai/mcp/servers/@stacksfinder/mcp-server](https://glama.ai/mcp/servers/@stacksfinder/mcp-server)
319
+ - **Smithery**: [smithery.ai/server/hoklims/stacksfinder-mcp](https://smithery.ai/server/hoklims/stacksfinder-mcp)
320
+ - **GitHub**: [github.com/hoklims/stacksfinder-mcp](https://github.com/hoklims/stacksfinder-mcp)
321
+ - **npm**: [@stacksfinder/mcp-server](https://www.npmjs.com/package/@stacksfinder/mcp-server)
322
+
323
+ ## License
324
+
325
+ MIT
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAiCpE;;GAEG;AACH,wBAAgB,YAAY,IAAI,SAAS,CAuSxC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAoDpE;;GAEG;AACH,wBAAgB,YAAY,IAAI,SAAS,CAmbxC"}