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

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