midas-mcp 1.0.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.
Files changed (78) hide show
  1. package/README.md +167 -0
  2. package/dist/docs/CHEATSHEET.md +122 -0
  3. package/dist/docs/INGREDIENTS.md +173 -0
  4. package/dist/docs/METHODOLOGY.md +334 -0
  5. package/dist/docs/PROMPTS.md +347 -0
  6. package/dist/docs/SPEC.md +330 -0
  7. package/dist/docs/USER_RULES.md +90 -0
  8. package/dist/index.d.ts +3 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +15 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/prompts/development.d.ts +3 -0
  13. package/dist/prompts/development.d.ts.map +1 -0
  14. package/dist/prompts/development.js +90 -0
  15. package/dist/prompts/development.js.map +1 -0
  16. package/dist/prompts/index.d.ts +3 -0
  17. package/dist/prompts/index.d.ts.map +1 -0
  18. package/dist/prompts/index.js +11 -0
  19. package/dist/prompts/index.js.map +1 -0
  20. package/dist/prompts/research.d.ts +3 -0
  21. package/dist/prompts/research.d.ts.map +1 -0
  22. package/dist/prompts/research.js +56 -0
  23. package/dist/prompts/research.js.map +1 -0
  24. package/dist/prompts/review.d.ts +3 -0
  25. package/dist/prompts/review.d.ts.map +1 -0
  26. package/dist/prompts/review.js +76 -0
  27. package/dist/prompts/review.js.map +1 -0
  28. package/dist/prompts/session.d.ts +3 -0
  29. package/dist/prompts/session.d.ts.map +1 -0
  30. package/dist/prompts/session.js +35 -0
  31. package/dist/prompts/session.js.map +1 -0
  32. package/dist/resources/index.d.ts +3 -0
  33. package/dist/resources/index.d.ts.map +1 -0
  34. package/dist/resources/index.js +63 -0
  35. package/dist/resources/index.js.map +1 -0
  36. package/dist/server.d.ts +3 -0
  37. package/dist/server.d.ts.map +1 -0
  38. package/dist/server.js +65 -0
  39. package/dist/server.js.map +1 -0
  40. package/dist/state/phase.d.ts +32 -0
  41. package/dist/state/phase.d.ts.map +1 -0
  42. package/dist/state/phase.js +125 -0
  43. package/dist/state/phase.js.map +1 -0
  44. package/dist/tools/audit.d.ts +23 -0
  45. package/dist/tools/audit.d.ts.map +1 -0
  46. package/dist/tools/audit.js +212 -0
  47. package/dist/tools/audit.js.map +1 -0
  48. package/dist/tools/docs.d.ts +23 -0
  49. package/dist/tools/docs.d.ts.map +1 -0
  50. package/dist/tools/docs.js +66 -0
  51. package/dist/tools/docs.js.map +1 -0
  52. package/dist/tools/horizon.d.ts +20 -0
  53. package/dist/tools/horizon.d.ts.map +1 -0
  54. package/dist/tools/horizon.js +75 -0
  55. package/dist/tools/horizon.js.map +1 -0
  56. package/dist/tools/index.d.ts +7 -0
  57. package/dist/tools/index.d.ts.map +1 -0
  58. package/dist/tools/index.js +13 -0
  59. package/dist/tools/index.js.map +1 -0
  60. package/dist/tools/oneshot.d.ts +21 -0
  61. package/dist/tools/oneshot.d.ts.map +1 -0
  62. package/dist/tools/oneshot.js +27 -0
  63. package/dist/tools/oneshot.js.map +1 -0
  64. package/dist/tools/phase.d.ts +51 -0
  65. package/dist/tools/phase.d.ts.map +1 -0
  66. package/dist/tools/phase.js +152 -0
  67. package/dist/tools/phase.js.map +1 -0
  68. package/dist/tools/tornado.d.ts +20 -0
  69. package/dist/tools/tornado.d.ts.map +1 -0
  70. package/dist/tools/tornado.js +61 -0
  71. package/dist/tools/tornado.js.map +1 -0
  72. package/docs/CHEATSHEET.md +122 -0
  73. package/docs/INGREDIENTS.md +173 -0
  74. package/docs/METHODOLOGY.md +334 -0
  75. package/docs/PROMPTS.md +347 -0
  76. package/docs/SPEC.md +330 -0
  77. package/docs/USER_RULES.md +90 -0
  78. package/package.json +42 -0
package/README.md ADDED
@@ -0,0 +1,167 @@
1
+ # midas-mcp
2
+
3
+ **Everything you vibecode turns to gold.**
4
+
5
+ An MCP server that brings the Elite Vibecoding methodology into Cursor as an interactive coach. Guides users through the two-phase process, provides expert prompts, and audits projects against the 12 ingredients of production readiness.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install -g midas-mcp
11
+ ```
12
+
13
+ ## Cursor Configuration
14
+
15
+ Add to your Cursor settings (`~/.cursor/mcp.json`):
16
+
17
+ ```json
18
+ {
19
+ "mcpServers": {
20
+ "midas": {
21
+ "command": "npx",
22
+ "args": ["midas-mcp"]
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
28
+ ## What Midas Does
29
+
30
+ ### Phase Guidance
31
+
32
+ Midas tracks your current phase and guides you through:
33
+
34
+ **Phase 1: Eagle Sight (Pre-Build)**
35
+ ```
36
+ 💡 Idea → 🔍 Research → 🧠 Brainlift → 📋 PRD → 🗺️ Gameplan
37
+ ```
38
+
39
+ **Phase 2: Build (7-Step Process)**
40
+ ```
41
+ 1. User Rules → 2. Index Codebase → 3. Read Files → 4. Research
42
+ 5. Write Code + Tests → 6. Run Tests → 7. Log → Fix → Repeat
43
+ ```
44
+
45
+ ### Tools
46
+
47
+ | Tool | Description |
48
+ |------|-------------|
49
+ | `midas_start_project` | Initialize Eagle Sight, create docs folder structure |
50
+ | `midas_get_phase` | Get current phase and recommended next steps |
51
+ | `midas_set_phase` | Move to a specific phase |
52
+ | `midas_audit` | Score project against 12 ingredients |
53
+ | `midas_check_docs` | Verify brainlift/prd/gameplan completeness |
54
+ | `midas_oneshot` | Apply the Oneshot Paradigm for error recovery |
55
+ | `midas_tornado` | Trigger Research + Logs + Tests cycle |
56
+ | `midas_horizon` | Expand horizontal context for better output |
57
+
58
+ ### Prompts
59
+
60
+ Pre-built expert prompts you can invoke:
61
+
62
+ | Prompt | Purpose |
63
+ |--------|---------|
64
+ | `master_prompt` | Session initialization with full context loading |
65
+ | `execution_prompt` | Start building with TDD approach |
66
+ | `safe_refactor` | Move code safely between files |
67
+ | `bug_investigation` | Root cause analysis before fixing |
68
+ | `security_review` | Check for vulnerabilities |
69
+ | `feature_planning` | Plan before implementing |
70
+
71
+ ### Resources
72
+
73
+ Documentation available on demand:
74
+
75
+ - `midas://methodology` - Core philosophy
76
+ - `midas://eagle-sight` - Pre-build process
77
+ - `midas://process` - 7-step development loop
78
+ - `midas://oneshot` - Fix backward paradigm
79
+ - `midas://tornado` - Research + Logs + Tests
80
+ - `midas://horizon` - Horizontal vs vertical context
81
+ - `midas://ingredients/{1-12}` - Production guidelines
82
+ - `midas://cheatsheet` - Quick reference
83
+
84
+ ## The Three Principles
85
+
86
+ When you hit problems, Midas applies:
87
+
88
+ ### 1. Oneshot Paradigm
89
+ When things break, go back with error + context instead of patching forward.
90
+ ```
91
+ Original Prompt + Error Log + "Avoid this" = Working Solution
92
+ ```
93
+
94
+ ### 2. Tornado Building
95
+ Three forces spinning together solve any problem:
96
+ ```
97
+ Research + Logs + Tests = Solution
98
+ ```
99
+
100
+ ### 3. Horizon Thinking
101
+ AI thinks vertical (implementation). You provide horizontal (context).
102
+ ```
103
+ Wrong output? Widen your horizontal context.
104
+ ```
105
+
106
+ ## Usage Examples
107
+
108
+ ### Starting a New Project
109
+
110
+ ```
111
+ User: "I want to build a task management app"
112
+
113
+ Midas: Initiates Eagle Sight phase, creates docs folder,
114
+ guides through Brainlift → PRD → Gameplan
115
+ ```
116
+
117
+ ### When Stuck on a Bug
118
+
119
+ ```
120
+ User: "This keeps failing with the same error"
121
+
122
+ Midas: Detects repeated failures, suggests Oneshot approach,
123
+ helps construct enhanced prompt with error context
124
+ ```
125
+
126
+ ### Checking Production Readiness
127
+
128
+ ```
129
+ User: "Is my project ready to ship?"
130
+
131
+ Midas: Runs 12 ingredients audit, scores each category,
132
+ identifies gaps and provides remediation guidance
133
+ ```
134
+
135
+ ## The 12 Ingredients
136
+
137
+ Midas audits against:
138
+
139
+ | # | Ingredient | Category |
140
+ |---|------------|----------|
141
+ | 1 | Frontend | Core |
142
+ | 2 | Backend | Core |
143
+ | 3 | Database | Core |
144
+ | 4 | Authentication | Core |
145
+ | 5 | API Integrations | Power |
146
+ | 6 | State Management | Power |
147
+ | 7 | Design/UX | Power |
148
+ | 8 | Testing | Protection |
149
+ | 9 | Security | Protection |
150
+ | 10 | Error Handling | Protection |
151
+ | 11 | Version Control | Mastery |
152
+ | 12 | Deployment | Mastery |
153
+
154
+ **Completion levels:** 1-4 (functional), 1-8 (polished), 1-12 (production-ready)
155
+
156
+ ## Development
157
+
158
+ ```bash
159
+ cd midas-mcp
160
+ npm install
161
+ npm run build
162
+ npm run dev
163
+ ```
164
+
165
+ ## License
166
+
167
+ MIT
@@ -0,0 +1,122 @@
1
+ # Cheat Sheet
2
+
3
+ Quick reference for the vibecoding methodology.
4
+
5
+ ---
6
+
7
+ ## The Two Phases
8
+
9
+ **Phase 1: Eagle Sight (Pre-Build)**
10
+ ```
11
+ Idea → Research → Brainlift → PRD → Gameplan
12
+ ```
13
+
14
+ **Phase 2: Build (7-Step Process)**
15
+ ```
16
+ 1. User Rules → 2. Index Codebase → 3. Read Files → 4. Research
17
+ 5. Write Code + Tests → 6. Run Tests → 7. Log → Fix → Repeat
18
+ ```
19
+
20
+ ---
21
+
22
+ ## The Three Principles
23
+
24
+ **Oneshot Paradigm**
25
+ ```
26
+ When broken → STOP → Original prompt + error log → Works
27
+ 3 strikes = restart with full context
28
+ ```
29
+
30
+ **Tornado Building**
31
+ ```
32
+ Research + Logs + Tests = Solution
33
+ Each feeds the others until solved
34
+ ```
35
+
36
+ **Horizon Thinking**
37
+ ```
38
+ AI = Vertical (implementation)
39
+ You = Horizontal (context, patterns, constraints)
40
+ Wrong output? Widen your horizontal.
41
+ ```
42
+
43
+ ---
44
+
45
+ ## Key Prompts
46
+
47
+ **Session Start:**
48
+ ```
49
+ Read user rules. Ask clarifying questions. Make todos. Don't start yet.
50
+ ```
51
+
52
+ **Execution:**
53
+ ```
54
+ Continue todos. Write AND run tests. Commit when done.
55
+ ```
56
+
57
+ **When Stuck:**
58
+ ```
59
+ Research [topic]. Add logs at [points]. Write tests for [behavior].
60
+ ```
61
+
62
+ ---
63
+
64
+ ## The Prompt Formula
65
+
66
+ ```
67
+ PROMPT = CONTEXT + TASK + CONSTRAINTS + OUTPUT
68
+ ```
69
+
70
+ ---
71
+
72
+ ## Quick Fixes
73
+
74
+ | Problem | Solution |
75
+ |---------|----------|
76
+ | AI hallucinating | "Ask clarifying questions first" |
77
+ | Generic output | Add more horizontal context |
78
+ | Broken code | Oneshot: original + error + avoid |
79
+ | Stuck on bug | Spin the Tornado |
80
+ | Code doesn't fit | Check patterns to follow |
81
+
82
+ ---
83
+
84
+ ## AI Strengths
85
+
86
+ Let AI handle: boilerplate, types, tests, refactoring, docs, regex, SQL, CSS, API integrations
87
+
88
+ You control: architecture, security, business logic, performance, UX, code review, deployment
89
+
90
+ ---
91
+
92
+ ## Antipatterns
93
+
94
+ | Avoid | Instead |
95
+ |-------|---------|
96
+ | YOLO prompting | One feature at a time |
97
+ | Blind trust | Read and test everything |
98
+ | Context neglect | Complete context sandwich |
99
+ | Fix forward forever | Oneshot after 3 strikes |
100
+ | Security afterthought | Security from day 1 |
101
+ | No tests | Tests alongside code |
102
+
103
+ ---
104
+
105
+ ## Recovery Phrases
106
+
107
+ | Problem | Say |
108
+ |---------|-----|
109
+ | Wrong approach | "Let's try a different approach. What if we..." |
110
+ | Too complex | "Simplify this. Give me the minimal version." |
111
+ | Missing context | "Here's more context: [paste]" |
112
+ | Going in circles | "Let's step back. What's the core problem?" |
113
+
114
+ ---
115
+
116
+ ## Speed Tips
117
+
118
+ - Use `@file` references instead of pasting
119
+ - Batch similar operations
120
+ - Template reuse: "Follow the pattern in [file]"
121
+ - Stop mid-generation if you have enough (Esc)
122
+ - One clear ask per message
@@ -0,0 +1,173 @@
1
+ # The 12 Ingredients
2
+
3
+ Production readiness checklist for any application.
4
+
5
+ ---
6
+
7
+ ## Core Ingredients (1-4)
8
+
9
+ Every app needs these. Without them, nothing works.
10
+
11
+ ### 1. Frontend
12
+ What users see and touch. UI, buttons, screens, interactions.
13
+
14
+ **Checklist:**
15
+ - [ ] Responsive design (mobile, tablet, desktop)
16
+ - [ ] Accessibility basics (labels, contrast, keyboard nav)
17
+ - [ ] Loading states for async operations
18
+ - [ ] Error states with recovery options
19
+ - [ ] Consistent component patterns
20
+
21
+ ### 2. Backend
22
+ Server logic, APIs, business rules.
23
+
24
+ **Checklist:**
25
+ - [ ] RESTful or GraphQL API structure
26
+ - [ ] Input validation on all endpoints
27
+ - [ ] Proper HTTP status codes
28
+ - [ ] Rate limiting on public endpoints
29
+ - [ ] Graceful error responses
30
+
31
+ ### 3. Database
32
+ Where data lives and persists.
33
+
34
+ **Checklist:**
35
+ - [ ] Schema designed for access patterns
36
+ - [ ] Indexes on frequently queried fields
37
+ - [ ] Foreign key constraints where appropriate
38
+ - [ ] Backup strategy defined
39
+ - [ ] Migration system in place
40
+
41
+ ### 4. Authentication
42
+ Who users are, login/signup, permissions.
43
+
44
+ **Checklist:**
45
+ - [ ] Secure password hashing (bcrypt/argon2)
46
+ - [ ] Session/token management
47
+ - [ ] Password reset flow
48
+ - [ ] Account lockout after failed attempts
49
+ - [ ] Secure cookie settings (httpOnly, secure, sameSite)
50
+
51
+ ---
52
+
53
+ ## Power Ingredients (5-7)
54
+
55
+ These transform a basic app into something real.
56
+
57
+ ### 5. API Integrations
58
+ Connecting to external services.
59
+
60
+ **Checklist:**
61
+ - [ ] API keys stored securely (env vars)
62
+ - [ ] Retry logic with exponential backoff
63
+ - [ ] Timeout handling
64
+ - [ ] Circuit breakers for failing services
65
+ - [ ] Rate limit awareness
66
+
67
+ ### 6. State Management
68
+ How data flows through your app.
69
+
70
+ **Checklist:**
71
+ - [ ] Clear data flow pattern
72
+ - [ ] Loading/error/success states
73
+ - [ ] Optimistic updates where appropriate
74
+ - [ ] Cache invalidation strategy
75
+ - [ ] No prop drilling hell
76
+
77
+ ### 7. Design/UX
78
+ Making it beautiful and usable.
79
+
80
+ **Checklist:**
81
+ - [ ] Consistent visual language
82
+ - [ ] Clear user feedback for actions
83
+ - [ ] Intuitive navigation
84
+ - [ ] Empty states designed
85
+ - [ ] Mobile-first or responsive
86
+
87
+ ---
88
+
89
+ ## Protection Ingredients (8-10)
90
+
91
+ Without protection, your app is vulnerable.
92
+
93
+ ### 8. Testing
94
+ Proving it works before shipping.
95
+
96
+ **Checklist:**
97
+ - [ ] Unit tests for business logic
98
+ - [ ] Integration tests for API endpoints
99
+ - [ ] E2E tests for critical flows
100
+ - [ ] Tests run in CI before deploy
101
+ - [ ] Coverage on new code
102
+
103
+ ### 9. Security
104
+ Protection from attacks, data safety.
105
+
106
+ **Checklist:**
107
+ - [ ] SQL injection prevention (parameterized queries)
108
+ - [ ] XSS prevention (output encoding)
109
+ - [ ] CSRF protection
110
+ - [ ] Secrets not in code or logs
111
+ - [ ] Dependencies audited for vulnerabilities
112
+
113
+ ### 10. Error Handling
114
+ Graceful failures, logging, recovery.
115
+
116
+ **Checklist:**
117
+ - [ ] Try/catch on async operations
118
+ - [ ] User-friendly error messages
119
+ - [ ] Errors logged with context
120
+ - [ ] No sensitive data in error responses
121
+ - [ ] Recovery actions available
122
+
123
+ ---
124
+
125
+ ## Mastery Ingredients (11-12)
126
+
127
+ These separate hobby projects from professional software.
128
+
129
+ ### 11. Version Control
130
+ Git, tracking changes, collaboration.
131
+
132
+ **Checklist:**
133
+ - [ ] Meaningful commit messages
134
+ - [ ] Feature branches for development
135
+ - [ ] No secrets committed (ever)
136
+ - [ ] .gitignore comprehensive
137
+ - [ ] PR reviews before merge
138
+
139
+ ### 12. Deployment
140
+ CI/CD, hosting, getting it to users.
141
+
142
+ **Checklist:**
143
+ - [ ] Automated deployment pipeline
144
+ - [ ] Staging environment for testing
145
+ - [ ] Rollback capability
146
+ - [ ] Environment variables managed
147
+ - [ ] Health checks configured
148
+
149
+ ---
150
+
151
+ ## Audit Scoring
152
+
153
+ When Midas audits a project:
154
+
155
+ | Score | Meaning |
156
+ |-------|---------|
157
+ | 1-4 complete | Functional - it works |
158
+ | 5-7 complete | Integrated - it connects |
159
+ | 8-10 complete | Protected - it's safe |
160
+ | 11-12 complete | Professional - it ships |
161
+
162
+ **All 12 = Production Ready**
163
+
164
+ ---
165
+
166
+ ## Quick Audit Questions
167
+
168
+ For each ingredient, ask:
169
+
170
+ 1. **Does it exist?** (binary)
171
+ 2. **Does it work correctly?** (functional)
172
+ 3. **Is it complete?** (coverage)
173
+ 4. **Is it maintainable?** (quality)