@kya-os/create-mcpi-app 1.7.42-canary.71 → 1.7.42-canary.73

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,26 +1,24 @@
1
1
 
2
- > @kya-os/create-mcpi-app@1.7.42-canary.66 test /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
2
+ > @kya-os/create-mcpi-app@1.7.42-canary.72 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.5 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
7
7
 
8
- ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 5ms
9
8
  stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
10
9
  [Session] Created session: secure-session
11
10
 
12
- ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 47ms
13
- ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 16ms
14
- ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 9ms
15
- ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 120ms
16
- stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
17
- [RemoteConfig] Neither projectId nor agentDid provided
11
+ ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 22ms
12
+ ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 6ms
13
+ ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 73ms
14
+ ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
15
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
16
+
17
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
18
+
19
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
20
+ 🔑 Generating cryptographic identity...
18
21
 
19
- ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 15ms
20
- ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 33ms
21
- ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 46ms
22
- ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 76ms
23
- ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 116ms
24
22
  stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
25
23
 
26
24
  📦 Installing dependencies with npm...
@@ -46,29 +44,32 @@ stderr | src/__tests__/helpers/install.test.ts > install > Install progress repo
46
44
 
47
45
  stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
48
46
 
47
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
49
48
  📦 Installing dependencies with npm...
50
49
  ✓ Lockfile created (package-lock.json) - remember to commit it
51
50
 
51
+ Failed to install dependencies with npm.
52
52
  stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
53
53
 
54
54
  📦 Installing dependencies with npm...
55
55
 
56
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
57
- Failed to install dependencies with npm.
58
56
 
57
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
58
+ Failed to install dependencies with npm.
59
59
  stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
60
60
 
61
- 📦 Installing dependencies with npm...
62
61
 
63
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
62
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
64
63
  Failed to install dependencies with npm.
64
+ 📦 Installing dependencies with npm...
65
+
65
66
 
66
67
  stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
68
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
69
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
67
70
 
68
- 📦 Installing dependencies with npm...
69
71
 
70
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
71
- Failed to install dependencies with npm.
72
+ 📦 Installing dependencies with npm...
72
73
 
73
74
  stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
74
75
 
@@ -78,19 +79,181 @@ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > shou
78
79
 
79
80
  📦 Installing dependencies with unknown...
80
81
 
81
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
82
- ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
83
-
84
82
  stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
85
83
 
86
84
  📦 Installing dependencies with npm...
87
85
 
88
- ✓ src/__tests__/helpers/install.test.ts (20 tests) 68ms
89
- ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 160ms
90
- src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 186ms
86
+ ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 3ms
87
+ ✓ src/__tests__/helpers/install.test.ts (20 tests) 48ms
88
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
89
+ ✔ Created Cloudflare MCP-I template files
90
+ - Generated identity keys in .dev.vars
91
+ - Configured wrangler.toml with KV namespaces
92
+ - Created modular tool structure
93
+ - Created setup script for KV namespace creation
94
+
95
+ ============================================================
96
+ 🎉 Cloudflare MCP-I project created successfully!
97
+ ============================================================
98
+
99
+ 📝 Important Configuration Notes:
100
+
101
+ 1. ADMIN_API_KEY (in .dev.vars):
102
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
103
+ - You can change it if you need separate admin endpoint security
104
+ - Required for admin endpoints like /admin/clear-cache
105
+
106
+ 2. KV Namespaces (in wrangler.toml):
107
+ - Required for MCP-I security features
108
+ - Auto-created by 'npm run setup' script
109
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
110
+
111
+ 🚀 Next Steps:
112
+ cd test-agent
113
+
114
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
115
+ wrangler login # Login to Cloudflare first!
116
+ npm run setup # Create KV namespaces
117
+ npm run dev # Start local development
118
+ npm run deploy # Deploy to Cloudflare
119
+
120
+
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
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
126
+ 🔑 Generating cryptographic identity...
127
+
128
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
129
+ ✔ Created Cloudflare MCP-I template files
130
+ - Generated identity keys in .dev.vars
131
+ - Configured wrangler.toml with KV namespaces
132
+ - Created modular tool structure
133
+ - Created setup script for KV namespace creation
134
+
135
+ ============================================================
136
+ 🎉 Cloudflare MCP-I project created successfully!
137
+ ============================================================
138
+
139
+ 📝 Important Configuration Notes:
140
+
141
+ 1. ADMIN_API_KEY (in .dev.vars):
142
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
143
+ - You can change it if you need separate admin endpoint security
144
+ - Required for admin endpoints like /admin/clear-cache
145
+
146
+ 2. KV Namespaces (in wrangler.toml):
147
+ - Required for MCP-I security features
148
+ - Auto-created by 'npm run setup' script
149
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
150
+
151
+ 🚀 Next Steps:
152
+ cd my-awesome-agent
153
+
154
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
155
+ wrangler login # Login to Cloudflare first!
156
+ npm run setup # Create KV namespaces
157
+ npm run dev # Start local development
158
+ npm run deploy # Deploy to Cloudflare
159
+
160
+
161
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
162
+
163
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
164
+
165
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
166
+ 🔑 Generating cryptographic identity...
167
+
168
+ ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 114ms
169
+ ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 46ms
170
+ stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
171
+ [RemoteConfig] Neither projectId nor agentDid provided
172
+
173
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
174
+ ✔ Created Cloudflare MCP-I template files
175
+ - Generated identity keys in .dev.vars
176
+ - Configured wrangler.toml with KV namespaces
177
+ - Created modular tool structure
178
+ - Created setup script for KV namespace creation
179
+
180
+ ============================================================
181
+ 🎉 Cloudflare MCP-I project created successfully!
182
+ ============================================================
183
+
184
+ 📝 Important Configuration Notes:
185
+
186
+ 1. ADMIN_API_KEY (in .dev.vars):
187
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
188
+ - You can change it if you need separate admin endpoint security
189
+ - Required for admin endpoints like /admin/clear-cache
190
+
191
+ 2. KV Namespaces (in wrangler.toml):
192
+ - Required for MCP-I security features
193
+ - Auto-created by 'npm run setup' script
194
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
195
+
196
+ 🚀 Next Steps:
197
+ cd test-agent
198
+
199
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
200
+ wrangler login # Login to Cloudflare first!
201
+ npm run setup # Create KV namespaces
202
+ npm run dev # Start local development
203
+ npm run deploy # Deploy to Cloudflare
204
+
205
+
206
+ ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 5ms
207
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
208
+
209
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
210
+
211
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
212
+ 🔑 Generating cryptographic identity...
213
+
214
+ ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 6ms
215
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
216
+ ✔ Created Cloudflare MCP-I template files
217
+ - Generated identity keys in .dev.vars
218
+ - Configured wrangler.toml with KV namespaces
219
+ - Created modular tool structure
220
+ - Created setup script for KV namespace creation
221
+
222
+ ============================================================
223
+ 🎉 Cloudflare MCP-I project created successfully!
224
+ ============================================================
225
+
226
+ 📝 Important Configuration Notes:
227
+
228
+ 1. ADMIN_API_KEY (in .dev.vars):
229
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
230
+ - You can change it if you need separate admin endpoint security
231
+ - Required for admin endpoints like /admin/clear-cache
232
+
233
+ 2. KV Namespaces (in wrangler.toml):
234
+ - Required for MCP-I security features
235
+ - Auto-created by 'npm run setup' script
236
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
237
+
238
+ 🚀 Next Steps:
239
+ cd test-agent
240
+
241
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
242
+ wrangler login # Login to Cloudflare first!
243
+ npm run setup # Create KV namespaces
244
+ npm run dev # Start local development
245
+ npm run deploy # Deploy to Cloudflare
246
+
247
+
248
+ ✓ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 191ms
249
+ ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 44ms
250
+ ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 1028ms
251
+ ✓ should transform KV namespace bindings correctly 329ms
252
+ ✓ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 1642ms
253
+ ✓ should not create test files by default 342ms
91
254
 
92
- Test Files 13 passed (13)
93
- Tests 252 passed | 2 skipped (254)
94
- Start at 01:01:50
95
- Duration 824ms (transform 1.25s, setup 0ms, collect 2.34s, tests 897ms, environment 1ms, prepare 133ms)
255
+ Test Files 14 passed (14)
256
+ Tests 256 passed | 2 skipped (258)
257
+ Start at 14:58:15
258
+ Duration 3.34s (transform 3.31s, setup 0ms, collect 5.96s, tests 3.23s, environment 1ms, prepare 541ms)
96
259
 
@@ -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.5.8-canary.67",
83
+ "@kya-os/mcp-i-cloudflare": "1.5.8-canary.69",
84
84
  "@modelcontextprotocol/sdk": "1.22.0",
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.5.8-canary.67";
660
+ const expectedVersion = "1.5.8-canary.69";
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.7.42-canary.71",
3
+ "version": "1.7.42-canary.73",
4
4
  "description": "Scaffold a new MCP-I application",
5
5
  "bin": {
6
6
  "create-mcpi-app": "./dist/index.js"
@@ -14,11 +14,11 @@
14
14
  "prepublishOnly": "npm run build && node scripts/validate-dependencies.js && node scripts/validate-template-versions.js"
15
15
  },
16
16
  "dependencies": {
17
- "@kya-os/cli": "^1.3.5-canary.21",
17
+ "@kya-os/cli": "^1.3.5-canary.22",
18
18
  "@kya-os/cli-effects": "^1.0.19",
19
- "@kya-os/contracts": "^1.5.3-canary.25",
20
- "@kya-os/mcp-i": "^1.5.9-canary.26",
21
- "@kya-os/mcp-i-cloudflare": "^1.5.8-canary.67",
19
+ "@kya-os/contracts": "^1.5.3-canary.26",
20
+ "@kya-os/mcp-i": "^1.5.9-canary.27",
21
+ "@kya-os/mcp-i-cloudflare": "^1.5.8-canary.69",
22
22
  "base-x": "^5.0.0",
23
23
  "chalk": "^4.1.2",
24
24
  "commander": "^12.1.0",