@_davideast/stitch-mcp 0.0.3 → 0.0.4
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/README.md +67 -4
- package/dist/cli.js +8121 -474
- package/dist/commands/init/spec.d.ts +3 -0
- package/dist/index.js +7940 -291
- package/dist/platform/environment.d.ts +13 -0
- package/dist/services/config/handler.d.ts +12 -0
- package/dist/services/config/spec.d.ts +82 -0
- package/dist/services/gcloud/handler.d.ts +1 -0
- package/dist/services/gcloud/spec.d.ts +3 -0
- package/dist/services/stitch/spec.d.ts +5 -0
- package/dist/ui/checklist.d.ts +53 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -19,13 +19,56 @@ npx @_davideast/stitch-mcp init
|
|
|
19
19
|
|
|
20
20
|
This single command will:
|
|
21
21
|
1. Install Google Cloud CLI (if needed)
|
|
22
|
-
2.
|
|
22
|
+
2. Guide you through authentication with gcloud commands
|
|
23
23
|
3. Set up application credentials
|
|
24
24
|
4. Select a GCP project
|
|
25
25
|
5. Configure IAM permissions
|
|
26
26
|
6. Enable Stitch API
|
|
27
27
|
7. Generate MCP configuration for your client
|
|
28
28
|
|
|
29
|
+
**Example session:**
|
|
30
|
+
```
|
|
31
|
+
Stitch MCP Setup
|
|
32
|
+
|
|
33
|
+
Step 1: Select your MCP client
|
|
34
|
+
✔ Which MCP client are you using? Antigravity
|
|
35
|
+
|
|
36
|
+
Step 2: Setting up Google Cloud CLI
|
|
37
|
+
✔ Google Cloud CLI ready (bundled): v552.0.0
|
|
38
|
+
|
|
39
|
+
Step 3: Setup Authentication
|
|
40
|
+
✔ Check your current setup status? Yes
|
|
41
|
+
|
|
42
|
+
Authenticate with Google Cloud
|
|
43
|
+
|
|
44
|
+
CLOUDSDK_CONFIG="~/.stitch-mcp/config" gcloud auth login
|
|
45
|
+
|
|
46
|
+
(copied to clipboard)
|
|
47
|
+
✔ Press Enter when complete Yes
|
|
48
|
+
✔ Logged in as you@gmail.com
|
|
49
|
+
|
|
50
|
+
Authorize Application Default Credentials
|
|
51
|
+
|
|
52
|
+
CLOUDSDK_CONFIG="~/.stitch-mcp/config" gcloud auth application-default login
|
|
53
|
+
|
|
54
|
+
(copied to clipboard)
|
|
55
|
+
✔ Press Enter when complete Yes
|
|
56
|
+
✔ ADC configured
|
|
57
|
+
|
|
58
|
+
Step 4: Select a Google Cloud project
|
|
59
|
+
✔ Select a project: My Project (my-project-id)
|
|
60
|
+
|
|
61
|
+
Step 5: Configure IAM Permissions
|
|
62
|
+
✔ Required IAM role is already configured.
|
|
63
|
+
|
|
64
|
+
Step 6: Generating MCP Configuration
|
|
65
|
+
✔ Configuration generated
|
|
66
|
+
|
|
67
|
+
Setup Complete! ✔
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**How it works:** Commands are displayed and automatically copied to your clipboard. Run the command in your terminal, complete the OAuth flow in your browser, then press Enter to continue.
|
|
71
|
+
|
|
29
72
|
**Example output:**
|
|
30
73
|
```json
|
|
31
74
|
{
|
|
@@ -95,7 +138,7 @@ npx @_davideast/stitch-mcp init [options]
|
|
|
95
138
|
|
|
96
139
|
**Options:**
|
|
97
140
|
- `--local` - Install gcloud locally to project instead of user home
|
|
98
|
-
- `-y, --
|
|
141
|
+
- `-y, --yes` - Auto-approve verification prompts (skips "Check your current setup status?")
|
|
99
142
|
- `-c, --client <client>` - Specify MCP client (antigravity, vscode, cursor, claude-code, gemini-cli)
|
|
100
143
|
- `-t, --transport <type>` - Transport type (http or stdio)
|
|
101
144
|
|
|
@@ -175,13 +218,33 @@ Two authentication flows are required for Stitch MCP server access:
|
|
|
175
218
|
1. **User Auth** (`gcloud auth login`)
|
|
176
219
|
- Identifies you to Google Cloud
|
|
177
220
|
- Opens browser for OAuth flow
|
|
178
|
-
- **URL always printed to terminal** for manual copy-paste if browser fails
|
|
179
221
|
|
|
180
222
|
2. **Application Default Credentials** (`gcloud auth application-default login`)
|
|
181
223
|
- Allows MCP server to make API calls on your behalf
|
|
182
224
|
- Separate OAuth flow with API-level permissions
|
|
183
225
|
|
|
184
|
-
|
|
226
|
+
The CLI presents these as a guided checklist. You run the commands yourself, then the CLI verifies completion:
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
Authenticate with Google Cloud
|
|
230
|
+
|
|
231
|
+
CLOUDSDK_CONFIG="~/.stitch-mcp/config" gcloud auth login
|
|
232
|
+
|
|
233
|
+
(copied to clipboard)
|
|
234
|
+
✔ Press Enter when complete Yes
|
|
235
|
+
✔ Logged in as you@gmail.com
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
#### WSL / SSH / Docker Environments
|
|
239
|
+
|
|
240
|
+
The CLI automatically detects WSL, SSH sessions, Docker containers, and Cloud Shell. In these environments, browser-based auth may not work automatically. The CLI shows guidance:
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
⚠ WSL detected - browser redirect to localhost may not work
|
|
244
|
+
If browser auth fails, copy the URL from terminal and open manually.
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
Simply copy the OAuth URL from your terminal and paste it into your browser to complete authentication.
|
|
185
248
|
|
|
186
249
|
#### Transport Options
|
|
187
250
|
|