devenv-mcp 0.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 +21 -0
- package/README.md +210 -0
- package/dist/index.js +9508 -0
- package/package.json +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Paul Lin
|
|
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,210 @@
|
|
|
1
|
+
# DevEnv MCP Server
|
|
2
|
+
|
|
3
|
+
Instant infrastructure from your IDE. No dashboards. No copy-pasting tokens. **Never leave your CLI.**
|
|
4
|
+
|
|
5
|
+
## What is this?
|
|
6
|
+
|
|
7
|
+
An MCP (Model Context Protocol) server that lets AI coding assistants provision cloud services and create accounts automatically - all without you ever leaving your terminal.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **Instant databases** - PostgreSQL in seconds, no signup required
|
|
12
|
+
- **Permanent accounts** - Headless browser creates real accounts for you
|
|
13
|
+
- **Auto email verification** - Gmail integration clicks verification links automatically
|
|
14
|
+
- **Encrypted storage** - All credentials stored locally with AES-256-GCM
|
|
15
|
+
- **Zero context switching** - Everything happens in your terminal
|
|
16
|
+
|
|
17
|
+
## Supported Services
|
|
18
|
+
|
|
19
|
+
| Service | Instant (Temp) | Permanent Account | Status |
|
|
20
|
+
|---------|----------------|-------------------|--------|
|
|
21
|
+
| Neon PostgreSQL | β
| β
| Ready |
|
|
22
|
+
| Vercel | - | π | Coming soon |
|
|
23
|
+
| Supabase | - | π | Coming soon |
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
### 1. Install
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
bun install
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### 2. Configure Claude Code
|
|
34
|
+
|
|
35
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"mcpServers": {
|
|
40
|
+
"devenv": {
|
|
41
|
+
"command": "bun",
|
|
42
|
+
"args": ["run", "/path/to/devenv-mcp/src/index.ts"]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 3. Use It
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
You: "I need a postgres database"
|
|
52
|
+
|
|
53
|
+
Claude: [provisions instant Neon database]
|
|
54
|
+
"Done! DATABASE_URL added to .env"
|
|
55
|
+
|
|
56
|
+
You: "Create a users table"
|
|
57
|
+
|
|
58
|
+
Claude: [runs CREATE TABLE]
|
|
59
|
+
"Table created."
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Tools
|
|
63
|
+
|
|
64
|
+
### Setup & Profile
|
|
65
|
+
|
|
66
|
+
| Tool | Description |
|
|
67
|
+
|------|-------------|
|
|
68
|
+
| `devenv_setup` | Set your email for creating accounts (one-time) |
|
|
69
|
+
| `devenv_status` | Show all provisioned services and profile |
|
|
70
|
+
|
|
71
|
+
### Database Provisioning
|
|
72
|
+
|
|
73
|
+
| Tool | Description |
|
|
74
|
+
|------|-------------|
|
|
75
|
+
| `devenv_provision` | Provision a database (instant or permanent) |
|
|
76
|
+
| `devenv_inject` | Inject credentials into .env file |
|
|
77
|
+
| `devenv_query` | Run SQL queries directly |
|
|
78
|
+
|
|
79
|
+
### Email Verification
|
|
80
|
+
|
|
81
|
+
| Tool | Description |
|
|
82
|
+
|------|-------------|
|
|
83
|
+
| `devenv_check_verification` | Check for verification emails |
|
|
84
|
+
| `devenv_auto_verify` | Wait for and auto-click verification links |
|
|
85
|
+
|
|
86
|
+
## Usage Examples
|
|
87
|
+
|
|
88
|
+
### Instant Database (No Account, 72h Expiry)
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
devenv_provision({
|
|
92
|
+
service: "neon",
|
|
93
|
+
project_name: "my-app",
|
|
94
|
+
permanent: false
|
|
95
|
+
})
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Permanent Database (Creates Account)
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
// First time: set your email
|
|
102
|
+
devenv_setup({ email: "you@gmail.com" })
|
|
103
|
+
|
|
104
|
+
// Then provision with permanent: true
|
|
105
|
+
devenv_provision({
|
|
106
|
+
service: "neon",
|
|
107
|
+
project_name: "my-app",
|
|
108
|
+
permanent: true
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
// If email verification needed:
|
|
112
|
+
devenv_auto_verify({ service: "neon" })
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Run SQL Queries
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
devenv_query({
|
|
119
|
+
provision_id: "abc-123",
|
|
120
|
+
sql: "CREATE TABLE users (id SERIAL PRIMARY KEY, email TEXT)"
|
|
121
|
+
})
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## How It Works
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
128
|
+
β Your Terminal (Claude Code) β
|
|
129
|
+
βββββββββββββββββββββββ¬ββββββββββββββββββββββββββββ
|
|
130
|
+
β
|
|
131
|
+
βββββββββββββββββββββββΌββββββββββββββββββββββββββββ
|
|
132
|
+
β DevEnv MCP Server β
|
|
133
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
|
134
|
+
β Tools: provision, query, inject, verify... β
|
|
135
|
+
βββββββββββββββββββββββ¬ββββββββββββββββββββββββββββ
|
|
136
|
+
β
|
|
137
|
+
βββββββββββββββΌββββββββββββββ
|
|
138
|
+
βΌ βΌ βΌ
|
|
139
|
+
βββββββββββββ βββββββββββββ βββββββββββββ
|
|
140
|
+
β Neon β β Browser β β Gmail β
|
|
141
|
+
β Instant β β Automationβ β API β
|
|
142
|
+
β API β β(Playwright)β β β
|
|
143
|
+
βββββββββββββ βββββββββββββ βββββββββββββ
|
|
144
|
+
β β β
|
|
145
|
+
βββββββββββββββΌββββββββββββββ
|
|
146
|
+
βΌ
|
|
147
|
+
βββββββββββββββββββ
|
|
148
|
+
β Encrypted Vault β
|
|
149
|
+
β ~/.devenv/ β
|
|
150
|
+
βββββββββββββββββββ
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Gmail Setup (Optional)
|
|
154
|
+
|
|
155
|
+
For automatic email verification:
|
|
156
|
+
|
|
157
|
+
1. Create OAuth app at [Google Cloud Console](https://console.cloud.google.com)
|
|
158
|
+
2. Enable Gmail API
|
|
159
|
+
3. Create OAuth 2.0 credentials (Desktop app)
|
|
160
|
+
4. Save to `~/.devenv/gmail-credentials.json`:
|
|
161
|
+
|
|
162
|
+
```json
|
|
163
|
+
{
|
|
164
|
+
"client_id": "YOUR_CLIENT_ID",
|
|
165
|
+
"client_secret": "YOUR_CLIENT_SECRET",
|
|
166
|
+
"redirect_uri": "http://localhost:3456/callback"
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Security
|
|
171
|
+
|
|
172
|
+
- **Vault & Profile**: Encrypted with AES-256-GCM (connection strings, API keys, user data)
|
|
173
|
+
- **Encryption key**: Stored at `~/.devenv/.key` with restricted permissions (mode 0600)
|
|
174
|
+
- **Browser sessions**: Stored locally for automation (not encrypted, isolated per service)
|
|
175
|
+
- **Network**: Credentials only sent to respective service providers (Neon, Vercel, etc.)
|
|
176
|
+
- **Passwords**: Generated using `crypto.randomBytes` (cryptographically secure)
|
|
177
|
+
|
|
178
|
+
**Note**: Browser session data (`~/.devenv/browser-data/`) contains auth cookies for automated provisioning. Protect your `~/.devenv` directory as you would `~/.ssh`.
|
|
179
|
+
|
|
180
|
+
## File Structure
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
~/.devenv/
|
|
184
|
+
βββ vault.json # Encrypted credentials (AES-256-GCM)
|
|
185
|
+
βββ profile.json # Encrypted user profile (AES-256-GCM)
|
|
186
|
+
βββ .key # Encryption key (mode 0600)
|
|
187
|
+
βββ gmail-credentials.json # Gmail OAuth (optional)
|
|
188
|
+
βββ browser-data/ # Browser sessions (unencrypted, per-service isolation)
|
|
189
|
+
βββ screenshots/ # Debug screenshots
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Requirements
|
|
193
|
+
|
|
194
|
+
- Bun or Node.js 18+
|
|
195
|
+
- npm/npx (for neondb CLI)
|
|
196
|
+
- Chromium (installed automatically by Playwright)
|
|
197
|
+
|
|
198
|
+
## Roadmap
|
|
199
|
+
|
|
200
|
+
- [x] Neon PostgreSQL (instant + permanent)
|
|
201
|
+
- [x] Headless browser automation
|
|
202
|
+
- [x] Gmail integration
|
|
203
|
+
- [ ] Vercel deployments
|
|
204
|
+
- [ ] Supabase backend
|
|
205
|
+
- [ ] Stripe test mode
|
|
206
|
+
- [ ] Partner API integrations
|
|
207
|
+
|
|
208
|
+
## License
|
|
209
|
+
|
|
210
|
+
MIT
|