@kya-os/create-mcpi-app 1.8.31 → 1.8.33

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,23 +1,58 @@
1
1
 
2
- > @kya-os/create-mcpi-app@1.8.31 test /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
2
+ > @kya-os/create-mcpi-app@1.8.32 test /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
3
3
  > vitest run
4
4
 
5
5
 
6
6
  RUN v4.0.14 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
7
7
 
8
- src/__tests__/helpers/generate-identity.test.ts (24 tests) 36ms
8
+ test-cloudflare/tests/do-routing.test.ts (14 tests) 50ms
9
9
  stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
10
10
 
11
11
  🏗️ Generating Cloudflare MCP-I project: test-agent...
12
12
 
13
+ ✓ src/__tests__/helpers/get-package-versions.test.ts (6 tests) 40ms
13
14
  stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
14
15
  🔑 Generating cryptographic identity...
15
16
 
17
+ ✓ src/__tests__/utils/validate-project-name.test.ts (29 tests) 15ms
18
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
19
+ ✔ Created Cloudflare MCP-I template files
20
+ - Generated identity keys in .dev.vars
21
+ - Configured wrangler.toml with KV namespaces
22
+ - Created modular tool structure
23
+ - Created setup script for KV namespace creation
24
+
25
+ ============================================================
26
+ 🎉 Cloudflare MCP-I project created successfully!
27
+ ============================================================
28
+
29
+ 📝 Important Configuration Notes:
30
+
31
+ 1. ADMIN_API_KEY (in .dev.vars):
32
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
33
+ - You can change it if you need separate admin endpoint security
34
+ - Required for admin endpoints like /admin/clear-cache
35
+
36
+ 2. KV Namespaces (in wrangler.toml):
37
+ - Required for MCP-I security features
38
+ - Auto-created by 'npm run setup' script
39
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
40
+
41
+ 🚀 Next Steps:
42
+ cd test-agent
43
+
16
44
  stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
17
45
 
18
46
  📦 Installing dependencies with npm...
19
47
  ✓ Lockfile created (package-lock.json) - remember to commit it
20
48
 
49
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
50
+ wrangler login # Login to Cloudflare first!
51
+ npm run setup # Create KV namespaces
52
+ npm run dev # Start local development
53
+ npm run deploy # Deploy to Cloudflare
54
+
55
+
21
56
  stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
22
57
 
23
58
  📦 Installing dependencies with yarn...
@@ -33,104 +68,68 @@ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installati
33
68
  📦 Installing dependencies with npm...
34
69
  ✓ Lockfile created (package-lock.json) - remember to commit it
35
70
 
71
+ ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 103ms
36
72
  stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
37
73
  ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
38
- stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
39
74
 
40
- 📦 Installing dependencies with npm...
41
- ✓ Lockfile created (package-lock.json) - remember to commit it
75
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
42
76
 
43
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
77
+ 🏗️ Generating Cloudflare MCP-I project: my-awesome-agent...
78
+
79
+ stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
44
80
 
45
81
  📦 Installing dependencies with npm...
82
+ ✓ Lockfile created (package-lock.json) - remember to commit it
46
83
 
84
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
85
+ 🔑 Generating cryptographic identity...
47
86
 
48
87
  stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
88
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
49
89
  Failed to install dependencies with npm.
50
90
 
51
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
52
- ✔ Created Cloudflare MCP-I template files
53
- - Generated identity keys in .dev.vars
54
- - Configured wrangler.toml with KV namespaces
55
- - Created modular tool structure
56
- - Created setup script for KV namespace creation
57
-
58
- ============================================================
59
- 🎉 Cloudflare MCP-I project created successfully!
60
- ============================================================
61
-
62
- 📝 Important Configuration Notes:
63
-
64
- 1. ADMIN_API_KEY (in .dev.vars):
65
- - Set to same value as AGENTSHIELD_API_KEY for convenience
66
- - You can change it if you need separate admin endpoint security
67
- - Required for admin endpoints like /admin/clear-cache
68
-
69
- 2. KV Namespaces (in wrangler.toml):
70
- - Required for MCP-I security features
71
- - Auto-created by 'npm run setup' script
72
- - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
73
91
 
74
- 🚀 Next Steps:
75
- cd test-agent
92
+ 📦 Installing dependencies with npm...
76
93
 
77
- ✓ src/__tests__/utils/is-folder-empty.test.ts (21 tests) 25ms
78
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
79
- wrangler login # Login to Cloudflare first!
80
- npm run setup # Create KV namespaces
81
94
  stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
82
- npm run dev # Start local development
83
- npm run deploy # Deploy to Cloudflare
84
-
85
95
  Failed to install dependencies with npm.
86
-
87
96
  stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
88
97
 
98
+
89
99
  📦 Installing dependencies with npm...
100
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
90
101
 
91
102
  stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
92
103
 
93
104
  📦 Installing dependencies with npm...
105
+ Failed to install dependencies with npm.
94
106
 
95
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
96
107
 
108
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
97
109
 
98
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
99
110
  📦 Installing dependencies with npm...
100
- Failed to install dependencies with npm.
101
-
102
111
 
112
+ ✓ src/__tests__/helpers/fetch-mcpi-template.test.ts (16 tests) 95ms
103
113
  stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
104
114
 
105
115
  📦 Installing dependencies with unknown...
106
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
107
116
 
117
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
118
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
108
119
  stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
109
120
 
121
+
110
122
  📦 Installing dependencies with npm...
111
123
 
112
124
  stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when package manager lockfile cannot be determined
113
125
 
114
- ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
115
126
  📦 Installing dependencies with custom...
116
127
 
117
-
118
- ✓ src/__tests__/helpers/install.test.ts (21 tests) 80ms
119
- ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 77ms
120
- ✓ src/__tests__/helpers/get-package-versions.test.ts (6 tests) 146ms
121
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
122
-
123
- 🏗️ Generating Cloudflare MCP-I project: my-awesome-agent...
124
-
125
- ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 83ms
126
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
127
- 🔑 Generating cryptographic identity...
128
-
129
- ✓ src/__tests__/helpers/fetch-mcpi-template.test.ts (16 tests) 88ms
130
- ✓ src/__tests__/helpers/copy-template.test.ts (11 tests) 77ms
128
+ ✓ src/__tests__/helpers/install.test.ts (21 tests) 71ms
129
+ ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 84ms
131
130
  stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
132
131
 
133
- create-mcpi-app@1.8.31
132
+ create-mcpi-app@1.8.32
134
133
 
135
134
  stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
136
135
  BANNER
@@ -151,23 +150,24 @@ Next Steps:
151
150
  3. Deploy when ready:
152
151
  npm run start
153
152
 
154
- stderr | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
153
+ src/__tests__/utils/check-node.test.ts (7 tests) 11ms
155
154
  stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
156
155
 
157
- create-mcpi-app@1.8.31
158
-
156
+ stderr | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
157
+ create-mcpi-app@1.8.32
159
158
  Invalid project name:
159
+
160
160
  stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
161
161
  BANNER
162
162
 
163
163
  Enhanced with identity features by MCP-I
164
164
 
165
- - bad
166
-
167
165
 
168
166
  stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
169
167
 
170
- create-mcpi-app@1.8.31
168
+ - bad
169
+ create-mcpi-app@1.8.32
170
+
171
171
 
172
172
  stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
173
173
  BANNER
@@ -193,7 +193,7 @@ Next Steps:
193
193
 
194
194
  stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
195
195
 
196
- create-mcpi-app@1.8.31
196
+ create-mcpi-app@1.8.32
197
197
 
198
198
  stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
199
199
  BANNER
@@ -219,14 +219,6 @@ Next Steps:
219
219
  3. Deploy when ready:
220
220
  pnpm start
221
221
 
222
- ✓ src/__tests__/cli-runner.test.ts (4 tests) 372ms
223
- ✓ passes CLI flags to createProject when using --yes 367ms
224
- stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
225
- [Session] Created session: secure-session
226
-
227
- ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 15ms
228
- ✓ src/__tests__/helpers/rename.test.ts (6 tests) 11ms
229
- ✓ src/__tests__/helpers/fetch-cloudflare-template.test.ts (4 tests) 12ms
230
222
  stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
231
223
  ✔ Created Cloudflare MCP-I template files
232
224
  - Generated identity keys in .dev.vars
@@ -260,6 +252,7 @@ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Confi
260
252
  npm run deploy # Deploy to Cloudflare
261
253
 
262
254
 
255
+ ✓ src/__tests__/cli-runner.test.ts (4 tests) 179ms
263
256
  stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
264
257
 
265
258
  🏗️ Generating Cloudflare MCP-I project: test-agent...
@@ -267,8 +260,48 @@ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Confi
267
260
  stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
268
261
  🔑 Generating cryptographic identity...
269
262
 
270
- src/__tests__/helpers/create.test.ts (13 tests) 195ms
271
- ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 108ms
263
+ 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
264
+
265
+ 🏗️ Generating Cloudflare MCP-I project: test-project...
266
+
267
+ 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
268
+ 🔑 Generating cryptographic identity...
269
+
270
+ ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 190ms
271
+ 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
272
+ ✔ Created Cloudflare MCP-I template files
273
+ - Generated identity keys in .dev.vars
274
+ - Configured wrangler.toml with KV namespaces
275
+ - Created modular tool structure
276
+ - Created setup script for KV namespace creation
277
+
278
+ ============================================================
279
+ 🎉 Cloudflare MCP-I project created successfully!
280
+ ============================================================
281
+
282
+ 📝 Important Configuration Notes:
283
+
284
+ 1. ADMIN_API_KEY (in .dev.vars):
285
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
286
+ - You can change it if you need separate admin endpoint security
287
+ - Required for admin endpoints like /admin/clear-cache
288
+
289
+ 2. KV Namespaces (in wrangler.toml):
290
+ - Required for MCP-I security features
291
+ - Auto-created by 'npm run setup' script
292
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
293
+
294
+ 🚀 Next Steps:
295
+ cd test-project
296
+
297
+ 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
298
+ wrangler login # Login to Cloudflare first!
299
+ npm run setup # Create KV namespaces
300
+ npm run dev # Start local development
301
+ npm run deploy # Deploy to Cloudflare
302
+
303
+
304
+ ✓ src/__tests__/helpers/create.test.ts (13 tests) 167ms
272
305
  stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
273
306
  ✔ Created Cloudflare MCP-I template files
274
307
  - Generated identity keys in .dev.vars
@@ -302,15 +335,25 @@ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Confi
302
335
  npm run deploy # Deploy to Cloudflare
303
336
 
304
337
 
305
- src/__tests__/helpers/identity-manager.test.ts (16 tests) 33ms
338
+ 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
339
+
340
+ 🏗️ Generating Cloudflare MCP-I project: test-project-env...
341
+
306
342
  stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
307
343
 
308
344
  🏗️ Generating Cloudflare MCP-I project: test-agent...
309
345
 
310
- ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 4ms
311
346
  stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
312
347
  🔑 Generating cryptographic identity...
313
348
 
349
+ 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
350
+ 🔑 Generating cryptographic identity...
351
+
352
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
353
+ [Session] Created session: secure-session
354
+
355
+ ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 14ms
356
+ ✓ src/__tests__/helpers/identity-manager.test.ts (16 tests) 36ms
314
357
  stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
315
358
  ✔ Created Cloudflare MCP-I template files
316
359
  - Generated identity keys in .dev.vars
@@ -344,26 +387,223 @@ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Confi
344
387
  npm run deploy # Deploy to Cloudflare
345
388
 
346
389
 
347
- src/__tests__/scaffolder-envprefix.test.ts (4 tests) 455ms
390
+ 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
391
+ ✔ Created Cloudflare MCP-I template files
392
+ - Generated identity keys in .dev.vars
393
+ - Configured wrangler.toml with KV namespaces
394
+ - Created modular tool structure
395
+ - Created setup script for KV namespace creation
396
+
397
+ ============================================================
398
+ 🎉 Cloudflare MCP-I project created successfully!
399
+ ============================================================
400
+
401
+ 📝 Important Configuration Notes:
402
+
403
+ 1. ADMIN_API_KEY (in .dev.vars):
404
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
405
+ - You can change it if you need separate admin endpoint security
406
+ - Required for admin endpoints like /admin/clear-cache
407
+
408
+ 2. KV Namespaces (in wrangler.toml):
409
+ - Required for MCP-I security features
410
+ - Auto-created by 'npm run setup' script
411
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
412
+
413
+ 🚀 Next Steps:
414
+ cd test-project-env
415
+
416
+ 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
417
+ wrangler login # Login to Cloudflare first!
418
+ npm run setup # Create KV namespaces
419
+ npm run dev # Start local development
420
+ npm run deploy # Deploy to Cloudflare
421
+
422
+
423
+ ✓ src/__tests__/helpers/copy-template.test.ts (11 tests) 40ms
424
+ ✓ src/__tests__/helpers/fetch-cloudflare-template.test.ts (4 tests) 16ms
425
+ ✓ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 290ms
426
+ 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
427
+
428
+ 🏗️ Generating Cloudflare MCP-I project: test-project-with-id...
429
+
430
+ 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
431
+ 🔑 Generating cryptographic identity...
432
+
433
+ ✓ src/__tests__/utils/is-folder-empty.test.ts (21 tests) 24ms
348
434
  stderr | src/__tests__/helpers/fetch-xmcp-template.test.ts > fetchXMCPTemplate > falls back to default when next channel is unavailable
349
435
  ⚠️ dist-tag 'next' not available for xmcp, falling back to ^0.3.1
350
436
 
351
- ✓ src/__tests__/helpers/fetch-xmcp-template.test.ts (3 tests) 79ms
352
- ✓ src/__tests__/utils/validate-project-name.test.ts (29 tests) 12ms
353
- ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 5ms
354
437
  ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
355
- src/__tests__/utils/check-node.test.ts (7 tests) 45ms
438
+ 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
439
+ ✔ Created Cloudflare MCP-I template files
440
+ - Generated identity keys in .dev.vars
441
+ - Configured wrangler.toml with KV namespaces
442
+ - Created modular tool structure
443
+ - Created setup script for KV namespace creation
444
+
445
+ ============================================================
446
+ 🎉 Cloudflare MCP-I project created successfully!
447
+ ============================================================
448
+
449
+ 📝 Important Configuration Notes:
450
+
451
+ 1. ADMIN_API_KEY (in .dev.vars):
452
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
453
+ - You can change it if you need separate admin endpoint security
454
+ - Required for admin endpoints like /admin/clear-cache
455
+
456
+ 2. KV Namespaces (in wrangler.toml):
457
+ - Required for MCP-I security features
458
+ - Auto-created by 'npm run setup' script
459
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
460
+
461
+ 🚀 Next Steps:
462
+ cd test-project-with-id
463
+
464
+ ✓ src/__tests__/helpers/fetch-xmcp-template.test.ts (3 tests) 29ms
465
+ ✓ src/__tests__/helpers/rename.test.ts (6 tests) 33ms
466
+ 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
467
+ wrangler login # Login to Cloudflare first!
468
+ npm run setup # Create KV namespaces
469
+ npm run dev # Start local development
470
+ npm run deploy # Deploy to Cloudflare
471
+
472
+
473
+ ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 4ms
474
+ 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
475
+
476
+ 🏗️ Generating Cloudflare MCP-I project: test-project-no-id...
477
+
478
+ 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
479
+ 🔑 Generating cryptographic identity...
480
+
481
+ 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
482
+ ✔ Created Cloudflare MCP-I template files
483
+ - Generated identity keys in .dev.vars
484
+ - Configured wrangler.toml with KV namespaces
485
+ - Created modular tool structure
486
+ - Created setup script for KV namespace creation
487
+
488
+ ============================================================
489
+ 🎉 Cloudflare MCP-I project created successfully!
490
+ ============================================================
491
+
492
+ 📝 Important Configuration Notes:
493
+
494
+ 1. ADMIN_API_KEY (in .dev.vars):
495
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
496
+ - You can change it if you need separate admin endpoint security
497
+ - Required for admin endpoints like /admin/clear-cache
498
+
499
+ 2. KV Namespaces (in wrangler.toml):
500
+ - Required for MCP-I security features
501
+ - Auto-created by 'npm run setup' script
502
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
503
+
504
+ 🚀 Next Steps:
505
+ cd test-project-no-id
506
+
507
+ 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
508
+ wrangler login # Login to Cloudflare first!
509
+ npm run setup # Create KV namespaces
510
+ npm run dev # Start local development
511
+ npm run deploy # Deploy to Cloudflare
512
+
513
+
514
+ 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
515
+
516
+ 🏗️ Generating Cloudflare MCP-I project: test-project-runtime...
517
+
518
+ 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
519
+ 🔑 Generating cryptographic identity...
520
+
521
+ ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
522
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Runtime Config Includes projectId > should pass AGENTSHIELD_PROJECT_ID to runtime config
523
+ ✔ Created Cloudflare MCP-I template files
524
+ - Generated identity keys in .dev.vars
525
+ - Configured wrangler.toml with KV namespaces
526
+ - Created modular tool structure
527
+ - Created setup script for KV namespace creation
528
+
529
+ ============================================================
530
+ 🎉 Cloudflare MCP-I project created successfully!
531
+ ============================================================
532
+
533
+ 📝 Important Configuration Notes:
534
+
535
+ 1. ADMIN_API_KEY (in .dev.vars):
536
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
537
+ - You can change it if you need separate admin endpoint security
538
+ - Required for admin endpoints like /admin/clear-cache
539
+
540
+ 2. KV Namespaces (in wrangler.toml):
541
+ - Required for MCP-I security features
542
+ - Auto-created by 'npm run setup' script
543
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
544
+
545
+ 🚀 Next Steps:
546
+ cd test-project-runtime
547
+
548
+ 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
549
+ wrangler login # Login to Cloudflare first!
550
+ npm run setup # Create KV namespaces
551
+ npm run dev # Start local development
552
+ npm run deploy # Deploy to Cloudflare
553
+
554
+
555
+ ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 3ms
556
+ 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
557
+
558
+ 🏗️ Generating Cloudflare MCP-I project: test-project-no-workspace...
559
+
560
+ 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
561
+ 🔑 Generating cryptographic identity...
562
+
563
+ ✓ src/__tests__/effects/index.test.ts (5 tests) 3ms
564
+ 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
565
+ ✔ Created Cloudflare MCP-I template files
566
+ - Generated identity keys in .dev.vars
567
+ - Configured wrangler.toml with KV namespaces
568
+ - Created modular tool structure
569
+ - Created setup script for KV namespace creation
570
+
571
+ ============================================================
572
+ 🎉 Cloudflare MCP-I project created successfully!
573
+ ============================================================
574
+
575
+ 📝 Important Configuration Notes:
576
+
577
+ 1. ADMIN_API_KEY (in .dev.vars):
578
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
579
+ - You can change it if you need separate admin endpoint security
580
+ - Required for admin endpoints like /admin/clear-cache
581
+
582
+ 2. KV Namespaces (in wrangler.toml):
583
+ - Required for MCP-I security features
584
+ - Auto-created by 'npm run setup' script
585
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
586
+
587
+ 🚀 Next Steps:
588
+ cd test-project-no-workspace
589
+
590
+ 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
591
+ wrangler login # Login to Cloudflare first!
592
+ npm run setup # Create KV namespaces
593
+ npm run dev # Start local development
594
+ npm run deploy # Deploy to Cloudflare
595
+
596
+
597
+ ✓ src/__tests__/e2e/scaffolder-dependency-verification.test.ts (7 tests) 221ms
356
598
  stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
357
599
  [RemoteConfig] Neither projectId nor agentDid provided
358
600
 
359
- ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 5ms
360
- ✓ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 925ms
361
- ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 10ms
362
- ✓ src/__tests__/effects/index.test.ts (5 tests) 3ms
363
- ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 823ms
601
+ ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 3ms
602
+ ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 450ms
603
+ ✓ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 457ms
364
604
 
365
- Test Files 27 passed (27)
366
- Tests 398 passed | 2 skipped (400)
367
- Start at 18:29:56
368
- Duration 1.64s (transform 1.37s, setup 0ms, import 3.05s, tests 3.73s, environment 2ms)
605
+ Test Files 28 passed (28)
606
+ Tests 405 passed | 2 skipped (407)
607
+ Start at 03:22:22
608
+ Duration 788ms (transform 1.11s, setup 0ms, import 2.06s, tests 2.64s, environment 2ms)
369
609
 
@@ -80,7 +80,7 @@ export async function fetchCloudflareMcpiTemplate(targetDir, options) {
80
80
  "kv:create-tool-protection": `wrangler kv:namespace create ${projectNameUpper}_${KV_BINDING_NAMES[4]}`,
81
81
  },
82
82
  dependencies: {
83
- "@kya-os/mcp-i-cloudflare": "1.6.30",
83
+ "@kya-os/mcp-i-cloudflare": "1.6.31",
84
84
  "@modelcontextprotocol/sdk": "1.19.1",
85
85
  agents: "0.2.21",
86
86
  hono: "4.6.3",
@@ -657,7 +657,7 @@ dist
657
657
  await runCommand(packageManager, ["install"], targetDir);
658
658
  // 13a. Verify installed version matches expected version
659
659
  console.log(chalk.blue("\n🔍 Verifying package versions..."));
660
- const expectedVersion = "1.6.30";
660
+ const expectedVersion = "1.6.31";
661
661
  try {
662
662
  const installedPackagePath = path.join(targetDir, "node_modules", "@kya-os", "mcp-i-cloudflare", "package.json");
663
663
  if (fs.existsSync(installedPackagePath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/create-mcpi-app",
3
- "version": "1.8.31",
3
+ "version": "1.8.33",
4
4
  "description": "Scaffold a new MCP-I application",
5
5
  "bin": {
6
6
  "create-mcpi-app": "./dist/index.js"
@@ -16,9 +16,9 @@
16
16
  "dependencies": {
17
17
  "@kya-os/cli": "^1.4.4",
18
18
  "@kya-os/cli-effects": "^1.0.19",
19
- "@kya-os/contracts": "^1.6.5",
20
- "@kya-os/mcp-i": "^1.6.4",
21
- "@kya-os/mcp-i-cloudflare": "^1.6.27",
19
+ "@kya-os/contracts": "^1.6.7",
20
+ "@kya-os/mcp-i": "^1.6.5",
21
+ "@kya-os/mcp-i-cloudflare": "^1.6.30",
22
22
  "base-x": "^5.0.0",
23
23
  "chalk": "^4.1.2",
24
24
  "commander": "^12.1.0",