@kya-os/create-mcpi-app 1.8.43 → 1.8.46

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