@kya-os/create-mcpi-app 1.9.10 → 1.9.11

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.
@@ -5,20 +5,91 @@
5
5
 
6
6
  RUN v4.0.14 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
7
7
 
8
- stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
9
- [Session] Created session: secure-session
8
+ src/__tests__/helpers/generate-config.test.ts (25 tests) 51ms
9
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
10
+
11
+ 📦 Installing dependencies with npm...
12
+ ✓ Lockfile created (package-lock.json) - remember to commit it
10
13
 
11
- ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 16ms
12
- ✓ src/__tests__/helpers/kta-registration.test.ts (8 tests) 24ms
13
14
  stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should scaffold with correct @kya-os/mcp-i-cloudflare version
14
15
 
15
16
  🏗️ Generating Cloudflare MCP-I project: test-project...
16
17
 
18
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
19
+
20
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
21
+
17
22
  stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should scaffold with correct @kya-os/mcp-i-cloudflare version
18
23
  🔑 Generating cryptographic identity...
19
24
 
20
- src/__tests__/helpers/get-package-versions.test.ts (6 tests) 57ms
21
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should scaffold with correct @kya-os/mcp-i-cloudflare version
25
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
26
+ 🔑 Generating cryptographic identity...
27
+
28
+ ✓ src/__tests__/helpers/identity-manager.test.ts (16 tests) 21ms
29
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
30
+
31
+ 📦 Installing dependencies with yarn...
32
+ ✓ Lockfile created (yarn.lock) - remember to commit it
33
+
34
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
35
+
36
+ 📦 Installing dependencies with pnpm...
37
+ ✓ Lockfile created (pnpm-lock.yaml) - remember to commit it
38
+
39
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
40
+
41
+ 📦 Installing dependencies with npm...
42
+ ✓ Lockfile created (package-lock.json) - remember to commit it
43
+
44
+ stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
45
+
46
+ 📦 Installing dependencies with npm...
47
+ ✓ Lockfile created (package-lock.json) - remember to commit it
48
+ stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
49
+
50
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
51
+
52
+ 📦 Installing dependencies with npm...
53
+
54
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
55
+
56
+ 📦 Installing dependencies with npm...
57
+ ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
58
+
59
+
60
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
61
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
62
+
63
+ 📦 Installing dependencies with npm...
64
+ Failed to install dependencies with npm.
65
+
66
+
67
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
68
+
69
+ 📦 Installing dependencies with npm...
70
+
71
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
72
+ Failed to install dependencies with npm.
73
+
74
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
75
+ Failed to install dependencies with npm.
76
+
77
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
78
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
79
+
80
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
81
+
82
+ 📦 Installing dependencies with unknown...
83
+
84
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
85
+
86
+ 📦 Installing dependencies with npm...
87
+
88
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when package manager lockfile cannot be determined
89
+
90
+ 📦 Installing dependencies with custom...
91
+
92
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
22
93
  ✔ Created Cloudflare MCP-I template files
23
94
  - Generated identity keys in .dev.vars
24
95
  - Configured wrangler.toml with KV namespaces (auto-provisioned)
@@ -41,22 +112,20 @@ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffold
41
112
  - Wrangler updates wrangler.toml with namespace IDs
42
113
 
43
114
  🚀 Next Steps:
44
- cd test-project
115
+ cd test-agent
45
116
  wrangler login # Login to Cloudflare first!
46
117
  npm run dev # Start local development
47
118
  npm run deploy # Deploy (KV auto-created!)
48
119
 
49
120
 
50
- src/__tests__/helpers/copy-template.test.ts (11 tests) 44ms
51
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should include AGENTSHIELD_PROJECT_ID in wrangler.toml template
121
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
52
122
 
53
- 🏗️ Generating Cloudflare MCP-I project: test-project-env...
123
+ 🏗️ Generating Cloudflare MCP-I project: my-awesome-agent...
54
124
 
55
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should include AGENTSHIELD_PROJECT_ID in wrangler.toml template
125
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
56
126
  🔑 Generating cryptographic identity...
57
127
 
58
- src/__tests__/helpers/generate-identity.test.ts (24 tests) 54ms
59
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should include AGENTSHIELD_PROJECT_ID in wrangler.toml template
128
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
60
129
  ✔ Created Cloudflare MCP-I template files
61
130
  - Generated identity keys in .dev.vars
62
131
  - Configured wrangler.toml with KV namespaces (auto-provisioned)
@@ -79,114 +148,49 @@ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffold
79
148
  - Wrangler updates wrangler.toml with namespace IDs
80
149
 
81
150
  🚀 Next Steps:
82
- cd test-project-env
151
+ cd my-awesome-agent
83
152
  wrangler login # Login to Cloudflare first!
84
153
  npm run dev # Start local development
85
154
  npm run deploy # Deploy (KV auto-created!)
86
155
 
87
156
 
88
- src/__tests__/index.test.ts (4 tests) 102ms
89
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should set AGENTSHIELD_PROJECT_ID when --project is provided
90
-
91
- 🏗️ Generating Cloudflare MCP-I project: test-project-with-id...
92
-
93
- stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
94
-
95
- create-mcpi-app@1.9.10
96
-
97
- stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
98
- BANNER
99
-
100
- Enhanced with identity features by MCP-I
101
-
102
-
103
- stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
104
-
105
- Next Steps:
106
- 1. Install dependencies:
107
- cd my-agent
108
- npm install
109
-
110
- 2. Start development server:
111
- npm run dev
157
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
112
158
 
113
- 3. Deploy when ready:
114
- npm run start
159
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
115
160
 
116
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should set AGENTSHIELD_PROJECT_ID when --project is provided
161
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
117
162
  🔑 Generating cryptographic identity...
118
163
 
119
- stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
120
-
121
- create-mcpi-app@1.9.10
122
-
123
- stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
124
- BANNER
125
-
126
- Enhanced with identity features by MCP-I
127
-
128
-
129
- stderr | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
130
- Invalid project name:
131
- - bad
132
-
133
- stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
134
-
135
- create-mcpi-app@1.9.10
136
-
137
- stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
138
- BANNER
139
-
140
- Enhanced with identity features by MCP-I
141
-
142
-
143
- stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
144
-
145
- Next Steps:
146
- 1. Install dependencies:
147
- cd pnpm-agent
148
- pnpm install
149
-
150
- 2. Initialize identity:
151
- pnpm init
152
-
153
- 3. Start development server:
154
- pnpm dev
155
-
156
- 4. Deploy when ready:
157
- pnpm start
158
-
159
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
160
-
161
- create-mcpi-app@1.9.10
162
-
163
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
164
- BANNER
165
-
166
- Enhanced with identity features by MCP-I
167
-
168
-
169
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
164
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
165
+ ✔ Created Cloudflare MCP-I template files
166
+ - Generated identity keys in .dev.vars
167
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
168
+ - Created modular tool structure
170
169
 
171
- Creating a new xmcp app in /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/interactive-app.
170
+ ============================================================
171
+ 🎉 Cloudflare MCP-I project created successfully!
172
+ ============================================================
172
173
 
174
+ 📝 Important Configuration Notes:
173
175
 
174
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
176
+ 1. ADMIN_API_KEY (in .dev.vars):
177
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
178
+ - You can change it if you need separate admin endpoint security
179
+ - Required for admin endpoints like /admin/clear-cache
175
180
 
176
- Next Steps:
177
- 1. Install dependencies:
178
- cd interactive-app
179
- pnpm install
181
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
182
+ - Required for MCP-I security features
183
+ - ✨ Automatically created on first deploy - no setup needed!
184
+ - Wrangler updates wrangler.toml with namespace IDs
180
185
 
181
- 2. Start development server:
182
- pnpm dev
186
+ 🚀 Next Steps:
187
+ cd test-agent
188
+ wrangler login # Login to Cloudflare first!
189
+ npm run dev # Start local development
190
+ npm run deploy # Deploy (KV auto-created!)
183
191
 
184
- 3. Deploy when ready:
185
- pnpm start
186
192
 
187
- src/__tests__/cli-runner.test.ts (4 tests) 181ms
188
- ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 52ms
189
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should set AGENTSHIELD_PROJECT_ID when --project is provided
193
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should scaffold with correct @kya-os/mcp-i-cloudflare version
190
194
  ✔ Created Cloudflare MCP-I template files
191
195
  - Generated identity keys in .dev.vars
192
196
  - Configured wrangler.toml with KV namespaces (auto-provisioned)
@@ -209,20 +213,20 @@ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffold
209
213
  - Wrangler updates wrangler.toml with namespace IDs
210
214
 
211
215
  🚀 Next Steps:
212
- cd test-project-with-id
216
+ cd test-project
213
217
  wrangler login # Login to Cloudflare first!
214
218
  npm run dev # Start local development
215
219
  npm run deploy # Deploy (KV auto-created!)
216
220
 
217
221
 
218
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should comment out AGENTSHIELD_PROJECT_ID when --project is NOT provided
222
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should include AGENTSHIELD_PROJECT_ID in wrangler.toml template
219
223
 
220
- 🏗️ Generating Cloudflare MCP-I project: test-project-no-id...
224
+ 🏗️ Generating Cloudflare MCP-I project: test-project-env...
221
225
 
222
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should comment out AGENTSHIELD_PROJECT_ID when --project is NOT provided
226
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should include AGENTSHIELD_PROJECT_ID in wrangler.toml template
223
227
  🔑 Generating cryptographic identity...
224
228
 
225
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should comment out AGENTSHIELD_PROJECT_ID when --project is NOT provided
229
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should include AGENTSHIELD_PROJECT_ID in wrangler.toml template
226
230
  ✔ Created Cloudflare MCP-I template files
227
231
  - Generated identity keys in .dev.vars
228
232
  - Configured wrangler.toml with KV namespaces (auto-provisioned)
@@ -245,20 +249,20 @@ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffold
245
249
  - Wrangler updates wrangler.toml with namespace IDs
246
250
 
247
251
  🚀 Next Steps:
248
- cd test-project-no-id
252
+ cd test-project-env
249
253
  wrangler login # Login to Cloudflare first!
250
254
  npm run dev # Start local development
251
255
  npm run deploy # Deploy (KV auto-created!)
252
256
 
253
257
 
254
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Runtime Config Includes projectId > should pass AGENTSHIELD_PROJECT_ID to runtime config
258
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should set AGENTSHIELD_PROJECT_ID when --project is provided
255
259
 
256
- 🏗️ Generating Cloudflare MCP-I project: test-project-runtime...
260
+ 🏗️ Generating Cloudflare MCP-I project: test-project-with-id...
257
261
 
258
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Runtime Config Includes projectId > should pass AGENTSHIELD_PROJECT_ID to runtime config
262
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should set AGENTSHIELD_PROJECT_ID when --project is provided
259
263
  🔑 Generating cryptographic identity...
260
264
 
261
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Runtime Config Includes projectId > should pass AGENTSHIELD_PROJECT_ID to runtime config
265
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should set AGENTSHIELD_PROJECT_ID when --project is provided
262
266
  ✔ Created Cloudflare MCP-I template files
263
267
  - Generated identity keys in .dev.vars
264
268
  - Configured wrangler.toml with KV namespaces (auto-provisioned)
@@ -281,22 +285,23 @@ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffold
281
285
  - Wrangler updates wrangler.toml with namespace IDs
282
286
 
283
287
  🚀 Next Steps:
284
- cd test-project-runtime
288
+ cd test-project-with-id
285
289
  wrangler login # Login to Cloudflare first!
286
290
  npm run dev # Start local development
287
291
  npm run deploy # Deploy (KV auto-created!)
288
292
 
289
293
 
290
- ✓ src/__tests__/helpers/fetch-mcpi-template.test.ts (16 tests) 98ms
291
- test-cloudflare/tests/delegation.test.ts (12 tests) 5ms
292
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > No Workspace References > should not include workspace: references in scaffolded package.json
294
+ ✓ src/__tests__/helpers/install.test.ts (21 tests) 91ms
295
+ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 69ms
296
+ src/__tests__/index.test.ts (4 tests) 141ms
297
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should comment out AGENTSHIELD_PROJECT_ID when --project is NOT provided
293
298
 
294
- 🏗️ Generating Cloudflare MCP-I project: test-project-no-workspace...
299
+ 🏗️ Generating Cloudflare MCP-I project: test-project-no-id...
295
300
 
296
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > No Workspace References > should not include workspace: references in scaffolded package.json
301
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should comment out AGENTSHIELD_PROJECT_ID when --project is NOT provided
297
302
  🔑 Generating cryptographic identity...
298
303
 
299
- stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > No Workspace References > should not include workspace: references in scaffolded package.json
304
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should comment out AGENTSHIELD_PROJECT_ID when --project is NOT provided
300
305
  ✔ Created Cloudflare MCP-I template files
301
306
  - Generated identity keys in .dev.vars
302
307
  - Configured wrangler.toml with KV namespaces (auto-provisioned)
@@ -319,54 +324,27 @@ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffold
319
324
  - Wrangler updates wrangler.toml with namespace IDs
320
325
 
321
326
  🚀 Next Steps:
322
- cd test-project-no-workspace
327
+ cd test-project-no-id
323
328
  wrangler login # Login to Cloudflare first!
324
329
  npm run dev # Start local development
325
330
  npm run deploy # Deploy (KV auto-created!)
326
331
 
327
332
 
328
- src/__tests__/e2e/scaffolder-dependency-verification.test.ts (7 tests) 251ms
329
- ✓ src/__tests__/helpers/create.test.ts (13 tests) 213ms
330
- ✓ src/__tests__/wrangler-v4-compatibility.test.ts (11 tests) 267ms
331
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
332
-
333
- 📦 Installing dependencies with npm...
334
- ✓ Lockfile created (package-lock.json) - remember to commit it
335
-
336
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
337
-
338
- 📦 Installing dependencies with yarn...
339
- ✓ Lockfile created (yarn.lock) - remember to commit it
340
-
341
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
342
-
343
- 📦 Installing dependencies with pnpm...
344
- ✓ Lockfile created (pnpm-lock.yaml) - remember to commit it
345
-
346
- ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 182ms
347
- ✓ src/__tests__/helpers/apply-identity-preset.test.ts (16 tests) 348ms
348
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
333
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Runtime Config Includes projectId > should pass AGENTSHIELD_PROJECT_ID to runtime config
349
334
 
350
- 📦 Installing dependencies with npm...
351
- ✓ Lockfile created (package-lock.json) - remember to commit it
335
+ 🏗️ Generating Cloudflare MCP-I project: test-project-runtime...
352
336
 
353
- stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
354
- ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
337
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Runtime Config Includes projectId > should pass AGENTSHIELD_PROJECT_ID to runtime config
338
+ 🔑 Generating cryptographic identity...
355
339
 
356
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
340
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
357
341
 
358
342
  🏗️ Generating Cloudflare MCP-I project: test-agent...
359
343
 
360
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
344
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
361
345
  🔑 Generating cryptographic identity...
362
346
 
363
- stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
364
-
365
- 📦 Installing dependencies with npm...
366
- ✓ Lockfile created (package-lock.json) - remember to commit it
367
-
368
- ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 321ms
369
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
347
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
370
348
  ✔ Created Cloudflare MCP-I template files
371
349
  - Generated identity keys in .dev.vars
372
350
  - Configured wrangler.toml with KV namespaces (auto-provisioned)
@@ -395,14 +373,8 @@ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Confi
395
373
  npm run deploy # Deploy (KV auto-created!)
396
374
 
397
375
 
398
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
399
-
400
- 🏗️ Generating Cloudflare MCP-I project: my-awesome-agent...
401
-
402
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
403
- 🔑 Generating cryptographic identity...
404
-
405
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
376
+ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 125ms
377
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Runtime Config Includes projectId > should pass AGENTSHIELD_PROJECT_ID to runtime config
406
378
  ✔ Created Cloudflare MCP-I template files
407
379
  - Generated identity keys in .dev.vars
408
380
  - Configured wrangler.toml with KV namespaces (auto-provisioned)
@@ -425,27 +397,20 @@ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Confi
425
397
  - Wrangler updates wrangler.toml with namespace IDs
426
398
 
427
399
  🚀 Next Steps:
428
- cd my-awesome-agent
400
+ cd test-project-runtime
429
401
  wrangler login # Login to Cloudflare first!
430
402
  npm run dev # Start local development
431
403
  npm run deploy # Deploy (KV auto-created!)
432
404
 
433
405
 
434
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
406
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > No Workspace References > should not include workspace: references in scaffolded package.json
435
407
 
436
- 🏗️ Generating Cloudflare MCP-I project: test-agent...
408
+ 🏗️ Generating Cloudflare MCP-I project: test-project-no-workspace...
437
409
 
438
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
410
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > No Workspace References > should not include workspace: references in scaffolded package.json
439
411
  🔑 Generating cryptographic identity...
440
412
 
441
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
442
-
443
- 📦 Installing dependencies with npm...
444
-
445
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
446
- Failed to install dependencies with npm.
447
-
448
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
413
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > No Workspace References > should not include workspace: references in scaffolded package.json
449
414
  ✔ Created Cloudflare MCP-I template files
450
415
  - Generated identity keys in .dev.vars
451
416
  - Configured wrangler.toml with KV namespaces (auto-provisioned)
@@ -468,101 +433,146 @@ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Confi
468
433
  - Wrangler updates wrangler.toml with namespace IDs
469
434
 
470
435
  🚀 Next Steps:
471
- cd test-agent
436
+ cd test-project-no-workspace
472
437
  wrangler login # Login to Cloudflare first!
473
438
  npm run dev # Start local development
474
439
  npm run deploy # Deploy (KV auto-created!)
475
440
 
476
441
 
477
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
478
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
442
+ src/__tests__/e2e/scaffolder-dependency-verification.test.ts (7 tests) 382ms
443
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
479
444
 
480
- 📦 Installing dependencies with npm...
445
+ create-mcpi-app@1.9.10
481
446
 
482
- Failed to install dependencies with npm.
447
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
448
+ BANNER
483
449
 
484
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
450
+ Enhanced with identity features by MCP-I
485
451
 
486
- 🏗️ Generating Cloudflare MCP-I project: test-agent...
487
452
 
488
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
489
- 🔑 Generating cryptographic identity...
453
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
490
454
 
491
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
455
+ Next Steps:
456
+ 1. Install dependencies:
457
+ cd my-agent
458
+ npm install
492
459
 
493
- 📦 Installing dependencies with npm...
460
+ 2. Start development server:
461
+ npm run dev
494
462
 
495
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
496
- Failed to install dependencies with npm.
463
+ 3. Deploy when ready:
464
+ npm run start
497
465
 
498
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
466
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
499
467
 
500
- 📦 Installing dependencies with npm...
468
+ create-mcpi-app@1.9.10
501
469
 
502
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
470
+ stderr | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
471
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
472
+ BANNER
503
473
 
504
- 📦 Installing dependencies with unknown...
505
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
474
+ Enhanced with identity features by MCP-I
506
475
 
507
- ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
476
+ Invalid project name:
508
477
 
509
- stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
478
+ - bad
510
479
 
511
- 📦 Installing dependencies with npm...
480
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
512
481
 
513
- stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when package manager lockfile cannot be determined
482
+ create-mcpi-app@1.9.10
514
483
 
515
- 📦 Installing dependencies with custom...
484
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
485
+ BANNER
516
486
 
517
- src/__tests__/helpers/install.test.ts (21 tests) 288ms
518
- ✓ src/__tests__/helpers/fetch-cloudflare-template.test.ts (4 tests) 24ms
519
- ✓ src/__tests__/helpers/generate-cloudflare-files.test.ts (26 tests | 1 skipped) 31ms
520
- ✓ src/__tests__/utils/validate-project-name.test.ts (29 tests) 13ms
521
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
522
- ✔ Created Cloudflare MCP-I template files
523
- - Generated identity keys in .dev.vars
524
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
525
- - Created modular tool structure
487
+ Enhanced with identity features by MCP-I
526
488
 
527
- ============================================================
528
- 🎉 Cloudflare MCP-I project created successfully!
529
- ============================================================
530
489
 
531
- 📝 Important Configuration Notes:
490
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
532
491
 
533
- 1. ADMIN_API_KEY (in .dev.vars):
534
- - Set to same value as AGENTSHIELD_API_KEY for convenience
535
- - You can change it if you need separate admin endpoint security
536
- - Required for admin endpoints like /admin/clear-cache
492
+ Next Steps:
493
+ 1. Install dependencies:
494
+ cd pnpm-agent
495
+ pnpm install
537
496
 
538
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
539
- - Required for MCP-I security features
540
- - ✨ Automatically created on first deploy - no setup needed!
541
- - Wrangler updates wrangler.toml with namespace IDs
497
+ 2. Initialize identity:
498
+ pnpm init
542
499
 
543
- 🚀 Next Steps:
544
- cd test-agent
545
- wrangler login # Login to Cloudflare first!
546
- npm run dev # Start local development
547
- npm run deploy # Deploy (KV auto-created!)
500
+ 3. Start development server:
501
+ pnpm dev
502
+
503
+ 4. Deploy when ready:
504
+ pnpm start
548
505
 
506
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
507
+
508
+ create-mcpi-app@1.9.10
509
+
510
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
511
+ BANNER
549
512
 
550
- src/__tests__/utils/check-node.test.ts (7 tests) 22ms
551
- ✓ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 151ms
552
- ✓ src/__tests__/helpers/identity-manager.test.ts (16 tests) 142ms
553
- src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 707ms
554
- ✓ src/__tests__/utils/is-folder-empty.test.ts (21 tests) 51ms
555
- src/helpers/__tests__/generate-cloudflare-files.spec.ts (28 tests) 22ms
513
+ Enhanced with identity features by MCP-I
514
+
515
+
516
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
517
+
518
+ Creating a new xmcp app in /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/interactive-app.
519
+
520
+
521
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
522
+
523
+ Next Steps:
524
+ 1. Install dependencies:
525
+ cd interactive-app
526
+ pnpm install
527
+
528
+ 2. Start development server:
529
+ pnpm dev
530
+
531
+ 3. Deploy when ready:
532
+ pnpm start
533
+
534
+ ✓ src/__tests__/wrangler-v4-compatibility.test.ts (11 tests) 391ms
535
+ ✓ src/__tests__/cli-runner.test.ts (4 tests) 576ms
536
+ ✓ passes CLI flags to createProject when using --yes 570ms
537
+ ✓ src/__tests__/helpers/create.test.ts (13 tests) 581ms
538
+ ✓ should pass apikey to Cloudflare template 416ms
539
+ ✓ src/__tests__/helpers/get-package-versions.test.ts (6 tests) 648ms
540
+ ✓ should return versions from actual package.json 360ms
541
+ ✓ src/__tests__/helpers/apply-identity-preset.test.ts (16 tests) 1362ms
542
+ ✓ should throw error when package.json does not exist 402ms
543
+ ✓ src/__tests__/utils/is-folder-empty.test.ts (21 tests) 30ms
544
+ ✓ src/__tests__/helpers/fetch-mcpi-template.test.ts (16 tests) 289ms
545
+ ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 286ms
546
+ ✓ src/__tests__/utils/check-node.test.ts (7 tests) 9ms
547
+ ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 116ms
548
+ ✓ src/__tests__/helpers/copy-template.test.ts (11 tests) 165ms
549
+ ✓ src/__tests__/helpers/kta-registration.test.ts (8 tests) 42ms
550
+ ✓ src/__tests__/helpers/fetch-cloudflare-template.test.ts (4 tests) 534ms
551
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
552
+ [Session] Created session: secure-session
553
+
554
+ ✓ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 2224ms
555
+ ✓ should have matching DO class name in agent.ts and index.ts 427ms
556
+ ✓ should handle invalid project names 333ms
557
+ ✓ src/__tests__/helpers/generate-cloudflare-files.test.ts (26 tests | 1 skipped) 606ms
558
+ ✓ should generate unique DID for each call (without skipIdentity) 517ms
556
559
  stderr | src/__tests__/helpers/fetch-xmcp-template.test.ts > fetchXMCPTemplate > falls back to default when next channel is unavailable
557
560
  ⚠️ dist-tag 'next' not available for xmcp, falling back to ^0.3.1
558
561
 
559
- ✓ src/__tests__/helpers/fetch-xmcp-template.test.ts (3 tests) 19ms
560
- ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (25 tests) 713ms
561
- test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
562
+ ✓ src/__tests__/helpers/fetch-xmcp-template.test.ts (3 tests) 21ms
563
+ ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (25 tests) 2255ms
564
+ should handle different package managers 349ms
565
+ ✓ should handle template generation without overwriting existing files incorrectly 488ms
566
+ ✓ should skip identity generation when skipIdentity is true 496ms
567
+ ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 5ms
562
568
  ✓ src/__tests__/effects/index.test.ts (5 tests) 5ms
569
+ ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 14ms
570
+ ✓ src/helpers/__tests__/generate-cloudflare-files.spec.ts (28 tests) 50ms
571
+ ✓ src/__tests__/utils/validate-project-name.test.ts (29 tests) 37ms
572
+ ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 35ms
573
+ ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 6ms
574
+ ✓ src/__tests__/helpers/rename.test.ts (6 tests) 340ms
563
575
  ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
564
- ✓ src/__tests__/helpers/rename.test.ts (6 tests) 9ms
565
- ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 4ms
566
576
  stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
567
577
  [RemoteConfig] Neither projectId nor agentDid provided
568
578
 
@@ -570,6 +580,6 @@ stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote >
570
580
 
571
581
  Test Files 34 passed (34)
572
582
  Tests 501 passed | 3 skipped (504)
573
- Start at 14:42:52
574
- Duration 1.23s (transform 1.55s, setup 0ms, import 3.66s, tests 4.43s, environment 2ms)
583
+ Start at 15:01:58
584
+ Duration 4.25s (transform 2.99s, setup 0ms, import 9.58s, tests 11.52s, environment 3ms)
575
585
 
@@ -66,7 +66,7 @@ export async function getPackageVersions() {
66
66
  cachedVersions = {
67
67
  "@kya-os/mcp-i": normalizeVersion(deps["@kya-os/mcp-i"] || "^1.7.6"),
68
68
  "@kya-os/cli": normalizeVersion(deps["@kya-os/cli"] || "^1.5.5"),
69
- "@kya-os/mcp-i-cloudflare": normalizeVersion(deps["@kya-os/mcp-i-cloudflare"] || "^1.7.15"),
69
+ "@kya-os/mcp-i-cloudflare": normalizeVersion(deps["@kya-os/mcp-i-cloudflare"] || "^1.7.16"),
70
70
  "@kya-os/contracts": normalizeVersion(deps["@kya-os/contracts"] || "^1.7.11"),
71
71
  };
72
72
  return cachedVersions;
@@ -77,7 +77,7 @@ export async function getPackageVersions() {
77
77
  return {
78
78
  "@kya-os/mcp-i": "^1.7.6",
79
79
  "@kya-os/cli": "^1.5.5",
80
- "@kya-os/mcp-i-cloudflare": "^1.7.15",
80
+ "@kya-os/mcp-i-cloudflare": "^1.7.16",
81
81
  "@kya-os/contracts": "^1.7.11",
82
82
  };
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/create-mcpi-app",
3
- "version": "1.9.10",
3
+ "version": "1.9.11",
4
4
  "description": "Scaffold a new MCP-I application",
5
5
  "type": "module",
6
6
  "main": "./dist/helpers/index.js",
@@ -32,11 +32,11 @@
32
32
  "prepublishOnly": "npm run build && node scripts/validate-dependencies.js && node scripts/validate-template-versions.js"
33
33
  },
34
34
  "dependencies": {
35
- "@kya-os/cli": "^1.5.5",
35
+ "@kya-os/cli": "^1.5.6",
36
36
  "@kya-os/cli-effects": "^1.0.19",
37
- "@kya-os/contracts": "^1.7.11",
38
- "@kya-os/mcp-i": "^1.7.6",
39
- "@kya-os/mcp-i-cloudflare": "^1.7.15",
37
+ "@kya-os/contracts": "^1.7.12",
38
+ "@kya-os/mcp-i": "^1.7.7",
39
+ "@kya-os/mcp-i-cloudflare": "^1.7.16",
40
40
  "base-x": "^5.0.0",
41
41
  "chalk": "^4.1.2",
42
42
  "commander": "^12.1.0",