@kya-os/create-mcpi-app 1.8.47 → 1.8.48

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.
@@ -1,605 +1,1039 @@
1
-
2
- > @kya-os/create-mcpi-app@1.8.45 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
3
- > vitest run --coverage
4
-
5
-
6
-  RUN  v4.0.14 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
7
- Coverage enabled with v8
8
-
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
13
-
14
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
15
- 
16
- 📦 Installing dependencies with yarn...
17
- ✓ Lockfile created (yarn.lock) - remember to commit it
18
-
19
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
20
- 
21
- 📦 Installing dependencies with pnpm...
22
- Lockfile created (pnpm-lock.yaml) - remember to commit it
23
-
24
- 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
- 
26
- 🏗️ Generating Cloudflare MCP-I project: test-project...
27
-
28
- ✓ src/__tests__/helpers/copy-template.test.ts (11 tests) 72ms
29
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
30
- 
31
- 📦 Installing dependencies with npm...
32
- Lockfile created (package-lock.json) - remember to commit it
33
-
34
- 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
35
- 🔑 Generating cryptographic identity...
36
-
37
- stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
38
- ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
39
-
40
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
41
- 
42
- 🏗️ Generating Cloudflare MCP-I project: test-agent...
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
-
49
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
50
- 
51
- 📦 Installing dependencies with npm...
52
-
53
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
54
- Failed to install dependencies with npm.
55
-
56
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
57
- 
58
- 📦 Installing dependencies with npm...
59
-
60
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
61
- Failed to install dependencies with npm.
62
-
63
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
64
- 🔑 Generating cryptographic identity...
65
-
66
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
67
- Failed to install dependencies with npm.
68
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
69
- 
70
-
71
- 📦 Installing dependencies with npm...
72
-
73
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
74
- 
75
- 📦 Installing dependencies with npm...
76
-
77
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
78
- 
79
- 📦 Installing dependencies with unknown...
80
-
81
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
82
- ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
83
-
84
- ✓ src/__tests__/index.test.ts (4 tests) 110ms
85
- stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
86
- 
87
- 📦 Installing dependencies with npm...
88
-
89
- stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when package manager lockfile cannot be determined
90
- 
91
- 📦 Installing dependencies with custom...
92
-
93
- 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
94
- ✔ Created Cloudflare MCP-I template files
95
- - Generated identity keys in .dev.vars
96
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
97
- - Created modular tool structure
98
-
99
- ============================================================
100
- 🎉 Cloudflare MCP-I project created successfully!
101
- ============================================================
102
-
103
- 📝 Important Configuration Notes:
104
-
105
- 1. ADMIN_API_KEY (in .dev.vars):
106
- - Set to same value as AGENTSHIELD_API_KEY for convenience
107
- - You can change it if you need separate admin endpoint security
108
- - Required for admin endpoints like /admin/clear-cache
109
-
110
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
111
- - Required for MCP-I security features
112
- - Automatically created on first deploy - no setup needed!
113
- - Wrangler updates wrangler.toml with namespace IDs
114
-
115
- 🚀 Next Steps:
116
- cd test-project
117
- wrangler login # Login to Cloudflare first!
118
- npm run dev # Start local development
119
- npm run deploy # Deploy (KV auto-created!)
120
-
121
-
122
- ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 95ms
123
- ✓ src/__tests__/helpers/install.test.ts (21 tests) 76ms
124
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
125
- ✔ Created Cloudflare MCP-I template files
126
- - Generated identity keys in .dev.vars
127
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
128
- - Created modular tool structure
129
-
130
- ============================================================
131
- 🎉 Cloudflare MCP-I project created successfully!
132
- ============================================================
133
-
134
- 📝 Important Configuration Notes:
135
-
136
- 1. ADMIN_API_KEY (in .dev.vars):
137
- - Set to same value as AGENTSHIELD_API_KEY for convenience
138
- - You can change it if you need separate admin endpoint security
139
- - Required for admin endpoints like /admin/clear-cache
140
-
141
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
142
- - Required for MCP-I security features
143
- - ✨ Automatically created on first deploy - no setup needed!
144
- - Wrangler updates wrangler.toml with namespace IDs
145
-
146
- 🚀 Next Steps:
147
- cd test-agent
148
- wrangler login # Login to Cloudflare first!
149
- npm run dev # Start local development
150
- npm run deploy # Deploy (KV auto-created!)
151
-
152
-
153
- 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
154
- 
155
- 🏗️ Generating Cloudflare MCP-I project: test-project-env...
156
-
157
- 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
158
- 🔑 Generating cryptographic identity...
159
-
160
- 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
161
- ✔ Created Cloudflare MCP-I template files
162
- - Generated identity keys in .dev.vars
163
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
164
- - Created modular tool structure
165
-
166
- ============================================================
167
- 🎉 Cloudflare MCP-I project created successfully!
168
- ============================================================
169
-
170
- 📝 Important Configuration Notes:
171
-
172
- 1. ADMIN_API_KEY (in .dev.vars):
173
- - Set to same value as AGENTSHIELD_API_KEY for convenience
174
- - You can change it if you need separate admin endpoint security
175
- - Required for admin endpoints like /admin/clear-cache
176
-
177
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
178
- - Required for MCP-I security features
179
- - ✨ Automatically created on first deploy - no setup needed!
180
- - Wrangler updates wrangler.toml with namespace IDs
181
-
182
- 🚀 Next Steps:
183
- cd test-project-env
184
- wrangler login # Login to Cloudflare first!
185
- npm run dev # Start local development
186
- npm run deploy # Deploy (KV auto-created!)
187
-
188
-
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
190
- 
191
- 🏗️ Generating Cloudflare MCP-I project: test-project-with-id...
192
-
193
- 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
194
- 🔑 Generating cryptographic identity...
195
-
196
- 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
197
- ✔ Created Cloudflare MCP-I template files
198
- - Generated identity keys in .dev.vars
199
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
200
- - Created modular tool structure
201
-
202
- ============================================================
203
- 🎉 Cloudflare MCP-I project created successfully!
204
- ============================================================
205
-
206
- 📝 Important Configuration Notes:
207
-
208
- 1. ADMIN_API_KEY (in .dev.vars):
209
- - Set to same value as AGENTSHIELD_API_KEY for convenience
210
- - You can change it if you need separate admin endpoint security
211
- - Required for admin endpoints like /admin/clear-cache
212
-
213
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
214
- - Required for MCP-I security features
215
- - Automatically created on first deploy - no setup needed!
216
- - Wrangler updates wrangler.toml with namespace IDs
217
-
218
- 🚀 Next Steps:
219
- cd test-project-with-id
220
- wrangler login # Login to Cloudflare first!
221
- npm run dev # Start local development
222
- npm run deploy # Deploy (KV auto-created!)
223
-
224
-
225
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
226
- 
227
- 🏗️ Generating Cloudflare MCP-I project: my-awesome-agent...
228
-
229
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
230
- 🔑 Generating cryptographic identity...
231
-
232
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
233
- ✔ Created Cloudflare MCP-I template files
234
- - Generated identity keys in .dev.vars
235
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
236
- - Created modular tool structure
237
-
238
- ============================================================
239
- 🎉 Cloudflare MCP-I project created successfully!
240
- ============================================================
241
-
242
- 📝 Important Configuration Notes:
243
-
244
- 1. ADMIN_API_KEY (in .dev.vars):
245
- - Set to same value as AGENTSHIELD_API_KEY for convenience
246
- - You can change it if you need separate admin endpoint security
247
- - Required for admin endpoints like /admin/clear-cache
248
-
249
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
250
- - Required for MCP-I security features
251
- - Automatically created on first deploy - no setup needed!
252
- - Wrangler updates wrangler.toml with namespace IDs
253
-
254
- 🚀 Next Steps:
255
- cd my-awesome-agent
256
- wrangler login # Login to Cloudflare first!
257
- npm run dev # Start local development
258
- npm run deploy # Deploy (KV auto-created!)
259
-
260
-
261
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
262
- 
263
- 🏗️ Generating Cloudflare MCP-I project: test-agent...
264
-
265
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
266
- 🔑 Generating cryptographic identity...
267
-
268
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
269
- ✔ Created Cloudflare MCP-I template files
270
- - Generated identity keys in .dev.vars
271
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
272
- - Created modular tool structure
273
-
274
- ============================================================
275
- 🎉 Cloudflare MCP-I project created successfully!
276
- ============================================================
277
-
278
- 📝 Important Configuration Notes:
279
-
280
- 1. ADMIN_API_KEY (in .dev.vars):
281
- - Set to same value as AGENTSHIELD_API_KEY for convenience
282
- - You can change it if you need separate admin endpoint security
283
- - Required for admin endpoints like /admin/clear-cache
284
-
285
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
286
- - Required for MCP-I security features
287
- - Automatically created on first deploy - no setup needed!
288
- - Wrangler updates wrangler.toml with namespace IDs
289
-
290
- 🚀 Next Steps:
291
- cd test-agent
292
- wrangler login # Login to Cloudflare first!
293
- npm run dev # Start local development
294
- npm run deploy # Deploy (KV auto-created!)
295
-
296
-
297
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
298
- 
299
- 🏗️ Generating Cloudflare MCP-I project: test-agent...
300
-
301
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
302
- 🔑 Generating cryptographic identity...
303
-
304
- ✓ src/__tests__/helpers/fetch-mcpi-template.test.ts (16 tests) 79ms
305
- 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
306
- 
307
- 🏗️ Generating Cloudflare MCP-I project: test-project-no-id...
308
-
309
- 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
310
- 🔑 Generating cryptographic identity...
311
-
312
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
313
- ✔ Created Cloudflare MCP-I template files
314
- - Generated identity keys in .dev.vars
315
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
316
- - Created modular tool structure
317
-
318
- ============================================================
319
- 🎉 Cloudflare MCP-I project created successfully!
320
- ============================================================
321
-
322
- 📝 Important Configuration Notes:
323
-
324
- 1. ADMIN_API_KEY (in .dev.vars):
325
- - Set to same value as AGENTSHIELD_API_KEY for convenience
326
- - You can change it if you need separate admin endpoint security
327
- - Required for admin endpoints like /admin/clear-cache
328
-
329
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
330
- - Required for MCP-I security features
331
- - ✨ Automatically created on first deploy - no setup needed!
332
- - Wrangler updates wrangler.toml with namespace IDs
333
-
334
- 🚀 Next Steps:
335
- cd test-agent
336
- wrangler login # Login to Cloudflare first!
337
- npm run dev # Start local development
338
- npm run deploy # Deploy (KV auto-created!)
339
-
340
-
341
- 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
342
- ✔ Created Cloudflare MCP-I template files
343
- - Generated identity keys in .dev.vars
344
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
345
- - Created modular tool structure
346
-
347
- ============================================================
348
- 🎉 Cloudflare MCP-I project created successfully!
349
- ============================================================
350
-
351
- 📝 Important Configuration Notes:
352
-
353
- 1. ADMIN_API_KEY (in .dev.vars):
354
- - Set to same value as AGENTSHIELD_API_KEY for convenience
355
- - You can change it if you need separate admin endpoint security
356
- - Required for admin endpoints like /admin/clear-cache
357
-
358
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
359
- - Required for MCP-I security features
360
- - Automatically created on first deploy - no setup needed!
361
- - Wrangler updates wrangler.toml with namespace IDs
362
-
363
- 🚀 Next Steps:
364
- cd test-project-no-id
365
- wrangler login # Login to Cloudflare first!
366
- npm run dev # Start local development
367
- npm run deploy # Deploy (KV auto-created!)
368
-
369
-
370
- ✓ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 176ms
371
- 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
372
- 
373
- 🏗️ Generating Cloudflare MCP-I project: test-project-runtime...
374
-
375
- 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
376
- 🔑 Generating cryptographic identity...
377
-
378
- stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
379
- 
380
- create-mcpi-app@1.8.45
381
-
382
- stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
383
- BANNER
384
-
385
- Enhanced with identity features by MCP-I
386
-
387
-
388
- stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
389
- 
390
- Next Steps:
391
- 1. Install dependencies:
392
- cd my-agent
393
- npm install
394
-
395
- 2. Start development server:
396
- npm run dev
397
-
398
- 3. Deploy when ready:
399
- npm run start
400
-
401
- stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
402
- 
403
- create-mcpi-app@1.8.45
404
-
405
- stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
406
- stderr | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
407
- BANNER
408
-
409
- Enhanced with identity features by MCP-I
410
-
411
- Invalid project name:
412
-
413
- - bad
414
-
415
- stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
416
- 
417
- create-mcpi-app@1.8.45
418
-
419
- stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
420
- BANNER
421
-
422
- Enhanced with identity features by MCP-I
423
-
424
-
425
- stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
426
- 
427
- Next Steps:
428
- 1. Install dependencies:
429
- cd pnpm-agent
430
- pnpm install
431
-
432
- 2. Initialize identity:
433
- pnpm init
434
-
435
- 3. Start development server:
436
- pnpm dev
437
-
438
- 4. Deploy when ready:
439
- pnpm start
440
-
441
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
442
- 
443
- create-mcpi-app@1.8.45
444
-
445
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
446
- BANNER
447
-
448
- Enhanced with identity features by MCP-I
449
-
450
-
451
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
452
- 
453
- Creating a new xmcp app in /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/interactive-app.
454
-
455
-
456
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
457
- 
458
- Next Steps:
459
- 1. Install dependencies:
460
- cd interactive-app
461
- pnpm install
462
-
463
- 2. Start development server:
464
- pnpm dev
465
-
466
- 3. Deploy when ready:
467
- pnpm start
468
-
469
- 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
470
- ✔ Created Cloudflare MCP-I template files
471
- - Generated identity keys in .dev.vars
472
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
473
- - Created modular tool structure
474
-
475
- ============================================================
476
- 🎉 Cloudflare MCP-I project created successfully!
477
- ============================================================
478
-
479
- 📝 Important Configuration Notes:
480
-
481
- 1. ADMIN_API_KEY (in .dev.vars):
482
- - Set to same value as AGENTSHIELD_API_KEY for convenience
483
- - You can change it if you need separate admin endpoint security
484
- - Required for admin endpoints like /admin/clear-cache
485
-
486
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
487
- - Required for MCP-I security features
488
- - Automatically created on first deploy - no setup needed!
489
- - Wrangler updates wrangler.toml with namespace IDs
490
-
491
- 🚀 Next Steps:
492
- cd test-project-runtime
493
- wrangler login # Login to Cloudflare first!
494
- npm run dev # Start local development
495
- npm run deploy # Deploy (KV auto-created!)
496
-
497
-
498
- ✓ src/__tests__/cli-runner.test.ts (4 tests) 321ms
499
- ✓ passes CLI flags to createProject when using --yes  315ms
500
- ✓ src/__tests__/wrangler-v4-compatibility.test.ts (11 tests) 211ms
501
- ✓ src/__tests__/helpers/create.test.ts (13 tests) 118ms
502
- 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
503
- 
504
- 🏗️ Generating Cloudflare MCP-I project: test-project-no-workspace...
505
-
506
- 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
507
- 🔑 Generating cryptographic identity...
508
-
509
- ✓ src/__tests__/utils/check-node.test.ts (7 tests) 16ms
510
- 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
511
- ✔ Created Cloudflare MCP-I template files
512
- - Generated identity keys in .dev.vars
513
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
514
- - Created modular tool structure
515
-
516
- ============================================================
517
- 🎉 Cloudflare MCP-I project created successfully!
518
- ============================================================
519
-
520
- 📝 Important Configuration Notes:
521
-
522
- 1. ADMIN_API_KEY (in .dev.vars):
523
- - Set to same value as AGENTSHIELD_API_KEY for convenience
524
- - You can change it if you need separate admin endpoint security
525
- - Required for admin endpoints like /admin/clear-cache
526
-
527
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
528
- - Required for MCP-I security features
529
- - Automatically created on first deploy - no setup needed!
530
- - Wrangler updates wrangler.toml with namespace IDs
531
-
532
- 🚀 Next Steps:
533
- cd test-project-no-workspace
534
- wrangler login # Login to Cloudflare first!
535
- npm run dev # Start local development
536
- npm run deploy # Deploy (KV auto-created!)
537
-
538
-
539
- ✓ src/__tests__/e2e/scaffolder-dependency-verification.test.ts (7 tests) 285ms
540
- ✓ src/__tests__/helpers/apply-identity-preset.test.ts (16 tests) 350ms
541
- ✓ src/__tests__/helpers/rename.test.ts (6 tests) 21ms
542
- ✓ src/__tests__/helpers/identity-manager.test.ts (16 tests) 297ms
543
- ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 380ms
544
- ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 924ms
545
- ✓ should transform KV namespace bindings correctly  349ms
546
- stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
547
- [Session] Created session: secure-session
548
-
549
- ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 19ms
550
- stderr | src/__tests__/helpers/fetch-xmcp-template.test.ts > fetchXMCPTemplate > falls back to default when next channel is unavailable
551
- ⚠️ dist-tag 'next' not available for xmcp, falling back to ^0.3.1
552
-
553
- ✓ src/__tests__/helpers/get-package-versions.test.ts (6 tests) 38ms
554
- ✓ src/__tests__/helpers/fetch-xmcp-template.test.ts (3 tests) 18ms
555
- ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 97ms
556
- ✓ src/__tests__/utils/validate-project-name.test.ts (29 tests) 14ms
557
- ✓ src/__tests__/utils/is-folder-empty.test.ts (21 tests) 28ms
558
- ✓ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 1075ms
559
- ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
560
- ✓ src/__tests__/helpers/fetch-cloudflare-template.test.ts (4 tests) 166ms
561
- ❯ test-cloudflare/tests/do-routing.test.ts (14 tests | 1 failed) 894ms
562
- ✓ should route to different instances for different sessions 119ms
563
- ✓ should route to same instance for same session 0ms
564
- ✓ should handle both mcp-session-id header casings 0ms
565
- ✓ should generate random session if header missing 1ms
566
- ✓ should distribute requests across shards 16ms
567
- ✓ should consistently route same session to same shard 0ms
568
- ✓ should respect custom shard count 4ms
569
- ✓ should fall back to default when strategy unknown 1ms
570
- ✓ should use session strategy when not configured 0ms
571
-  × session routing should have O(1) complexity 699ms
572
- ✓ shard routing should have O(n) complexity for hash 48ms
573
- ✓ should handle empty session ID 0ms
574
- ✓ should handle non-numeric shard count 0ms
575
- ✓ should handle special characters in session ID 1ms
576
- ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 21ms
577
- ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 6ms
578
- ✓ src/__tests__/effects/index.test.ts (5 tests) 6ms
579
- ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 4ms
580
- stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
581
- [RemoteConfig] Neither projectId nor agentDid provided
582
-
583
- ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
584
-
585
- ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
586
-
587
-  FAIL  test-cloudflare/tests/do-routing.test.ts > Durable Object Multi-Instance Routing > Performance Characteristics > session routing should have O(1) complexity
588
- AssertionError: expected 696.602042 to be less than 600
589
-  ❯ test-cloudflare/tests/do-routing.test.ts:229:24
590
- 227| 
591
- 228|  // Should complete 10k operations in < 600ms (relaxed for CI env…
592
- 229|  expect(duration).toBeLessThan(600);
593
-  |  ^
594
- 230|  });
595
- 231| 
596
-
597
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
598
-
599
-
600
-  Test Files  1 failed | 30 passed (31)
601
-  Tests  1 failed | 435 passed | 2 skipped (438)
602
-  Start at  16:45:08
603
-  Duration  2.03s (transform 1.69s, setup 0ms, import 5.37s, tests 5.93s, environment 3ms)
604
-
605
-  ELIFECYCLE  Command failed with exit code 1.
1
+
2
+ 
3
+ > @kya-os/create-mcpi-app@1.8.47 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
4
+ > vitest run --coverage
5
+
6
+ [?25l
7
+  RUN  v4.0.14 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
8
+ Coverage enabled with v8
9
+
10
+ [?2026h
11
+  src/__tests__/scaffolder-envprefix.test.ts [queued]
12
+
13
+  Test Files 0 passed (33)
14
+  Tests 0 passed (0)
15
+  Start at 17:08:28
16
+  Duration 201ms
17
+ [?2026l[?2026h
18
+  ❯ src/__tests__/cli-runner.test.ts 0/4
19
+  src/__tests__/cloudflare-template.test.ts [queued]
20
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts [queued]
21
+  src/__tests__/helpers/apply-identity-preset.test.ts [queued]
22
+  src/__tests__/helpers/copy-template.test.ts [queued]
23
+  ❯ src/__tests__/helpers/create.test.ts [queued]
24
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
25
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts [queued]
26
+  src/__tests__/helpers/get-package-versions.test.ts [queued]
27
+  ❯ src/__tests__/helpers/install.test.ts [queued]
28
+  src/__tests__/scaffolder-envprefix.test.ts [queued]
29
+  src/__tests__/wrangler-v4-compatibility.test.ts [queued]
30
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts [queued]
31
+
32
+  Test Files 0 passed (33)
33
+  Tests 0 passed (4)
34
+  Start at 17:08:28
35
+  Duration 303ms
36
+ [?2026l[?2026hstdout | 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
37
+ 
38
+ 🏗️ Generating Cloudflare MCP-I project: test-project...
39
+
40
+ 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
41
+ 🔑 Generating cryptographic identity...
42
+
43
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
44
+ 
45
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
46
+
47
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
48
+ 🔑 Generating cryptographic identity...
49
+
50
+ 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
51
+ ✔ Created Cloudflare MCP-I template files
52
+ - Generated identity keys in .dev.vars
53
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
54
+ - Created modular tool structure
55
+
56
+ ============================================================
57
+ 🎉 Cloudflare MCP-I project created successfully!
58
+ ============================================================
59
+
60
+ 📝 Important Configuration Notes:
61
+
62
+ 1. ADMIN_API_KEY (in .dev.vars):
63
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
64
+ - You can change it if you need separate admin endpoint security
65
+ - Required for admin endpoints like /admin/clear-cache
66
+
67
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
68
+ - Required for MCP-I security features
69
+ - ✨ Automatically created on first deploy - no setup needed!
70
+ - Wrangler updates wrangler.toml with namespace IDs
71
+
72
+ 🚀 Next Steps:
73
+ cd test-project
74
+ wrangler login # Login to Cloudflare first!
75
+ npm run dev # Start local development
76
+ npm run deploy # Deploy (KV auto-created!)
77
+
78
+
79
+ ✓ src/helpers/__tests__/generate-cloudflare-files.spec.ts (28 tests) 16ms
80
+
81
+  src/__tests__/cli-runner.test.ts 0/4
82
+  src/__tests__/cloudflare-template.test.ts 0/30
83
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
84
+  src/__tests__/helpers/apply-identity-preset.test.ts 0/16
85
+  src/__tests__/helpers/copy-template.test.ts 0/11
86
+  ❯ src/__tests__/helpers/create.test.ts [queued]
87
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
88
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 0/24
89
+  src/__tests__/helpers/get-package-versions.test.ts 0/6
90
+  ❯ src/__tests__/helpers/install.test.ts [queued]
91
+  src/__tests__/scaffolder-envprefix.test.ts 0/4
92
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 0/11
93
+  src/helpers/__tests__/generate-cloudflare-files.spec.ts 28/28
94
+
95
+  Test Files 1 passed (33)
96
+  Tests 28 passed (162)
97
+  Start at 17:08:28
98
+  Duration 404ms
99
+ [?2026l[?2026hstdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
100
+ ✔ Created Cloudflare MCP-I template files
101
+ - Generated identity keys in .dev.vars
102
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
103
+ - Created modular tool structure
104
+
105
+ ============================================================
106
+ 🎉 Cloudflare MCP-I project created successfully!
107
+ ============================================================
108
+
109
+ 📝 Important Configuration Notes:
110
+
111
+ 1. ADMIN_API_KEY (in .dev.vars):
112
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
113
+ - You can change it if you need separate admin endpoint security
114
+ - Required for admin endpoints like /admin/clear-cache
115
+
116
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
117
+ - Required for MCP-I security features
118
+ - Automatically created on first deploy - no setup needed!
119
+ - Wrangler updates wrangler.toml with namespace IDs
120
+
121
+ 🚀 Next Steps:
122
+ cd test-agent
123
+ wrangler login # Login to Cloudflare first!
124
+ npm run dev # Start local development
125
+ npm run deploy # Deploy (KV auto-created!)
126
+
127
+
128
+ ✓ src/__tests__/helpers/get-package-versions.test.ts (6 tests) 122ms
129
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
130
+ 
131
+ 📦 Installing dependencies with npm...
132
+ ✓ Lockfile created (package-lock.json) - remember to commit it
133
+
134
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
135
+ 
136
+ 📦 Installing dependencies with yarn...
137
+ Lockfile created (yarn.lock) - remember to commit it
138
+
139
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
140
+ 
141
+ 📦 Installing dependencies with pnpm...
142
+ Lockfile created (pnpm-lock.yaml) - remember to commit it
143
+
144
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
145
+ 
146
+ 📦 Installing dependencies with npm...
147
+ Lockfile created (package-lock.json) - remember to commit it
148
+
149
+ 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
150
+ 
151
+ 🏗️ Generating Cloudflare MCP-I project: test-project-env...
152
+
153
+ 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
154
+ 🔑 Generating cryptographic identity...
155
+
156
+ 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
157
+ ✔ Created Cloudflare MCP-I template files
158
+ - Generated identity keys in .dev.vars
159
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
160
+ - Created modular tool structure
161
+
162
+ ============================================================
163
+ 🎉 Cloudflare MCP-I project created successfully!
164
+ ============================================================
165
+
166
+ 📝 Important Configuration Notes:
167
+
168
+ 1. ADMIN_API_KEY (in .dev.vars):
169
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
170
+ - You can change it if you need separate admin endpoint security
171
+ - Required for admin endpoints like /admin/clear-cache
172
+
173
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
174
+ - Required for MCP-I security features
175
+ - Automatically created on first deploy - no setup needed!
176
+ - Wrangler updates wrangler.toml with namespace IDs
177
+
178
+ 🚀 Next Steps:
179
+ cd test-project-env
180
+ wrangler login # Login to Cloudflare first!
181
+ npm run dev # Start local development
182
+ npm run deploy # Deploy (KV auto-created!)
183
+
184
+
185
+ 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
186
+ 
187
+ 🏗️ Generating Cloudflare MCP-I project: test-project-with-id...
188
+
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
190
+ 🔑 Generating cryptographic identity...
191
+
192
+
193
+  src/__tests__/cli-runner.test.ts 0/4
194
+  src/__tests__/cloudflare-template.test.ts 3/30
195
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
196
+  src/__tests__/helpers/apply-identity-preset.test.ts 1/16
197
+  src/__tests__/helpers/copy-template.test.ts 11/11
198
+  src/__tests__/helpers/create.test.ts 0/13
199
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
200
+  src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
201
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
202
+  ❯ src/__tests__/helpers/install.test.ts 0/21
203
+  src/__tests__/scaffolder-envprefix.test.ts 0/4
204
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 1/11
205
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 28/28
206
+
207
+  Test Files 4 passed (33)
208
+  Tests 76 passed | 1 skipped (196)
209
+  Start at 17:08:28
210
+  Duration 516ms
211
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
212
+ ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
213
+
214
+
215
+  src/__tests__/cli-runner.test.ts 0/4
216
+  src/__tests__/cloudflare-template.test.ts 3/30
217
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
218
+  src/__tests__/helpers/apply-identity-preset.test.ts 1/16
219
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
220
+  src/__tests__/helpers/create.test.ts 0/13
221
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
222
+  src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
223
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
224
+  ❯ src/__tests__/helpers/install.test.ts 0/21
225
+  src/__tests__/scaffolder-envprefix.test.ts 0/4
226
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 1/11
227
+  src/helpers/__tests__/generate-cloudflare-files.spec.ts 28/28
228
+
229
+  Test Files 4 passed (33)
230
+  Tests 76 passed | 1 skipped (196)
231
+  Start at 17:08:28
232
+  Duration 516ms
233
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
234
+ 
235
+ 📦 Installing dependencies with npm...
236
+ ✓ Lockfile created (package-lock.json) - remember to commit it
237
+
238
+ ✓ src/__tests__/helpers/generate-cloudflare-files.test.ts (24 tests | 1 skipped) 67ms
239
+ ✓ src/__tests__/helpers/copy-template.test.ts (11 tests) 91ms
240
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
241
+ 
242
+ 📦 Installing dependencies with npm...
243
+
244
+
245
+  src/__tests__/cli-runner.test.ts 0/4
246
+  src/__tests__/cloudflare-template.test.ts 3/30
247
+  src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
248
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 1/16
249
+  src/__tests__/helpers/copy-template.test.ts 11/11
250
+  src/__tests__/helpers/create.test.ts 0/13
251
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
252
+  src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
253
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
254
+  src/__tests__/helpers/install.test.ts 0/21
255
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
256
+  src/__tests__/wrangler-v4-compatibility.test.ts 1/11
257
+  src/helpers/__tests__/generate-cloudflare-files.spec.ts 28/28
258
+
259
+  Test Files 4 passed (33)
260
+  Tests 76 passed | 1 skipped (196)
261
+  Start at 17:08:28
262
+  Duration 516ms
263
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
264
+ Failed to install dependencies with npm.
265
+
266
+
267
+  ❯ src/__tests__/cli-runner.test.ts 0/4
268
+  src/__tests__/cloudflare-template.test.ts 3/30
269
+  src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
270
+  src/__tests__/helpers/apply-identity-preset.test.ts 1/16
271
+  src/__tests__/helpers/copy-template.test.ts 11/11
272
+  src/__tests__/helpers/create.test.ts 0/13
273
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
274
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
275
+  src/__tests__/helpers/get-package-versions.test.ts 6/6
276
+  ❯ src/__tests__/helpers/install.test.ts 0/21
277
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
278
+  src/__tests__/wrangler-v4-compatibility.test.ts 1/11
279
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 28/28
280
+
281
+  Test Files 4 passed (33)
282
+  Tests 76 passed | 1 skipped (196)
283
+  Start at 17:08:28
284
+  Duration 516ms
285
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
286
+ 
287
+ 📦 Installing dependencies with npm...
288
+
289
+
290
+  src/__tests__/cli-runner.test.ts 0/4
291
+  ❯ src/__tests__/cloudflare-template.test.ts 3/30
292
+  src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
293
+  src/__tests__/helpers/apply-identity-preset.test.ts 1/16
294
+  src/__tests__/helpers/copy-template.test.ts 11/11
295
+  ❯ src/__tests__/helpers/create.test.ts 0/13
296
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
297
+  src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
298
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
299
+  src/__tests__/helpers/install.test.ts 0/21
300
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
301
+  src/__tests__/wrangler-v4-compatibility.test.ts 1/11
302
+  src/helpers/__tests__/generate-cloudflare-files.spec.ts 28/28
303
+
304
+  Test Files 4 passed (33)
305
+  Tests 76 passed | 1 skipped (196)
306
+  Start at 17:08:28
307
+  Duration 516ms
308
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
309
+ Failed to install dependencies with npm.
310
+
311
+
312
+  src/__tests__/cli-runner.test.ts 0/4
313
+  src/__tests__/cloudflare-template.test.ts 3/30
314
+  src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
315
+  src/__tests__/helpers/apply-identity-preset.test.ts 1/16
316
+  src/__tests__/helpers/copy-template.test.ts 11/11
317
+  ❯ src/__tests__/helpers/create.test.ts 0/13
318
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
319
+  src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
320
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
321
+  ❯ src/__tests__/helpers/install.test.ts 0/21
322
+  src/__tests__/scaffolder-envprefix.test.ts 0/4
323
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 1/11
324
+  src/helpers/__tests__/generate-cloudflare-files.spec.ts 28/28
325
+
326
+  Test Files 4 passed (33)
327
+  Tests 76 passed | 1 skipped (196)
328
+  Start at 17:08:28
329
+  Duration 516ms
330
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
331
+ 
332
+ 📦 Installing dependencies with npm...
333
+
334
+
335
+  ❯ src/__tests__/cli-runner.test.ts 0/4
336
+  src/__tests__/cloudflare-template.test.ts 3/30
337
+  src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
338
+  src/__tests__/helpers/apply-identity-preset.test.ts 1/16
339
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
340
+  ❯ src/__tests__/helpers/create.test.ts 0/13
341
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
342
+  src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
343
+  src/__tests__/helpers/get-package-versions.test.ts 6/6
344
+  src/__tests__/helpers/install.test.ts 0/21
345
+  src/__tests__/scaffolder-envprefix.test.ts 0/4
346
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 1/11
347
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 28/28
348
+
349
+  Test Files 4 passed (33)
350
+  Tests 76 passed | 1 skipped (196)
351
+  Start at 17:08:28
352
+  Duration 516ms
353
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
354
+ Failed to install dependencies with npm.
355
+
356
+
357
+  ❯ src/__tests__/cli-runner.test.ts 0/4
358
+  src/__tests__/cloudflare-template.test.ts 3/30
359
+  src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
360
+  src/__tests__/helpers/apply-identity-preset.test.ts 1/16
361
+  src/__tests__/helpers/copy-template.test.ts 11/11
362
+  ❯ src/__tests__/helpers/create.test.ts 0/13
363
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
364
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
365
+  src/__tests__/helpers/get-package-versions.test.ts 6/6
366
+  src/__tests__/helpers/install.test.ts 0/21
367
+  src/__tests__/scaffolder-envprefix.test.ts 0/4
368
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 1/11
369
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 28/28
370
+
371
+  Test Files 4 passed (33)
372
+  Tests 76 passed | 1 skipped (196)
373
+  Start at 17:08:28
374
+  Duration 516ms
375
+ [?2026l[?2026hstdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should set AGENTSHIELD_PROJECT_ID when --project is provided
376
+  Created Cloudflare MCP-I template files
377
+ - Generated identity keys in .dev.vars
378
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
379
+ - Created modular tool structure
380
+
381
+ ============================================================
382
+ 🎉 Cloudflare MCP-I project created successfully!
383
+ ============================================================
384
+
385
+ 📝 Important Configuration Notes:
386
+
387
+ 1. ADMIN_API_KEY (in .dev.vars):
388
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
389
+ - You can change it if you need separate admin endpoint security
390
+ - Required for admin endpoints like /admin/clear-cache
391
+
392
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
393
+ - Required for MCP-I security features
394
+ - ✨ Automatically created on first deploy - no setup needed!
395
+ - Wrangler updates wrangler.toml with namespace IDs
396
+
397
+ 🚀 Next Steps:
398
+ cd test-project-with-id
399
+ wrangler login # Login to Cloudflare first!
400
+ npm run dev # Start local development
401
+ npm run deploy # Deploy (KV auto-created!)
402
+
403
+
404
+ 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
405
+ 
406
+ 🏗️ Generating Cloudflare MCP-I project: test-project-no-id...
407
+
408
+ 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
409
+ 🔑 Generating cryptographic identity...
410
+
411
+
412
+  ❯ src/__tests__/cli-runner.test.ts 0/4
413
+  ❯ src/__tests__/cloudflare-template.test.ts 3/30
414
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
415
+  src/__tests__/helpers/apply-identity-preset.test.ts 1/16
416
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
417
+  ❯ src/__tests__/helpers/create.test.ts 0/13
418
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
419
+  src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
420
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
421
+  ❯ src/__tests__/helpers/install.test.ts 0/21
422
+  src/__tests__/scaffolder-envprefix.test.ts 0/4
423
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 1/11
424
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 28/28
425
+
426
+  Test Files 4 passed (33)
427
+  Tests 76 passed | 1 skipped (196)
428
+  Start at 17:08:28
429
+  Duration 516ms
430
+ [?2026l[?2026hstdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
431
+ 
432
+ 🏗️ Generating Cloudflare MCP-I project: my-awesome-agent...
433
+
434
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
435
+ 🔑 Generating cryptographic identity...
436
+
437
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
438
+ 
439
+ 📦 Installing dependencies with npm...
440
+
441
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
442
+ 
443
+ 📦 Installing dependencies with unknown...
444
+
445
+
446
+  ❯ src/__tests__/cli-runner.test.ts 1/4
447
+  ❯ src/__tests__/cloudflare-template.test.ts 10/30
448
+  src/__tests__/e2e/scaffolder-dependency-verification.test.ts 7/7
449
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 7/16
450
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
451
+  src/__tests__/helpers/create.test.ts 13/13
452
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
453
+  src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
454
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
455
+  ❯ src/__tests__/helpers/install.test.ts 21/21
456
+  src/__tests__/index.test.ts 0/4
457
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
458
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
459
+
460
+  Test Files 8 passed (33)
461
+  Tests 142 passed | 1 skipped (200)
462
+  Start at 17:08:28
463
+  Duration 716ms
464
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
465
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
466
+
467
+
468
+  ❯ src/__tests__/cli-runner.test.ts 1/4
469
+  src/__tests__/cloudflare-template.test.ts 10/30
470
+  src/__tests__/e2e/scaffolder-dependency-verification.test.ts 7/7
471
+  src/__tests__/helpers/apply-identity-preset.test.ts 7/16
472
+  src/__tests__/helpers/copy-template.test.ts 11/11
473
+  src/__tests__/helpers/create.test.ts 13/13
474
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
475
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
476
+  src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
477
+  ❯ src/__tests__/helpers/install.test.ts 21/21
478
+  ❯ src/__tests__/index.test.ts 0/4
479
+  src/__tests__/scaffolder-envprefix.test.ts 2/4
480
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
481
+
482
+  Test Files 8 passed (33)
483
+  Tests 142 passed | 1 skipped (200)
484
+  Start at 17:08:28
485
+  Duration 716ms
486
+ [?2026l[?2026hstdout | 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
487
+ ✔ Created Cloudflare MCP-I template files
488
+ - Generated identity keys in .dev.vars
489
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
490
+ - Created modular tool structure
491
+
492
+ ============================================================
493
+ 🎉 Cloudflare MCP-I project created successfully!
494
+ ============================================================
495
+
496
+ 📝 Important Configuration Notes:
497
+
498
+ 1. ADMIN_API_KEY (in .dev.vars):
499
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
500
+ - You can change it if you need separate admin endpoint security
501
+ - Required for admin endpoints like /admin/clear-cache
502
+
503
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
504
+ - Required for MCP-I security features
505
+ - ✨ Automatically created on first deploy - no setup needed!
506
+ - Wrangler updates wrangler.toml with namespace IDs
507
+
508
+ 🚀 Next Steps:
509
+ cd test-project-no-id
510
+ wrangler login # Login to Cloudflare first!
511
+ npm run dev # Start local development
512
+ npm run deploy # Deploy (KV auto-created!)
513
+
514
+
515
+ 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
516
+ 
517
+ 🏗️ Generating Cloudflare MCP-I project: test-project-runtime...
518
+
519
+ 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
520
+ 🔑 Generating cryptographic identity...
521
+
522
+ 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
523
+ ✔ Created Cloudflare MCP-I template files
524
+ - Generated identity keys in .dev.vars
525
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
526
+ - Created modular tool structure
527
+
528
+ ============================================================
529
+ 🎉 Cloudflare MCP-I project created successfully!
530
+ ============================================================
531
+
532
+ 📝 Important Configuration Notes:
533
+
534
+ 1. ADMIN_API_KEY (in .dev.vars):
535
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
536
+ - You can change it if you need separate admin endpoint security
537
+ - Required for admin endpoints like /admin/clear-cache
538
+
539
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
540
+ - Required for MCP-I security features
541
+ - Automatically created on first deploy - no setup needed!
542
+ - Wrangler updates wrangler.toml with namespace IDs
543
+
544
+ 🚀 Next Steps:
545
+ cd test-project-runtime
546
+ wrangler login # Login to Cloudflare first!
547
+ npm run dev # Start local development
548
+ npm run deploy # Deploy (KV auto-created!)
549
+
550
+
551
+ 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
552
+ 
553
+ 🏗️ Generating Cloudflare MCP-I project: test-project-no-workspace...
554
+
555
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
556
+ 
557
+ 📦 Installing dependencies with npm...
558
+
559
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when package manager lockfile cannot be determined
560
+ 
561
+ 📦 Installing dependencies with custom...
562
+
563
+ 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
564
+ 🔑 Generating cryptographic identity...
565
+
566
+ ✓ src/__tests__/helpers/install.test.ts (21 tests) 119ms
567
+ ✓ src/__tests__/wrangler-v4-compatibility.test.ts (11 tests) 144ms
568
+ 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
569
+  Created Cloudflare MCP-I template files
570
+ - Generated identity keys in .dev.vars
571
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
572
+ - Created modular tool structure
573
+
574
+ ============================================================
575
+ 🎉 Cloudflare MCP-I project created successfully!
576
+ ============================================================
577
+
578
+ 📝 Important Configuration Notes:
579
+
580
+ 1. ADMIN_API_KEY (in .dev.vars):
581
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
582
+ - You can change it if you need separate admin endpoint security
583
+ - Required for admin endpoints like /admin/clear-cache
584
+
585
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
586
+ - Required for MCP-I security features
587
+ - Automatically created on first deploy - no setup needed!
588
+ - Wrangler updates wrangler.toml with namespace IDs
589
+
590
+ 🚀 Next Steps:
591
+ cd test-project-no-workspace
592
+ wrangler login # Login to Cloudflare first!
593
+ npm run dev # Start local development
594
+ npm run deploy # Deploy (KV auto-created!)
595
+
596
+
597
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
598
+ ✔ Created Cloudflare MCP-I template files
599
+ - Generated identity keys in .dev.vars
600
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
601
+ - Created modular tool structure
602
+
603
+ ============================================================
604
+ 🎉 Cloudflare MCP-I project created successfully!
605
+ ============================================================
606
+
607
+ 📝 Important Configuration Notes:
608
+
609
+ 1. ADMIN_API_KEY (in .dev.vars):
610
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
611
+ - You can change it if you need separate admin endpoint security
612
+ - Required for admin endpoints like /admin/clear-cache
613
+
614
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
615
+ - Required for MCP-I security features
616
+ - ✨ Automatically created on first deploy - no setup needed!
617
+ - Wrangler updates wrangler.toml with namespace IDs
618
+
619
+ 🚀 Next Steps:
620
+ cd my-awesome-agent
621
+ wrangler login # Login to Cloudflare first!
622
+ npm run dev # Start local development
623
+ npm run deploy # Deploy (KV auto-created!)
624
+
625
+
626
+ ✓ src/__tests__/helpers/create.test.ts (13 tests) 83ms
627
+ ✓ src/__tests__/e2e/scaffolder-dependency-verification.test.ts (7 tests) 205ms
628
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
629
+ 
630
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
631
+
632
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
633
+ 🔑 Generating cryptographic identity...
634
+
635
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
636
+ 
637
+ create-mcpi-app@1.8.47
638
+
639
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
640
+ BANNER
641
+
642
+ Enhanced with identity features by MCP-I
643
+
644
+
645
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
646
+ 
647
+ Next Steps:
648
+ 1. Install dependencies:
649
+ cd my-agent
650
+ npm install
651
+
652
+ 2. Start development server:
653
+ npm run dev
654
+
655
+ 3. Deploy when ready:
656
+ npm run start
657
+
658
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
659
+ 
660
+ create-mcpi-app@1.8.47
661
+
662
+
663
+  ❯ src/__tests__/cli-runner.test.ts 1/4
664
+  ❯ src/__tests__/cloudflare-template.test.ts 10/30
665
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 7/7
666
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 7/16
667
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
668
+  ❯ src/__tests__/helpers/create.test.ts 13/13
669
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
670
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
671
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
672
+  ❯ src/__tests__/helpers/install.test.ts 21/21
673
+  ❯ src/__tests__/index.test.ts 0/4
674
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
675
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
676
+
677
+  Test Files 8 passed (33)
678
+  Tests 142 passed | 1 skipped (200)
679
+  Start at 17:08:28
680
+  Duration 716ms
681
+ [?2026l[?2026hstderr | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
682
+ Invalid project name:
683
+ - bad
684
+
685
+
686
+  ❯ src/__tests__/cli-runner.test.ts 1/4
687
+  ❯ src/__tests__/cloudflare-template.test.ts 10/30
688
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 7/7
689
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 7/16
690
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
691
+  ❯ src/__tests__/helpers/create.test.ts 13/13
692
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
693
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
694
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
695
+  ❯ src/__tests__/helpers/install.test.ts 21/21
696
+  ❯ src/__tests__/index.test.ts 0/4
697
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
698
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
699
+
700
+  Test Files 8 passed (33)
701
+  Tests 142 passed | 1 skipped (200)
702
+  Start at 17:08:28
703
+  Duration 716ms
704
+ [?2026l[?2026hstdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
705
+ BANNER
706
+
707
+ Enhanced with identity features by MCP-I
708
+
709
+
710
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
711
+ 
712
+ create-mcpi-app@1.8.47
713
+
714
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
715
+ BANNER
716
+
717
+ Enhanced with identity features by MCP-I
718
+
719
+
720
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
721
+ 
722
+ Next Steps:
723
+ 1. Install dependencies:
724
+ cd pnpm-agent
725
+ pnpm install
726
+
727
+ 2. Initialize identity:
728
+ pnpm init
729
+
730
+ 3. Start development server:
731
+ pnpm dev
732
+
733
+ 4. Deploy when ready:
734
+ pnpm start
735
+
736
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
737
+ 
738
+ create-mcpi-app@1.8.47
739
+
740
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
741
+ BANNER
742
+
743
+ Enhanced with identity features by MCP-I
744
+
745
+
746
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
747
+ 
748
+ Creating a new xmcp app in /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/interactive-app.
749
+
750
+
751
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
752
+ 
753
+ Next Steps:
754
+ 1. Install dependencies:
755
+ cd interactive-app
756
+ pnpm install
757
+
758
+ 2. Start development server:
759
+ pnpm dev
760
+
761
+ 3. Deploy when ready:
762
+ pnpm start
763
+
764
+
765
+  ❯ src/__tests__/cli-runner.test.ts 1/4
766
+  ❯ src/__tests__/cloudflare-template.test.ts 10/30
767
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 7/7
768
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 7/16
769
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
770
+  ❯ src/__tests__/helpers/create.test.ts 13/13
771
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/21
772
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
773
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
774
+  ❯ src/__tests__/helpers/install.test.ts 21/21
775
+  ❯ src/__tests__/index.test.ts 0/4
776
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
777
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
778
+
779
+  Test Files 8 passed (33)
780
+  Tests 142 passed | 1 skipped (200)
781
+  Start at 17:08:28
782
+  Duration 716ms
783
+ [?2026l[?2026h ✓ src/__tests__/cli-runner.test.ts (4 tests) 369ms
784
+ ✓ passes CLI flags to createProject when using --yes  342ms
785
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
786
+ ✔ Created Cloudflare MCP-I template files
787
+ - Generated identity keys in .dev.vars
788
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
789
+ - Created modular tool structure
790
+
791
+ ============================================================
792
+ 🎉 Cloudflare MCP-I project created successfully!
793
+ ============================================================
794
+
795
+ 📝 Important Configuration Notes:
796
+
797
+ 1. ADMIN_API_KEY (in .dev.vars):
798
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
799
+ - You can change it if you need separate admin endpoint security
800
+ - Required for admin endpoints like /admin/clear-cache
801
+
802
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
803
+ - Required for MCP-I security features
804
+ - ✨ Automatically created on first deploy - no setup needed!
805
+ - Wrangler updates wrangler.toml with namespace IDs
806
+
807
+ 🚀 Next Steps:
808
+ cd test-agent
809
+ wrangler login # Login to Cloudflare first!
810
+ npm run dev # Start local development
811
+ npm run deploy # Deploy (KV auto-created!)
812
+
813
+
814
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
815
+ 
816
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
817
+
818
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
819
+ 🔑 Generating cryptographic identity...
820
+
821
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
822
+ ✔ Created Cloudflare MCP-I template files
823
+ - Generated identity keys in .dev.vars
824
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
825
+ - Created modular tool structure
826
+
827
+ ============================================================
828
+ 🎉 Cloudflare MCP-I project created successfully!
829
+ ============================================================
830
+
831
+ 📝 Important Configuration Notes:
832
+
833
+ 1. ADMIN_API_KEY (in .dev.vars):
834
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
835
+ - You can change it if you need separate admin endpoint security
836
+ - Required for admin endpoints like /admin/clear-cache
837
+
838
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
839
+ - Required for MCP-I security features
840
+ - ✨ Automatically created on first deploy - no setup needed!
841
+ - Wrangler updates wrangler.toml with namespace IDs
842
+
843
+ 🚀 Next Steps:
844
+ cd test-agent
845
+ wrangler login # Login to Cloudflare first!
846
+ npm run dev # Start local development
847
+ npm run deploy # Deploy (KV auto-created!)
848
+
849
+
850
+ ✓ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 353ms
851
+
852
+  ❯ src/__tests__/cli-runner.test.ts 4/4
853
+  ❯ src/__tests__/cloudflare-template.test.ts 12/30
854
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 10/16
855
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 3/21
856
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 0/4
857
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts [queued]
858
+  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
859
+  ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
860
+  ❯ src/__tests__/helpers/identity-manager.test.ts [queued]
861
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
862
+  ❯ src/__tests__/index.test.ts 3/4
863
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 4/4
864
+  ❯ test-cloudflare/tests/do-routing.test.ts [queued]
865
+
866
+  Test Files 10 passed (33)
867
+  Tests 156 passed | 1 skipped (204)
868
+  Start at 17:08:28
869
+  Duration 816ms
870
+ [?2026l[?2026h ✓ src/__tests__/helpers/fetch-cloudflare-template.test.ts (4 tests) 113ms
871
+ ✓ src/__tests__/index.test.ts (4 tests) 221ms
872
+
873
+  ❯ src/__tests__/cloudflare-template.test.ts 14/30
874
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 11/16
875
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 10/21
876
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 4/4
877
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
878
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
879
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
880
+  ❯ src/__tests__/helpers/identity-manager.test.ts 0/16
881
+  ❯ src/__tests__/helpers/rename.test.ts [queued]
882
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
883
+  ❯ src/__tests__/index.test.ts 4/4
884
+  ❯ src/__tests__/utils/validate-project-name.test.ts [queued]
885
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
886
+
887
+  Test Files 12 passed (33)
888
+  Tests 171 passed | 1 skipped (322)
889
+  Start at 17:08:28
890
+  Duration 917ms
891
+ [?2026l[?2026h ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 121ms
892
+ ✓ src/__tests__/helpers/apply-identity-preset.test.ts (16 tests) 599ms
893
+ ✓ src/__tests__/helpers/identity-manager.test.ts (16 tests) 86ms
894
+
895
+  ❯ src/__tests__/cloudflare-template.test.ts 16/30
896
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 16/16
897
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 13/21
898
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 8/16
899
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts [queued]
900
+  ❯ src/__tests__/helpers/generate-config.test.ts 25/25
901
+  ❯ src/__tests__/helpers/generate-identity.test.ts 16/24
902
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
903
+  ❯ src/__tests__/helpers/rename.test.ts [queued]
904
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 12/23
905
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 0/21
906
+  ❯ src/__tests__/utils/validate-project-name.test.ts 0/29
907
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
908
+
909
+  Test Files 15 passed (33)
910
+  Tests 258 passed | 1 skipped (372)
911
+  Start at 17:08:28
912
+  Duration 1.02s
913
+ [?2026l[?2026h ✓ src/__tests__/utils/validate-project-name.test.ts (29 tests) 62ms
914
+ ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 196ms
915
+ ✓ src/__tests__/helpers/fetch-mcpi-template.test.ts (16 tests) 222ms
916
+
917
+  ❯ src/__tests__/cloudflare-template.test.ts 16/30
918
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 16/16
919
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 14/21
920
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
921
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts [queued]
922
+  ❯ src/__tests__/helpers/generate-config.test.ts 25/25
923
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
924
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
925
+  ❯ src/__tests__/helpers/rename.test.ts [queued]
926
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 12/23
927
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 0/21
928
+  ❯ src/__tests__/utils/validate-project-name.test.ts 29/29
929
+  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
930
+
931
+  Test Files 18 passed (33)
932
+  Tests 315 passed | 1 skipped (372)
933
+  Start at 17:08:28
934
+  Duration 1.25s
935
+ [?2026l[?2026h ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 226ms
936
+ ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 314ms
937
+
938
+  ❯ src/__tests__/cloudflare-template.test.ts 21/30
939
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 16/16
940
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 17/21
941
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
942
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
943
+  ❯ src/__tests__/helpers/generate-config.test.ts 25/25
944
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
945
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
946
+  ❯ src/__tests__/helpers/rename.test.ts [queued]
947
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 0/21
948
+  ❯ src/__tests__/utils/validate-project-name.test.ts 29/29
949
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
950
+
951
+  Test Files 20 passed (33)
952
+  Tests 337 passed | 1 skipped (375)
953
+  Start at 17:08:28
954
+  Duration 1.37s
955
+ [?2026l[?2026h ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 983ms
956
+
957
+
958
+
959
+  ❯ src/__tests__/cloudflare-template.test.ts 25/30
960
+  ❯ src/__tests__/effects/index.test.ts [queued]
961
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
962
+  ❯ src/__tests__/helpers/rename.test.ts 0/6
963
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 5/21
964
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
965
+  ❯ test-cloudflare/tests/cors-security.test.ts 0/29
966
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
967
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
968
+
969
+  Test Files 23 passed (33)
970
+  Tests 369 passed | 2 skipped (427)
971
+  Start at 17:08:28
972
+  Duration 1.47s
973
+ [?2026l[?2026hstderr | src/__tests__/helpers/fetch-xmcp-template.test.ts > fetchXMCPTemplate > falls back to default when next channel is unavailable
974
+ ⚠️ dist-tag 'next' not available for xmcp, falling back to ^0.3.1
975
+
976
+
977
+
978
+  ❯ src/__tests__/cloudflare-template.test.ts 25/30
979
+  ❯ src/__tests__/effects/index.test.ts [queued]
980
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
981
+  ❯ src/__tests__/helpers/rename.test.ts 0/6
982
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 5/21
983
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
984
+  ❯ test-cloudflare/tests/cors-security.test.ts 0/29
985
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
986
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
987
+
988
+  Test Files 23 passed (33)
989
+  Tests 369 passed | 2 skipped (427)
990
+  Start at 17:08:28
991
+  Duration 1.47s
992
+ [?2026l[?2026h ✓ src/__tests__/helpers/fetch-xmcp-template.test.ts (3 tests) 22ms
993
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
994
+ [Session] Created session: secure-session
995
+
996
+ ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 19ms
997
+
998
+  ❯ src/__tests__/cloudflare-template.test.ts 25/30
999
+  ❯ src/__tests__/effects/index.test.ts [queued]
1000
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
1001
+  ❯ src/__tests__/helpers/rename.test.ts 0/6
1002
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 5/21
1003
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
1004
+  ❯ test-cloudflare/tests/cors-security.test.ts 0/29
1005
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
1006
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
1007
+
1008
+  Test Files 23 passed (33)
1009
+  Tests 369 passed | 2 skipped (427)
1010
+  Start at 17:08:28
1011
+  Duration 1.47s
1012
+ [?2026l ✓ src/__tests__/utils/is-folder-empty.test.ts (21 tests) 366ms
1013
+ ✓ src/__tests__/helpers/rename.test.ts (6 tests) 13ms
1014
+ ✓ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 1112ms
1015
+ ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
1016
+ ✓ src/__tests__/effects/index.test.ts (5 tests) 5ms
1017
+ ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
1018
+ ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 14ms
1019
+ ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 6ms
1020
+ ✓ src/__tests__/utils/check-node.test.ts (7 tests) 22ms
1021
+ stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
1022
+ [RemoteConfig] Neither projectId nor agentDid provided
1023
+
1024
+ ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 7ms
1025
+
1026
+  Test Files  33 passed (33)
1027
+  Tests  487 passed | 3 skipped (490)
1028
+  Start at  17:08:28
1029
+  Duration  1.78s (transform 1.94s, setup 0ms, import 4.30s, tests 6.31s, environment 2ms)
1030
+
1031
+  % Coverage report from v8
1032
+
1033
+ =============================== Coverage summary ===============================
1034
+ Statements : 85.37% ( 724/848 )
1035
+ Branches : 78.69% ( 351/446 )
1036
+ Functions : 91.66% ( 66/72 )
1037
+ Lines : 85.74% ( 722/842 )
1038
+ ================================================================================
1039
+ [?25h