lumina-mcp 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) 2026 Wahyu-Labs
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 ADDED
@@ -0,0 +1,265 @@
1
+ <p align="center">
2
+ <h1 align="center">Lumina MCP</h1>
3
+ <p align="center">
4
+ <strong>Give your AI assistant real developer superpowers. Query databases, automate Git workflows, sync project tickets, and orchestrate full development cycles — all through natural language.</strong>
5
+ </p>
6
+ <p align="center">
7
+ <a href="https://lumina-mcp.vercel.app">Website</a> •
8
+ <a href="#quick-start">Quick Start</a> •
9
+ <a href="#tools--prompts">Tools & Prompts</a> •
10
+ <a href="#documentation">Documentation</a> •
11
+ <a href="CONTRIBUTING.md">Contributing</a> •
12
+ <a href="CHANGELOG.md">Changelog</a>
13
+ </p>
14
+ <p align="center">
15
+ <img alt="npm" src="https://img.shields.io/badge/npm-v1.0.6-6366f1?style=flat-square">
16
+ <img alt="node" src="https://img.shields.io/badge/node-%3E%3D22.0.0-6366f1?style=flat-square">
17
+ <img alt="license" src="https://img.shields.io/badge/license-MIT-6366f1?style=flat-square">
18
+ <a href="https://github.com/Wahyu-Labs/lumina-mcp/actions/workflows/lint-and-test.yml"><img alt="tests" src="https://github.com/Wahyu-Labs/lumina-mcp/actions/workflows/lint-and-test.yml/badge.svg"></a>
19
+ </p>
20
+ </p>
21
+
22
+ ---
23
+
24
+ ## Overview
25
+
26
+ **Lumina MCP** is a [Model Context Protocol](https://modelcontextprotocol.io) server that gives AI assistants (Antigravity IDE, Claude Code, Cursor, Codex, VS Code) direct access to your developer environment.
27
+
28
+ It acts as a secure bridge between your AI agent and the real tools developers use every day:
29
+
30
+ ```
31
+ You (natural language) → AI Client (MCP) → Lumina MCP Server
32
+
33
+ MySQL / PostgreSQL — GitHub — Jira / Trello / OpenProject
34
+ Schema inspection, Audit reports, Git commits, PR creation,
35
+ Ticket ingestion, Full dev cycle orchestration
36
+ ```
37
+
38
+ > **💡 Pro Tip:** Lumina MCP works out of the box with **any MCP-compatible AI client**. You only need to include environment variables for the tools you actually plan to use.
39
+
40
+ ---
41
+
42
+ ## Tools & Prompts
43
+
44
+ ### Database Tools (MySQL & PostgreSQL)
45
+
46
+ | Tool | MySQL | PostgreSQL | Description |
47
+ |------|:-----:|:----------:|-------------|
48
+ | `execute_mysql_query` / `execute_postgres_query` | ✅ | ✅ | Run read-only SQL queries via natural language |
49
+ | `list_mysql_tables` / `list_postgresql_tables` | ✅ | ✅ | List all tables in the target database |
50
+ | `inspect_mysql_table` / `inspect_postgresql_table` | ✅ | ✅ | Inspect columns, types, keys, nullability |
51
+ | `analyze_mysql_query` / `analyze_postgresql_query` | ✅ | ✅ | `EXPLAIN`/`EXPLAIN ANALYZE` with DBA-level verdict |
52
+ | `save_audit_report` / `save_audit_report_pg` | ✅ | ✅ | Persist AI-generated audit reports as Markdown |
53
+
54
+ **Database Prompts:**
55
+
56
+ | Prompt | Description |
57
+ |--------|-------------|
58
+ | `running_query` | Natural language → MySQL `SELECT` query with schema auto-detection |
59
+ | `auditor_query` | Full MySQL performance & security audit by a Principal DBA |
60
+ | `running_pg_query` | Natural language → PostgreSQL `SELECT` query with schema auto-detection |
61
+ | `auditor_pg_query` | Full PostgreSQL performance & security audit by a Principal DBA |
62
+
63
+ **Example Prompts:**
64
+ In your MCP client, you can use these prompts as slash commands:
65
+ ```bash
66
+ /running_query command="Run a query to find the top 5 customers with active status."
67
+ /auditor_query command="Analyze query performance for SELECT * FROM orders WHERE status = 'pending'"
68
+ /running_pg_query command="Show all tables in public schema."
69
+ /auditor_pg_query command="SELECT * FROM users"
70
+ ```
71
+
72
+ ---
73
+
74
+ ### Version Control Tools (GitHub)
75
+
76
+ | Tool | Description |
77
+ |------|-------------|
78
+ | `generate_commit_and_push` | Generate a Conventional Commit message, stage files, and push |
79
+ | `create_github_pr` | Create a GitHub Pull Request with auto-generated tech company-style description |
80
+ | `review_github_pr` | Submit a rigorous AI code review directly to a GitHub Pull Request |
81
+ | `fix_github_pr_review` | Fetch PR review comments and automatically apply fixes to the codebase |
82
+ | `get_github_pr_diff` | Download a clean unified diff of any open GitHub PR for automated review |
83
+ | `reply_to_pr_comment` | Reply to inline comments within a GitHub Pull Request review |
84
+ | `resolve_pr_review_thread` | Resolve a GitHub PR review thread by its comment node ID |
85
+
86
+ **Git Prompts:**
87
+
88
+ | Prompt | Description |
89
+ |--------|-------------|
90
+ | `commit_generator_message` | Conventional commit message generator with ticket/branch auto-detection |
91
+ | `tech_company_pr_creator` | Netflix/Meta/Google-style PR description generator |
92
+ | `ai_code_reviewer` | Senior Staff-level PR reviewer ([CRITICAL], [MAJOR], [MINOR], [NIT]) |
93
+ | `fix_pr_review_message` | Analyze review comments, apply fixes, and resolve threads automatically |
94
+
95
+ **Example Prompts:**
96
+ In your MCP client, you can use these prompts as slash commands:
97
+ ```bash
98
+ /commit_generator_message command="Stage my changes and generate a conventional commit message."
99
+ /tech_company_pr_creator command="Create a PR description from feat/auth into main."
100
+ /ai_code_reviewer command="Review PR #42 and approve it."
101
+ /fix_pr_review_message command="Resolve all review comments on PR #104."
102
+ ```
103
+
104
+ ---
105
+
106
+ ### Project Management Integration
107
+
108
+ | Tool | Description |
109
+ |------|-------------|
110
+ | `get_jira_ticket` | Fetch a Jira issue by ID/Key — includes title, description, labels, comments, epic |
111
+ | `get_trello_card` | Fetch a Trello card — includes description, status, checklist, comment history |
112
+ | `get_openproject_work_package` | Fetch an OpenProject work package — includes assignee, priority, and comments |
113
+
114
+ **PM Prompts:**
115
+
116
+ | Prompt | Description |
117
+ |--------|-------------|
118
+ | `pm_summarize_ticket` | Summarize a raw Jira/Trello/OpenProject ticket as a Senior Product Manager |
119
+ | `pm_brainstorm_plan` | Brainstorm technical approach and create a step-by-step implementation plan |
120
+ | `pm_test_catalog` | Generate a comprehensive test catalog based on the ticket and technical plan |
121
+
122
+ **Example Prompts:**
123
+ In your MCP client, you can use these prompts as slash commands:
124
+ ```bash
125
+ /pm_summarize_ticket command="Fetch Jira ticket LUM-402 and summarize it."
126
+ /pm_brainstorm_plan command="Download OpenProject work package #82 and create a technical plan."
127
+ /pm_test_catalog command="Get Trello card 64b19c and generate a test catalog."
128
+ ```
129
+
130
+ ---
131
+
132
+ ### Orchestration
133
+
134
+ | Tool | Description |
135
+ |------|-------------|
136
+ | `get_orchestration_phase` | Retrieve system-level instructions for a specific orchestration phase (1–6) |
137
+
138
+ **Orchestration Prompt:**
139
+
140
+ | Prompt | Description |
141
+ |--------|-------------|
142
+ | `lumina_orchestrate` | Kicks off the full Orchestration Development Cycle. Has optional arguments: `command` and `tokenBudget` |
143
+
144
+ The orchestration cycle follows **6 deterministic phases**:
145
+
146
+ | # | Phase | Description |
147
+ |---|-------|-------------|
148
+ | 1 | **Discovery & Analysis** | Fetches tickets, reads codebase, drafts requirements |
149
+ | 2 | **Technical Planning** | Creates a precise file-by-file implementation plan |
150
+ | 3 | **Execution & Implementation** | Implements code following the approved plan |
151
+ | 4 | **Iterative Code Review** | Multi-agent review loop for security & quality |
152
+ | 5 | **Verification & Compounding** | Runs tests, audits DB changes, records learnings |
153
+ | 6 | **Git Pull Request Release** | Conventional commit, push, and GitHub PR creation |
154
+
155
+ **Example Prompts:**
156
+ In your MCP client, you can use this prompt as a slash command:
157
+ ```bash
158
+ /lumina_orchestrate command="Build a new login page" tokenBudget="save-tokens"
159
+ /lumina_orchestrate command="Implement requirements from Jira ticket LUM-402" tokenBudget="full-detail"
160
+ ```
161
+
162
+ ---
163
+
164
+ ### Security
165
+
166
+ All database connections are **strictly read-only** with multiple enforcement layers:
167
+
168
+ - **Write blocking** — Blocks `INSERT`, `UPDATE`, `DELETE`, `DROP`, `ALTER`, `CREATE`, `TRUNCATE`
169
+ - **SQL injection detection** — Detects comments (`--`, `/*`), tautologies (`OR 1=1`), and `UNION SELECT`
170
+ - **Sensitive column filtering** — Auto-strips `password`, `token`, `secret`, `credential` from results
171
+ - **Configurable restrictions** — Extend blocked columns via `.lumina/database/restricColumn.json`
172
+
173
+ ---
174
+
175
+ ## Quick Start
176
+
177
+ Add this to your MCP client configuration (e.g. `mcp.json`, Cursor settings, Claude config):
178
+
179
+ ```json
180
+ {
181
+ "mcpServers": {
182
+ "lumina-mcp": {
183
+ "command": "npx",
184
+ "args": ["-y", "lumina-mcp"],
185
+ "env": {
186
+ "MYSQL_URL": "mysql://user:password@localhost:3306/db_name",
187
+ "POSTGRES_URL": "postgres://user:password@localhost:5432/db_name",
188
+ "GITHUB_TOKEN": "your-github-personal-access-token",
189
+ "JIRA_URL": "https://yourcompany.atlassian.net",
190
+ "JIRA_EMAIL": "your.email@company.com",
191
+ "JIRA_API_TOKEN": "your-jira-token",
192
+ "TRELLO_API_KEY": "your-trello-key",
193
+ "TRELLO_API_TOKEN": "your-trello-token",
194
+ "OPENPROJECT_URL": "https://openproject.yourcompany.com",
195
+ "OPENPROJECT_API_KEY": "your-openproject-key"
196
+ }
197
+ }
198
+ }
199
+ }
200
+ ```
201
+
202
+ > **You only need to include the environment variables for the integrations you use.** If you already have the official [Atlassian MCP](https://github.com/atlassian/mcp) or [GitHub MCP](https://github.com/github/mcp) installed, Lumina MCP will automatically use them as a fallback.
203
+
204
+ For detailed, client-specific installation guides (Antigravity IDE, Cursor, Claude Code, VS Code, Codex), visit **[lumina-mcp.vercel.app](https://lumina-mcp.vercel.app)**.
205
+
206
+ ---
207
+
208
+ ## Documentation
209
+
210
+ Detailed guides for every tool, prompt, parameter, and usage example:
211
+
212
+ | Guide | Description |
213
+ |-------|-------------|
214
+ | **[MySQL Prompts & Tools](documents/mysql-prompts.md)** | 5 MySQL tools, 2 prompts, security features, and examples |
215
+ | **[PostgreSQL Prompts & Tools](documents/postgresql-prompts.md)** | 5 PostgreSQL tools, 2 prompts, security features, and examples |
216
+ | **[GitHub Source Control](documents/github-prompts.md)** | 7 Git/GitHub tools, 4 prompts, and fallback strategy |
217
+ | **[Project Management Integration](documents/projectmanagement-prompts.md)** | 3 PM tools (Jira, Trello, OpenProject), 3 AI prompts |
218
+ | **[AI Orchestration](documents/orchestration-prompts.md)** | 6-Phase Orchestration Engine, native fallback strategy |
219
+
220
+ ---
221
+
222
+ ## Architecture
223
+
224
+ Lumina MCP follows a clean, layered architecture:
225
+
226
+ ```
227
+ src/
228
+ ├── index.ts # MCP server entry point
229
+ └── tools/
230
+ ├── database/
231
+ │ ├── mysql/
232
+ │ │ ├── controller/ # Tool & prompt registration
233
+ │ │ ├── service/ # Business logic & read-only validation
234
+ │ │ └── repository/ # Connection pool
235
+ │ └── postgresql/
236
+ │ ├── controller/
237
+ │ ├── service/
238
+ │ └── repository/
239
+ ├── github/ # Git & PR tools
240
+ ├── projectmanagement/ # Jira, Trello, OpenProject tools
241
+ └── orchestration/ # Phase-based orchestration engine
242
+ ```
243
+
244
+ ---
245
+
246
+ ## Testing
247
+
248
+ ```bash
249
+ npm test # Run all tests
250
+ npm run test:coverage # Run tests with coverage report
251
+ npm run lint # Lint the codebase
252
+ npm run format # Format the codebase
253
+ ```
254
+
255
+ ---
256
+
257
+ ## Contributing
258
+
259
+ We welcome contributions of all kinds! Please read **[CONTRIBUTING.md](CONTRIBUTING.md)** for guidelines on how to get started, coding standards, and the PR process.
260
+
261
+ ---
262
+
263
+ ## License
264
+
265
+ [MIT License](LICENSE)