midas-mcp 5.43.2 → 5.43.5
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/dist/code-discovery.d.ts.map +1 -1
- package/dist/code-discovery.js +39 -2
- package/dist/code-discovery.js.map +1 -1
- package/dist/docs/INGREDIENTS.md +57 -17
- package/dist/file-index.d.ts +123 -0
- package/dist/file-index.d.ts.map +1 -0
- package/dist/file-index.js +430 -0
- package/dist/file-index.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +7 -2
- package/dist/server.js.map +1 -1
- package/dist/tools/completeness.d.ts.map +1 -1
- package/dist/tools/completeness.js +153 -24
- package/dist/tools/completeness.js.map +1 -1
- package/dist/tools/complexity.d.ts +91 -0
- package/dist/tools/complexity.d.ts.map +1 -0
- package/dist/tools/complexity.js +583 -0
- package/dist/tools/complexity.js.map +1 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -1
- package/docs/INGREDIENTS.md +57 -17
- package/package.json +1 -1
package/docs/INGREDIENTS.md
CHANGED
|
@@ -11,22 +11,37 @@ Every app needs these. Without them, nothing works.
|
|
|
11
11
|
### 1. Frontend
|
|
12
12
|
What users see and touch. UI, buttons, screens, interactions.
|
|
13
13
|
|
|
14
|
-
**
|
|
14
|
+
**Responsiveness:**
|
|
15
15
|
- [ ] Responsive design (mobile, tablet, desktop)
|
|
16
|
-
- [ ]
|
|
16
|
+
- [ ] Touch-friendly targets (44px minimum)
|
|
17
|
+
|
|
18
|
+
**User Feedback:**
|
|
17
19
|
- [ ] Loading states for async operations
|
|
18
20
|
- [ ] Error states with recovery options
|
|
21
|
+
- [ ] Success confirmations for actions
|
|
22
|
+
|
|
23
|
+
**Quality:**
|
|
24
|
+
- [ ] Accessibility basics (labels, contrast, keyboard nav)
|
|
19
25
|
- [ ] Consistent component patterns
|
|
26
|
+
- [ ] Form validation with clear error messages
|
|
20
27
|
|
|
21
28
|
### 2. Backend
|
|
22
29
|
Server logic, APIs, business rules.
|
|
23
30
|
|
|
24
|
-
**
|
|
25
|
-
- [ ] RESTful or GraphQL API
|
|
26
|
-
- [ ]
|
|
27
|
-
- [ ]
|
|
31
|
+
**API Structure:**
|
|
32
|
+
- [ ] RESTful or GraphQL API design
|
|
33
|
+
- [ ] Proper HTTP status codes (200, 201, 400, 401, 403, 404, 500)
|
|
34
|
+
- [ ] Consistent response format (envelope pattern or JSON:API)
|
|
35
|
+
|
|
36
|
+
**Input Handling:**
|
|
37
|
+
- [ ] Input validation on all endpoints (zod, yup, joi)
|
|
38
|
+
- [ ] Request body size limits
|
|
39
|
+
- [ ] File upload validation (type, size)
|
|
40
|
+
|
|
41
|
+
**Resilience:**
|
|
28
42
|
- [ ] Rate limiting on public endpoints
|
|
29
|
-
- [ ] Graceful error responses
|
|
43
|
+
- [ ] Graceful error responses (no stack traces in production)
|
|
44
|
+
- [ ] Request timeouts configured
|
|
30
45
|
|
|
31
46
|
### 3. Database
|
|
32
47
|
Where data lives and persists.
|
|
@@ -41,12 +56,20 @@ Where data lives and persists.
|
|
|
41
56
|
### 4. Authentication
|
|
42
57
|
Who users are, login/signup, permissions.
|
|
43
58
|
|
|
44
|
-
**
|
|
45
|
-
- [ ] Secure password hashing (bcrypt/argon2)
|
|
46
|
-
- [ ]
|
|
47
|
-
- [ ]
|
|
48
|
-
|
|
59
|
+
**Password Security:**
|
|
60
|
+
- [ ] Secure password hashing (bcrypt/argon2, never MD5/SHA1)
|
|
61
|
+
- [ ] Salt per password (automatic with bcrypt/argon2)
|
|
62
|
+
- [ ] Minimum password requirements enforced
|
|
63
|
+
|
|
64
|
+
**Session Management:**
|
|
65
|
+
- [ ] JWT or session tokens with expiration
|
|
49
66
|
- [ ] Secure cookie settings (httpOnly, secure, sameSite)
|
|
67
|
+
- [ ] Token refresh mechanism
|
|
68
|
+
|
|
69
|
+
**Account Protection:**
|
|
70
|
+
- [ ] Account lockout after failed attempts
|
|
71
|
+
- [ ] Password reset flow with expiring tokens
|
|
72
|
+
- [ ] Email verification on signup
|
|
50
73
|
|
|
51
74
|
---
|
|
52
75
|
|
|
@@ -103,12 +126,29 @@ Proving it works before shipping.
|
|
|
103
126
|
### 9. Security
|
|
104
127
|
Protection from attacks, data safety.
|
|
105
128
|
|
|
106
|
-
**
|
|
107
|
-
- [ ]
|
|
108
|
-
- [ ]
|
|
109
|
-
- [ ]
|
|
129
|
+
**API Protection:**
|
|
130
|
+
- [ ] Rate limiting on endpoints (express-rate-limit, etc.)
|
|
131
|
+
- [ ] Authorization headers required on protected routes
|
|
132
|
+
- [ ] IP block list for abuse prevention (public APIs)
|
|
133
|
+
- [ ] CORS configured properly (not wildcard in production)
|
|
134
|
+
- [ ] Security middleware enabled (helmet for Node.js)
|
|
135
|
+
- [ ] File upload limits set (size, type validation)
|
|
136
|
+
|
|
137
|
+
**Injection Prevention:**
|
|
138
|
+
- [ ] SQL injection prevention (ORM or parameterized queries)
|
|
139
|
+
- [ ] XSS prevention (output encoding, CSP headers)
|
|
140
|
+
- [ ] CSRF protection (tokens on state-changing requests)
|
|
141
|
+
- [ ] Input validation on frontend and backend (zod, yup, joi)
|
|
142
|
+
|
|
143
|
+
**Secrets Management:**
|
|
110
144
|
- [ ] Secrets not in code or logs
|
|
111
|
-
- [ ]
|
|
145
|
+
- [ ] Environment variables for all credentials
|
|
146
|
+
- [ ] API keys rotatable without deploy
|
|
147
|
+
|
|
148
|
+
**Dependencies:**
|
|
149
|
+
- [ ] Dependencies audited for vulnerabilities (npm audit)
|
|
150
|
+
- [ ] Lock file committed (package-lock.json)
|
|
151
|
+
- [ ] Automated security updates (Dependabot, Renovate)
|
|
112
152
|
|
|
113
153
|
### 10. Error Handling
|
|
114
154
|
Graceful failures, logging, recovery.
|