@kya-os/create-mcpi-app 1.9.33 β†’ 1.9.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/.turbo/turbo-build.log +16 -12
  2. package/.turbo/turbo-test$colon$coverage.log +1829 -0
  3. package/.turbo/turbo-test.log +628 -0
  4. package/dist/bundles/blank.js +94964 -81677
  5. package/dist/bundles/ecommerce.js +94964 -81677
  6. package/dist/bundles/hardware-world.js +94979 -81692
  7. package/dist/bundles/manifest.json +14 -9
  8. package/dist/bundles/mix-station.js +112480 -0
  9. package/dist/cli-runner.d.ts.map +1 -1
  10. package/dist/cli-runner.js +23 -0
  11. package/dist/cli-runner.js.map +1 -1
  12. package/dist/helpers/fetch-cloudflare-mcpi-template.js +1 -1
  13. package/dist/helpers/generate-cloudflare-files.d.ts +1 -1
  14. package/dist/helpers/generate-cloudflare-files.d.ts.map +1 -1
  15. package/dist/helpers/generate-cloudflare-files.js +441 -7
  16. package/dist/helpers/generate-cloudflare-files.js.map +1 -1
  17. package/dist/helpers/generate-openapi-project.d.ts +36 -0
  18. package/dist/helpers/generate-openapi-project.d.ts.map +1 -0
  19. package/dist/helpers/generate-openapi-project.js +114 -0
  20. package/dist/helpers/generate-openapi-project.js.map +1 -0
  21. package/dist/helpers/generate-openapi-tools.d.ts +43 -0
  22. package/dist/helpers/generate-openapi-tools.d.ts.map +1 -0
  23. package/dist/helpers/generate-openapi-tools.js +550 -0
  24. package/dist/helpers/generate-openapi-tools.js.map +1 -0
  25. package/dist/helpers/generate-runtime-config.d.ts +16 -0
  26. package/dist/helpers/generate-runtime-config.d.ts.map +1 -0
  27. package/dist/helpers/generate-runtime-config.js +49 -0
  28. package/dist/helpers/generate-runtime-config.js.map +1 -0
  29. package/dist/helpers/get-package-versions.js +3 -3
  30. package/dist/helpers/get-package-versions.js.map +1 -1
  31. package/dist/helpers/openapi-ingestion.d.ts +21 -0
  32. package/dist/helpers/openapi-ingestion.d.ts.map +1 -0
  33. package/dist/helpers/openapi-ingestion.js +433 -0
  34. package/dist/helpers/openapi-ingestion.js.map +1 -0
  35. package/dist/helpers/wrap/command.d.ts +12 -0
  36. package/dist/helpers/wrap/command.d.ts.map +1 -0
  37. package/dist/helpers/wrap/command.js +344 -0
  38. package/dist/helpers/wrap/command.js.map +1 -0
  39. package/dist/helpers/wrap/detect-server.d.ts +30 -0
  40. package/dist/helpers/wrap/detect-server.d.ts.map +1 -0
  41. package/dist/helpers/wrap/detect-server.js +207 -0
  42. package/dist/helpers/wrap/detect-server.js.map +1 -0
  43. package/dist/helpers/wrap/index.d.ts +13 -0
  44. package/dist/helpers/wrap/index.d.ts.map +1 -0
  45. package/dist/helpers/wrap/index.js +11 -0
  46. package/dist/helpers/wrap/index.js.map +1 -0
  47. package/dist/helpers/wrap/templates.d.ts +24 -0
  48. package/dist/helpers/wrap/templates.d.ts.map +1 -0
  49. package/dist/helpers/wrap/templates.js +221 -0
  50. package/dist/helpers/wrap/templates.js.map +1 -0
  51. package/dist/types/openapi-generator.d.ts +142 -0
  52. package/dist/types/openapi-generator.d.ts.map +1 -0
  53. package/dist/types/openapi-generator.js +8 -0
  54. package/dist/types/openapi-generator.js.map +1 -0
  55. package/package.json +31 -9
@@ -0,0 +1,628 @@
1
+
2
+ > @kya-os/create-mcpi-app@1.9.33 test /Users/dylanhobbs/@kya-os/xmcp-i/packages/create-mcpi-app
3
+ > vitest run
4
+
5
+
6
+  RUN  v4.0.18 /Users/dylanhobbs/@kya-os/xmcp-i/packages/create-mcpi-app
7
+
8
+ (node:20092) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
9
+ (Use `node --trace-warnings ...` to show where the warning was created)
10
+ 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
11
+ 
12
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project...
13
+
14
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
15
+ 
16
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-agent...
17
+
18
+ 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
19
+ πŸ”‘ Generating cryptographic identity...
20
+
21
+ (node:20080) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
22
+ (Use `node --trace-warnings ...` to show where the warning was created)
23
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
24
+ πŸ”‘ Generating cryptographic identity...
25
+
26
+ (node:20084) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
27
+ (Use `node --trace-warnings ...` to show where the warning was created)
28
+ (node:20087) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
29
+ (Use `node --trace-warnings ...` to show where the warning was created)
30
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
31
+ 
32
+ (node:20081) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
33
+ (Use `node --trace-warnings ...` to show where the warning was created)
34
+ πŸ“¦ Installing dependencies with npm...
35
+ βœ“ Lockfile created (package-lock.json) - remember to commit it
36
+
37
+ ❯ src/__tests__/helpers/identity-manager.test.ts (16 tests | 1 failed) 19ms
38
+ βœ“ should detect Node.js MCP-I project with identity.json 3ms
39
+ βœ“ should detect Node.js MCP-I project with xmcp.config.ts 1ms
40
+ βœ“ should return false for non-MCP-I project 1ms
41
+ βœ“ should return false for directory with only package.json 1ms
42
+ βœ“ should detect Cloudflare project with MCP_IDENTITY_AGENT_DID 1ms
43
+ βœ“ should detect Cloudflare project with durable_objects.bindings 1ms
44
+ βœ“ should detect Cloudflare project with AGENTSHIELD_API_KEY 1ms
45
+ βœ“ should return false for non-Cloudflare project 0ms
46
+ βœ“ should return false for plain wrangler.toml without MCP-I markers 1ms
47
+ βœ“ should reset Node.js identity by removing identity.json 1ms
48
+ βœ“ should reset Cloudflare identity by removing variables from wrangler.toml 1ms
49
+ βœ“ should handle missing identity gracefully 0ms
50
+  Γ— should regenerate identity for Node.js project 4ms
51
+ βœ“ should regenerate identity for Cloudflare project 2ms
52
+ βœ“ should exit if not an MCP-I project 1ms
53
+ βœ“ should handle both Node.js and Cloudflare project markers 3ms
54
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
55
+ 
56
+ πŸ“¦ Installing dependencies with yarn...
57
+ βœ“ Lockfile created (yarn.lock) - remember to commit it
58
+
59
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
60
+ 
61
+ πŸ“¦ Installing dependencies with pnpm...
62
+ βœ“ Lockfile created (pnpm-lock.yaml) - remember to commit it
63
+
64
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
65
+ 
66
+ πŸ“¦ Installing dependencies with npm...
67
+ βœ“ Lockfile created (package-lock.json) - remember to commit it
68
+
69
+ stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
70
+ [RemoteConfig] Neither projectId nor agentDid provided
71
+
72
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
73
+ βœ” Created Cloudflare MCP-I template files
74
+ - Generated identity keys in .dev.vars
75
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
76
+ - Created modular tool structure
77
+
78
+ ============================================================
79
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
80
+ ============================================================
81
+
82
+ πŸ“ Important Configuration Notes:
83
+
84
+ 1. ADMIN_API_KEY (in .dev.vars):
85
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
86
+ - You can change it if you need separate admin endpoint security
87
+ - Required for admin endpoints like /admin/clear-cache
88
+
89
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
90
+ - Single unified namespace for all MCP-I storage
91
+ - ✨ Automatically created on first deploy - no setup needed!
92
+ - Wrangler updates wrangler.toml with namespace ID
93
+
94
+ πŸš€ Next Steps:
95
+ cd test-agent
96
+ wrangler login # Login to Cloudflare first!
97
+ npm run dev # Start local development
98
+ npm run deploy # Deploy (KV auto-created!)
99
+
100
+
101
+ βœ“ src/helpers/__tests__/config-builder.spec.ts (12 tests) 6ms
102
+ 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
103
+ βœ” Created Cloudflare MCP-I template files
104
+ - Generated identity keys in .dev.vars
105
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
106
+ stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
107
+ - Created modular tool structure
108
+
109
+ ============================================================
110
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
111
+ ============================================================
112
+
113
+ πŸ“ Important Configuration Notes:
114
+
115
+ 1. ADMIN_API_KEY (in .dev.vars):
116
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
117
+ ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
118
+
119
+ - You can change it if you need separate admin endpoint security
120
+ - Required for admin endpoints like /admin/clear-cache
121
+
122
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
123
+ - Single unified namespace for all MCP-I storage
124
+ - ✨ Automatically created on first deploy - no setup needed!
125
+ - Wrangler updates wrangler.toml with namespace ID
126
+
127
+ πŸš€ Next Steps:
128
+ cd test-project
129
+ wrangler login # Login to Cloudflare first!
130
+ npm run dev # Start local development
131
+ npm run deploy # Deploy (KV auto-created!)
132
+
133
+
134
+ stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
135
+ 
136
+ πŸ“¦ Installing dependencies with npm...
137
+ βœ“ Lockfile created (package-lock.json) - remember to commit it
138
+
139
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
140
+ 
141
+ πŸ“¦ Installing dependencies with npm...
142
+
143
+ βœ“ src/__tests__/helpers/generate-identity.test.ts (24 tests) 43ms
144
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
145
+ Failed to install dependencies with npm.
146
+
147
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
148
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
149
+ 
150
+ Failed to install dependencies with npm.
151
+ πŸ“¦ Installing dependencies with npm...
152
+
153
+
154
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
155
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
156
+ Failed to install dependencies with npm.
157
+
158
+ 
159
+ πŸ“¦ Installing dependencies with npm...
160
+
161
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
162
+ 
163
+ πŸ—οΈ Generating Cloudflare MCP-I project: my-awesome-agent...
164
+
165
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
166
+ 
167
+ πŸ“¦ Installing dependencies with npm...
168
+
169
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
170
+ πŸ”‘ Generating cryptographic identity...
171
+
172
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
173
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
174
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
175
+
176
+ 
177
+ πŸ“¦ Installing dependencies with unknown...
178
+
179
+ 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
180
+ 
181
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project-env...
182
+
183
+ 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
184
+ πŸ”‘ Generating cryptographic identity...
185
+
186
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
187
+ 
188
+ πŸ“¦ Installing dependencies with npm...
189
+
190
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when package manager lockfile cannot be determined
191
+ 
192
+ πŸ“¦ Installing dependencies with custom...
193
+
194
+ βœ“ src/__tests__/helpers/install.test.ts (21 tests) 37ms
195
+ βœ“ src/__tests__/helpers/generate-config.test.ts (25 tests) 40ms
196
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
197
+ βœ” Created Cloudflare MCP-I template files
198
+ - Generated identity keys in .dev.vars
199
+ - Configured wrangler.toml with unified KV namespace (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 Namespace (auto-provisioned by Wrangler v4):
214
+ - Single unified namespace for all MCP-I storage
215
+ - ✨ Automatically created on first deploy - no setup needed!
216
+ - Wrangler updates wrangler.toml with namespace ID
217
+
218
+ πŸš€ Next Steps:
219
+ cd my-awesome-agent
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__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should include AGENTSHIELD_PROJECT_ID in wrangler.toml template
226
+ βœ” Created Cloudflare MCP-I template files
227
+ - Generated identity keys in .dev.vars
228
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
229
+ - Created modular tool structure
230
+
231
+ ============================================================
232
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
233
+ ============================================================
234
+
235
+ πŸ“ Important Configuration Notes:
236
+
237
+ 1. ADMIN_API_KEY (in .dev.vars):
238
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
239
+ - You can change it if you need separate admin endpoint security
240
+ - Required for admin endpoints like /admin/clear-cache
241
+
242
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
243
+ - Single unified namespace for all MCP-I storage
244
+ - ✨ Automatically created on first deploy - no setup needed!
245
+ - Wrangler updates wrangler.toml with namespace ID
246
+
247
+ πŸš€ Next Steps:
248
+ cd test-project-env
249
+ wrangler login # Login to Cloudflare first!
250
+ npm run dev # Start local development
251
+ npm run deploy # Deploy (KV auto-created!)
252
+
253
+
254
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
255
+ 
256
+ create-mcpi-app@1.9.33
257
+
258
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
259
+ BANNER
260
+
261
+ Enhanced with identity features by MCP-I
262
+
263
+
264
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
265
+ 
266
+ Next Steps:
267
+ 1. Install dependencies:
268
+ cd my-agent
269
+ npm install
270
+
271
+ 2. Start development server:
272
+ npm run dev
273
+
274
+ 3. Deploy when ready:
275
+ npm run start
276
+
277
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
278
+ 
279
+ create-mcpi-app@1.9.33
280
+
281
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
282
+ 
283
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-agent...
284
+
285
+ 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
286
+ 
287
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project-with-id...
288
+
289
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
290
+ BANNER
291
+
292
+ Enhanced with identity features by MCP-I
293
+
294
+
295
+ stderr | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
296
+ Invalid project name:
297
+ - bad
298
+
299
+ 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
300
+ πŸ”‘ Generating cryptographic identity...
301
+
302
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
303
+ 
304
+ create-mcpi-app@1.9.33
305
+
306
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
307
+ BANNER
308
+
309
+ Enhanced with identity features by MCP-I
310
+
311
+
312
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
313
+ 
314
+ Next Steps:
315
+ 1. Install dependencies:
316
+ cd pnpm-agent
317
+ pnpm install
318
+
319
+ 2. Initialize identity:
320
+ pnpm init
321
+
322
+ 3. Start development server:
323
+ pnpm dev
324
+
325
+ 4. Deploy when ready:
326
+ pnpm start
327
+
328
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
329
+ 
330
+ create-mcpi-app@1.9.33
331
+
332
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
333
+ BANNER
334
+
335
+ Enhanced with identity features by MCP-I
336
+
337
+
338
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
339
+ 
340
+ Creating a new xmcp app in /Users/dylanhobbs/@kya-os/xmcp-i/packages/create-mcpi-app/interactive-app.
341
+
342
+
343
+ βœ“ src/__tests__/helpers/fetch-mcpi-template.test.ts (16 tests) 49ms
344
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
345
+ 
346
+ Next Steps:
347
+ 1. Install dependencies:
348
+ cd interactive-app
349
+ pnpm install
350
+
351
+ 2. Start development server:
352
+ pnpm dev
353
+
354
+ 3. Deploy when ready:
355
+ pnpm start
356
+
357
+ βœ“ src/__tests__/index.test.ts (4 tests) 101ms
358
+ 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
359
+ βœ” Created Cloudflare MCP-I template files
360
+ - Generated identity keys in .dev.vars
361
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
362
+ - Created modular tool structure
363
+
364
+ ============================================================
365
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
366
+ ============================================================
367
+
368
+ πŸ“ Important Configuration Notes:
369
+
370
+ 1. ADMIN_API_KEY (in .dev.vars):
371
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
372
+ - You can change it if you need separate admin endpoint security
373
+ - Required for admin endpoints like /admin/clear-cache
374
+
375
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
376
+ - Single unified namespace for all MCP-I storage
377
+ - ✨ Automatically created on first deploy - no setup needed!
378
+ - Wrangler updates wrangler.toml with namespace ID
379
+
380
+ πŸš€ Next Steps:
381
+ cd test-project-with-id
382
+ wrangler login # Login to Cloudflare first!
383
+ npm run dev # Start local development
384
+ npm run deploy # Deploy (KV auto-created!)
385
+
386
+
387
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
388
+ πŸ”‘ Generating cryptographic identity...
389
+
390
+ 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
391
+ 
392
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project-no-id...
393
+
394
+ 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
395
+ πŸ”‘ Generating cryptographic identity...
396
+
397
+ βœ“ src/__tests__/cli-runner.test.ts (4 tests) 131ms
398
+ 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
399
+ βœ” Created Cloudflare MCP-I template files
400
+ - Generated identity keys in .dev.vars
401
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
402
+ - Created modular tool structure
403
+
404
+ ============================================================
405
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
406
+ ============================================================
407
+
408
+ πŸ“ Important Configuration Notes:
409
+
410
+ 1. ADMIN_API_KEY (in .dev.vars):
411
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
412
+ - You can change it if you need separate admin endpoint security
413
+ - Required for admin endpoints like /admin/clear-cache
414
+
415
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
416
+ - Single unified namespace for all MCP-I storage
417
+ - ✨ Automatically created on first deploy - no setup needed!
418
+ - Wrangler updates wrangler.toml with namespace ID
419
+
420
+ πŸš€ Next Steps:
421
+ cd test-project-no-id
422
+ wrangler login # Login to Cloudflare first!
423
+ npm run dev # Start local development
424
+ npm run deploy # Deploy (KV auto-created!)
425
+
426
+
427
+ 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
428
+ 
429
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project-runtime...
430
+
431
+ 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
432
+ πŸ”‘ Generating cryptographic identity...
433
+
434
+ 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
435
+ βœ” Created Cloudflare MCP-I template files
436
+ - Generated identity keys in .dev.vars
437
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
438
+ - Created modular tool structure
439
+
440
+ ============================================================
441
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
442
+ ============================================================
443
+
444
+ πŸ“ Important Configuration Notes:
445
+
446
+ 1. ADMIN_API_KEY (in .dev.vars):
447
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
448
+ - You can change it if you need separate admin endpoint security
449
+ - Required for admin endpoints like /admin/clear-cache
450
+
451
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
452
+ - Single unified namespace for all MCP-I storage
453
+ - ✨ Automatically created on first deploy - no setup needed!
454
+ - Wrangler updates wrangler.toml with namespace ID
455
+
456
+ πŸš€ Next Steps:
457
+ cd test-project-runtime
458
+ wrangler login # Login to Cloudflare first!
459
+ npm run dev # Start local development
460
+ npm run deploy # Deploy (KV auto-created!)
461
+
462
+
463
+ βœ“ src/__tests__/helpers/create.test.ts (13 tests) 57ms
464
+ 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
465
+ 
466
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project-no-workspace...
467
+
468
+ 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
469
+ πŸ”‘ Generating cryptographic identity...
470
+
471
+ 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
472
+ βœ” Created Cloudflare MCP-I template files
473
+ - Generated identity keys in .dev.vars
474
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
475
+ - Created modular tool structure
476
+
477
+ ============================================================
478
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
479
+ ============================================================
480
+
481
+ πŸ“ Important Configuration Notes:
482
+
483
+ 1. ADMIN_API_KEY (in .dev.vars):
484
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
485
+ - You can change it if you need separate admin endpoint security
486
+ - Required for admin endpoints like /admin/clear-cache
487
+
488
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
489
+ - Single unified namespace for all MCP-I storage
490
+ - ✨ Automatically created on first deploy - no setup needed!
491
+ - Wrangler updates wrangler.toml with namespace ID
492
+
493
+ πŸš€ Next Steps:
494
+ cd test-project-no-workspace
495
+ wrangler login # Login to Cloudflare first!
496
+ npm run dev # Start local development
497
+ npm run deploy # Deploy (KV auto-created!)
498
+
499
+
500
+ βœ“ src/__tests__/e2e/scaffolder-dependency-verification.test.ts (7 tests) 112ms
501
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
502
+ βœ” Created Cloudflare MCP-I template files
503
+ - Generated identity keys in .dev.vars
504
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
505
+ - Created modular tool structure
506
+
507
+ ============================================================
508
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
509
+ ============================================================
510
+
511
+ πŸ“ Important Configuration Notes:
512
+
513
+ 1. ADMIN_API_KEY (in .dev.vars):
514
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
515
+ - You can change it if you need separate admin endpoint security
516
+ - Required for admin endpoints like /admin/clear-cache
517
+
518
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
519
+ - Single unified namespace for all MCP-I storage
520
+ - ✨ Automatically created on first deploy - no setup needed!
521
+ - Wrangler updates wrangler.toml with namespace ID
522
+
523
+ πŸš€ Next Steps:
524
+ cd test-agent
525
+ wrangler login # Login to Cloudflare first!
526
+ npm run dev # Start local development
527
+ npm run deploy # Deploy (KV auto-created!)
528
+
529
+
530
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
531
+ 
532
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-agent...
533
+
534
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
535
+ πŸ”‘ Generating cryptographic identity...
536
+
537
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
538
+ βœ” Created Cloudflare MCP-I template files
539
+ - Generated identity keys in .dev.vars
540
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
541
+ - Created modular tool structure
542
+
543
+ ============================================================
544
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
545
+ ============================================================
546
+
547
+ πŸ“ Important Configuration Notes:
548
+
549
+ 1. ADMIN_API_KEY (in .dev.vars):
550
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
551
+ - You can change it if you need separate admin endpoint security
552
+ - Required for admin endpoints like /admin/clear-cache
553
+
554
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
555
+ - Single unified namespace for all MCP-I storage
556
+ - ✨ Automatically created on first deploy - no setup needed!
557
+ - Wrangler updates wrangler.toml with namespace ID
558
+
559
+ πŸš€ Next Steps:
560
+ cd test-agent
561
+ wrangler login # Login to Cloudflare first!
562
+ npm run dev # Start local development
563
+ npm run deploy # Deploy (KV auto-created!)
564
+
565
+
566
+ βœ“ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 163ms
567
+ βœ“ src/__tests__/helpers/apply-identity-preset.test.ts (16 tests) 166ms
568
+ (node:20095) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
569
+ (Use `node --trace-warnings ...` to show where the warning was created)
570
+ βœ“ src/__tests__/wrangler-v4-compatibility.test.ts (11 tests) 173ms
571
+ βœ“ src/__tests__/helpers/copy-template.test.ts (11 tests) 41ms
572
+ βœ“ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 221ms
573
+ βœ“ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (25 tests) 231ms
574
+ βœ“ src/__tests__/helpers/rename.test.ts (6 tests) 10ms
575
+ βœ“ src/__tests__/helpers/fetch-cloudflare-template.test.ts (4 tests) 19ms
576
+ βœ“ src/__tests__/utils/is-folder-empty.test.ts (21 tests) 16ms
577
+ βœ“ src/__tests__/helpers/kta-registration.test.ts (8 tests) 67ms
578
+ βœ“ src/__tests__/helpers/get-package-versions.test.ts (6 tests) 21ms
579
+ (node:20103) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
580
+ (Use `node --trace-warnings ...` to show where the warning was created)
581
+ βœ“ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 55ms
582
+ βœ“ src/__tests__/helpers/generate-cloudflare-files.test.ts (26 tests | 1 skipped) 140ms
583
+ βœ“ test-cloudflare/tests/do-routing.test.ts (14 tests) 139ms
584
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
585
+ [Session] Created session: secure-session
586
+
587
+ βœ“ test-cloudflare/tests/session-management.test.ts (17 tests) 30ms
588
+ βœ“ src/helpers/__tests__/generate-cloudflare-files.spec.ts (28 tests) 48ms
589
+ βœ“ src/__tests__/utils/check-node.test.ts (7 tests) 13ms
590
+ βœ“ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
591
+ stderr | src/__tests__/helpers/fetch-xmcp-template.test.ts > fetchXMCPTemplate > falls back to default when next channel is unavailable
592
+ ⚠️ dist-tag 'next' not available for xmcp, falling back to ^0.3.1
593
+
594
+ βœ“ src/__tests__/helpers/fetch-xmcp-template.test.ts (3 tests) 12ms
595
+ βœ“ src/__tests__/utils/validate-project-name.test.ts (29 tests) 8ms
596
+ βœ“ test-cloudflare/tests/delegation.test.ts (12 tests) 5ms
597
+ βœ“ test-cloudflare/tests/cors-security.test.ts (29 tests) 5ms
598
+ βœ“ src/__tests__/effects/index.test.ts (5 tests) 4ms
599
+ βœ“ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 4ms
600
+
601
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
602
+
603
+  FAIL  src/__tests__/helpers/identity-manager.test.ts > Identity Manager > regenerateIdentity > should regenerate identity for Node.js project
604
+ AssertionError: expected false to be true // Object.is equality
605
+
606
+ - Expected
607
+ + Received
608
+
609
+ - true
610
+ + false
611
+
612
+  ❯ src/__tests__/helpers/identity-manager.test.ts:214:66
613
+ 212| 
614
+ 213|  // New identity should be saved
615
+ 214|  expect(fs.existsSync(path.join(mcpiDir, 'identity.json'))).toBe(…
616
+  |  ^
617
+ 215|  const identity = fs.readJsonSync(path.join(mcpiDir, 'identity.js…
618
+ 216|  expect(identity.did).toBe('did:key:zNewGeneratedIdentity123');
619
+
620
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
621
+
622
+
623
+  Test Files  1 failed | 33 passed (34)
624
+  Tests  1 failed | 500 passed | 3 skipped (504)
625
+  Start at  08:06:07
626
+  Duration  706ms (transform 1.63s, setup 0ms, import 2.40s, tests 2.19s, environment 2ms)
627
+
628
+  ELIFECYCLE  Test failed. See above for more details.