devenv-mcp 0.3.1 → 0.3.3

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 (3) hide show
  1. package/README.md +71 -1
  2. package/dist/index.js +2853 -242
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -4,11 +4,15 @@ Instant infrastructure from your IDE. No dashboards. No copy-pasting tokens. **N
4
4
 
5
5
  ## What is this?
6
6
 
7
- An MCP (Model Context Protocol) server with **89 tools** that lets AI coding assistants provision cloud services, deploy apps, and manage developer workflows - all without you ever leaving your terminal.
7
+ An MCP (Model Context Protocol) server with **112 tools** that lets AI coding assistants provision cloud services, deploy apps, sync environments across platforms, and manage developer workflows - all without you ever leaving your terminal. Works with both new and existing projects.
8
8
 
9
9
  ## Features
10
10
 
11
11
  - **Instant databases** - PostgreSQL, MySQL, SQLite, Redis, MongoDB in seconds
12
+ - **Import existing databases** - Bring your own connection strings into the vault and manage them with devenv tools
13
+ - **Link services together** - Push vault credentials to Vercel/Railway and redeploy in one command
14
+ - **Push & pull env vars** - Sync environment variables between local, Vercel, and Railway
15
+ - **Execute SQL files** - Run schema migrations, seed scripts, or init files against any database
12
16
  - **Multi-platform deploy** - Deploy to Vercel or Railway with one command
13
17
  - **Neon OAuth integration** - Connect your Neon account for permanent databases that show in your dashboard
14
18
  - **Database branching** - Create instant dev/test copies, reset branches, manage connections
@@ -18,6 +22,10 @@ An MCP (Model Context Protocol) server with **89 tools** that lets AI coding ass
18
22
  - **Encrypted storage** - All credentials stored locally with AES-256-GCM
19
23
  - **7 cloud providers** - Neon, Vercel, Supabase, Turso, Upstash, Cloudflare R2, Railway
20
24
  - **AI DevOps** - Query optimization, security audits, migration generation
25
+ - **DNS management** - List, add, remove DNS records on Vercel-managed domains
26
+ - **Cross-platform env sync** - Copy env vars between Vercel, Railway, and local
27
+ - **Schema portability** - Export/import schemas with PostgreSQL ↔ SQLite dialect conversion
28
+ - **Project audit** - Cross-reference vault, .env, Vercel, and Railway credentials
21
29
 
22
30
  ## Supported Services
23
31
 
@@ -107,6 +115,41 @@ Claude: [runs CREATE TABLE]
107
115
  | `devenv_vercel_promote` | Promote a preview deployment to production |
108
116
  | `devenv_vercel_delete` | Delete a deployment or entire project |
109
117
 
118
+ ### Existing Project Workflows
119
+
120
+ | Tool | Description |
121
+ |------|-------------|
122
+ | `devenv_push_env` | Push credentials from a provisioned service to Vercel/Railway as environment variables |
123
+ | `devenv_redeploy` | Trigger a redeployment of an existing Vercel project (useful after changing env vars) |
124
+ | `devenv_env_pull` | Pull environment variables from Vercel into a local .env file |
125
+ | `devenv_db_execute` | Execute a .sql file against a provisioned database (migrations, seeds, etc.) |
126
+ | `devenv_import` | Import an existing database connection string into the devenv vault |
127
+ | `devenv_link` | One-command workflow: push credentials + redeploy (combines push_env + redeploy) |
128
+
129
+ ### Environment & Connection Debugging
130
+
131
+ | Tool | Description |
132
+ |------|-------------|
133
+ | `devenv_env_diff` | Compare local .env vs Vercel environment variables |
134
+ | `devenv_connection_test` | Test database connectivity, auth, SSL, and latency |
135
+ | `devenv_db_reset` | Drop all tables and optionally re-run a schema file |
136
+ | `devenv_env_validate` | Check that all required env vars are set (reads from .env.example) |
137
+ | `devenv_credential_rotate` | Update a credential across vault, .env, Vercel, and Railway |
138
+
139
+ ### Cross-Platform Analysis
140
+
141
+ | Tool | Description |
142
+ |------|-------------|
143
+ | `devenv_dns_list` | List DNS records for a Vercel-managed domain |
144
+ | `devenv_dns_add` | Add DNS record (TXT, CNAME, MX, A, AAAA, SRV, CAA) to a Vercel domain |
145
+ | `devenv_dns_remove` | Remove a DNS record by ID |
146
+ | `devenv_env_copy` | Copy env vars between platforms (Vercel ↔ Railway ↔ local .env) |
147
+ | `devenv_env_push_all` | Push local .env to ALL connected platforms at once |
148
+ | `devenv_project_audit` | Comprehensive audit: cross-references vault, .env, Vercel, Railway, DNS records |
149
+ | `devenv_schema_export` | Export database schema as SQL with optional dialect conversion |
150
+ | `devenv_schema_import` | Apply SQL schema to a database with auto dialect detection and conversion |
151
+ | `devenv_link_all` | Push ALL vault credentials to ALL connected platforms + optional redeploy |
152
+
110
153
  ### Resource Cleanup
111
154
 
112
155
  | Tool | Description |
@@ -205,6 +248,33 @@ devenv_vercel_rollback({
205
248
  })
206
249
  ```
207
250
 
251
+ ### Linking, Importing & Debugging Workflows
252
+
253
+ ```
254
+ // Link a provisioned database to Vercel (pushes env vars + redeploys)
255
+ devenv_link({
256
+ provision_id: "abc",
257
+ target: "vercel"
258
+ })
259
+
260
+ // Import an existing database connection string into the vault
261
+ devenv_import({
262
+ connection_string: "postgres://user:pass@host:5432/db",
263
+ service: "neon",
264
+ project_name: "my-db"
265
+ })
266
+
267
+ // Compare local .env against Vercel environment variables
268
+ devenv_env_diff({
269
+ environment: "production"
270
+ })
271
+
272
+ // Test database connectivity, auth, SSL, and latency
273
+ devenv_connection_test({
274
+ provision_id: "abc"
275
+ })
276
+ ```
277
+
208
278
  ## How It Works
209
279
 
210
280
  ```