@kya-os/create-mcpi-app 1.8.24 β 1.8.25
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.
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,134 +1,103 @@
|
|
|
1
1
|
|
|
2
|
-
> @kya-os/create-mcpi-app@1.8.
|
|
3
|
-
> vitest run
|
|
2
|
+
> @kya-os/create-mcpi-app@1.8.19 test /Users/brian/Documents/Vouched/@sandbox/xmcp-i-S/packages/create-mcpi-app
|
|
3
|
+
> vitest run
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
RUN v4.0.5 /Users/brian/Documents/Vouched/@sandbox/xmcp-i-S/packages/create-mcpi-app
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
β test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
|
|
9
|
+
β test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
|
|
10
|
+
stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
|
|
11
|
+
[Session] Created session: secure-session
|
|
12
|
+
|
|
13
|
+
β test-cloudflare/tests/delegation.test.ts (12 tests) 6ms
|
|
14
|
+
β test-cloudflare/tests/session-management.test.ts (17 tests) 14ms
|
|
15
|
+
β src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 4ms
|
|
16
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
|
|
17
|
+
stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
|
|
18
|
+
[RemoteConfig] Neither projectId nor agentDid provided
|
|
12
19
|
|
|
13
|
-
[90mstdout[2m | src/__tests__/scaffolder-envprefix.test.ts[2m > [22m[2mScaffolder envPrefix Configuration[2m > [22m[2mshould include envPrefix in generated index.ts
|
|
14
|
-
[22m[39mπ Generating cryptographic identity...
|
|
15
20
|
|
|
16
|
-
[90mstdout[2m | src/__tests__/helpers/install.test.ts[2m > [22m[2minstall[2m > [22m[2mDependency installation[2m > [22m[2mshould install dependencies with npm
|
|
17
|
-
[22m[39m
|
|
18
21
|
π¦ Installing dependencies with npm...
|
|
19
22
|
β Lockfile created (package-lock.json) - remember to commit it
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- Generated identity keys in .dev.vars
|
|
24
|
-
- Configured wrangler.toml with KV namespaces
|
|
25
|
-
- Created modular tool structure
|
|
26
|
-
- Created setup script for KV namespace creation
|
|
27
|
-
|
|
28
|
-
============================================================
|
|
29
|
-
π Cloudflare MCP-I project created successfully!
|
|
30
|
-
============================================================
|
|
31
|
-
|
|
32
|
-
π Important Configuration Notes:
|
|
33
|
-
|
|
34
|
-
1. ADMIN_API_KEY (in .dev.vars):
|
|
35
|
-
- Set to same value as AGENTSHIELD_API_KEY for convenience
|
|
36
|
-
- You can change it if you need separate admin endpoint security
|
|
37
|
-
- Required for admin endpoints like /admin/clear-cache
|
|
38
|
-
|
|
39
|
-
2. KV Namespaces (in wrangler.toml):
|
|
40
|
-
- Required for MCP-I security features
|
|
41
|
-
- Auto-created by 'npm run setup' script
|
|
42
|
-
- Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
|
|
43
|
-
|
|
44
|
-
π Next Steps:
|
|
45
|
-
cd test-agent
|
|
46
|
-
|
|
47
|
-
[90mstdout[2m | src/__tests__/scaffolder-envprefix.test.ts[2m > [22m[2mScaffolder envPrefix Configuration[2m > [22m[2mshould include envPrefix in generated index.ts
|
|
48
|
-
[22m[39m wrangler login # Login to Cloudflare first!
|
|
49
|
-
npm run setup # Create KV namespaces
|
|
50
|
-
npm run dev # Start local development
|
|
51
|
-
npm run deploy # Deploy to Cloudflare
|
|
24
|
+
β src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
|
|
25
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
|
|
52
26
|
|
|
53
|
-
|
|
54
|
-
[90mstdout[2m | src/__tests__/helpers/install.test.ts[2m > [22m[2minstall[2m > [22m[2mDependency installation[2m > [22m[2mshould install dependencies with yarn
|
|
55
|
-
[22m[39m
|
|
56
27
|
π¦ Installing dependencies with yarn...
|
|
57
28
|
β Lockfile created (yarn.lock) - remember to commit it
|
|
58
29
|
|
|
59
|
-
|
|
60
|
-
[22m[39mβ οΈ dist-tag 'next' not available for xmcp, falling back to ^0.3.1
|
|
30
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
|
|
61
31
|
|
|
62
|
-
[90mstdout[2m | src/__tests__/helpers/install.test.ts[2m > [22m[2minstall[2m > [22m[2mDependency installation[2m > [22m[2mshould install dependencies with pnpm
|
|
63
|
-
[22m[39m
|
|
64
32
|
π¦ Installing dependencies with pnpm...
|
|
65
33
|
β Lockfile created (pnpm-lock.yaml) - remember to commit it
|
|
66
34
|
|
|
67
|
-
|
|
68
|
-
[22m[39m
|
|
69
|
-
ποΈ Generating Cloudflare MCP-I project: my-awesome-agent...
|
|
70
|
-
|
|
71
|
-
[90mstdout[2m | src/__tests__/scaffolder-envprefix.test.ts[2m > [22m[2mScaffolder envPrefix Configuration[2m > [22m[2mshould use correct prefix format (uppercase with underscores)
|
|
72
|
-
[22m[39mπ Generating cryptographic identity...
|
|
35
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
|
|
73
36
|
|
|
74
|
-
[90mstdout[2m | src/__tests__/helpers/install.test.ts[2m > [22m[2minstall[2m > [22m[2mDependency installation[2m > [22m[2mshould use correct working directory
|
|
75
|
-
[22m[39m
|
|
76
37
|
π¦ Installing dependencies with npm...
|
|
77
38
|
β Lockfile created (package-lock.json) - remember to commit it
|
|
78
39
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
[22m[39mβ οΈ Warning: No lockfile generated (pnpm-lock.yaml)
|
|
40
|
+
stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
|
|
41
|
+
β οΈ Warning: No lockfile generated (pnpm-lock.yaml)
|
|
42
|
+
|
|
43
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
|
|
84
44
|
|
|
85
|
-
[90mstderr[2m | src/__tests__/helpers/install.test.ts[2m > [22m[2minstall[2m > [22m[2mError handling[2m > [22m[2mshould throw error when installation fails
|
|
86
|
-
[22m[39m
|
|
87
45
|
π¦ Installing dependencies with npm...
|
|
88
46
|
β Lockfile created (package-lock.json) - remember to commit it
|
|
89
|
-
[22m[39mFailed to install dependencies with npm.
|
|
90
47
|
|
|
91
|
-
|
|
92
|
-
|
|
48
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
|
|
49
|
+
|
|
93
50
|
π¦ Installing dependencies with npm...
|
|
94
51
|
|
|
95
|
-
|
|
52
|
+
stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
|
|
53
|
+
Failed to install dependencies with npm.
|
|
54
|
+
|
|
55
|
+
β test-cloudflare/tests/do-routing.test.ts (14 tests) 62ms
|
|
56
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
|
|
96
57
|
|
|
97
|
-
[22m[39m
|
|
98
58
|
π¦ Installing dependencies with npm...
|
|
59
|
+
stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
|
|
60
|
+
|
|
61
|
+
Failed to install dependencies with npm.
|
|
62
|
+
|
|
63
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
|
|
99
64
|
|
|
100
|
-
[90mstdout[2m | src/__tests__/helpers/install.test.ts[2m > [22m[2minstall[2m > [22m[2mError handling[2m > [22m[2mshould handle permission errors during installation
|
|
101
|
-
[22m[39m
|
|
102
65
|
π¦ Installing dependencies with npm...
|
|
103
66
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
[22m[39m
|
|
107
|
-
[22m[39mFailed to install dependencies with npm.
|
|
67
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
|
|
68
|
+
|
|
108
69
|
π¦ Installing dependencies with npm...
|
|
109
70
|
|
|
71
|
+
stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
|
|
72
|
+
Failed to install dependencies with npm.
|
|
73
|
+
|
|
74
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
|
|
110
75
|
|
|
111
|
-
[90mstdout[2m | src/__tests__/helpers/install.test.ts[2m > [22m[2minstall[2m > [22m[2mError handling[2m > [22m[2mshould handle invalid package manager gracefully
|
|
112
|
-
[22m[39m
|
|
113
|
-
[90mstderr[2m | src/__tests__/helpers/install.test.ts[2m > [22m[2minstall[2m > [22m[2mError handling[2m > [22m[2mshould handle permission errors during installation
|
|
114
|
-
[22m[39mFailed to install dependencies with npm.
|
|
115
76
|
π¦ Installing dependencies with unknown...
|
|
116
77
|
|
|
117
|
-
|
|
118
|
-
|
|
78
|
+
stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
|
|
79
|
+
β οΈ Warning: Unknown package manager "unknown", cannot check lockfile
|
|
80
|
+
|
|
81
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
|
|
82
|
+
|
|
83
|
+
ποΈ Generating Cloudflare MCP-I project: test-agent...
|
|
84
|
+
|
|
85
|
+
stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
|
|
119
86
|
|
|
120
87
|
π¦ Installing dependencies with npm...
|
|
121
|
-
[90mstderr[2m | src/__tests__/helpers/install.test.ts[2m > [22m[2minstall[2m > [22m[2mError handling[2m > [22m[2mshould handle invalid package manager gracefully
|
|
122
88
|
|
|
123
|
-
|
|
124
|
-
|
|
89
|
+
β src/__tests__/helpers/install.test.ts (20 tests) 29ms
|
|
90
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
|
|
91
|
+
π Generating cryptographic identity...
|
|
92
|
+
|
|
93
|
+
β src/__tests__/helpers/generate-identity.test.ts (24 tests) 43ms
|
|
94
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
|
|
95
|
+
β Created Cloudflare MCP-I template files
|
|
125
96
|
- Generated identity keys in .dev.vars
|
|
126
97
|
- Configured wrangler.toml with KV namespaces
|
|
127
98
|
- Created modular tool structure
|
|
128
|
-
[22m[39mβ οΈ Warning: Unknown package manager "unknown", cannot check lockfile
|
|
129
99
|
- Created setup script for KV namespace creation
|
|
130
100
|
|
|
131
|
-
|
|
132
101
|
============================================================
|
|
133
102
|
π Cloudflare MCP-I project created successfully!
|
|
134
103
|
============================================================
|
|
@@ -146,24 +115,24 @@
|
|
|
146
115
|
- Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
|
|
147
116
|
|
|
148
117
|
π Next Steps:
|
|
149
|
-
cd
|
|
118
|
+
cd test-agent
|
|
150
119
|
|
|
151
|
-
|
|
152
|
-
|
|
120
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
|
|
121
|
+
wrangler login # Login to Cloudflare first!
|
|
153
122
|
npm run setup # Create KV namespaces
|
|
154
123
|
npm run dev # Start local development
|
|
155
124
|
npm run deploy # Deploy to Cloudflare
|
|
156
125
|
|
|
157
126
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
ποΈ Generating Cloudflare MCP-I project:
|
|
127
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
|
|
128
|
+
|
|
129
|
+
ποΈ Generating Cloudflare MCP-I project: my-awesome-agent...
|
|
161
130
|
|
|
162
|
-
|
|
163
|
-
|
|
131
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
|
|
132
|
+
π Generating cryptographic identity...
|
|
164
133
|
|
|
165
|
-
|
|
166
|
-
|
|
134
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
|
|
135
|
+
β Created Cloudflare MCP-I template files
|
|
167
136
|
- Generated identity keys in .dev.vars
|
|
168
137
|
- Configured wrangler.toml with KV namespaces
|
|
169
138
|
- Created modular tool structure
|
|
@@ -186,32 +155,24 @@
|
|
|
186
155
|
- Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
|
|
187
156
|
|
|
188
157
|
π Next Steps:
|
|
189
|
-
cd
|
|
158
|
+
cd my-awesome-agent
|
|
190
159
|
|
|
191
|
-
|
|
192
|
-
|
|
160
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
|
|
161
|
+
wrangler login # Login to Cloudflare first!
|
|
193
162
|
npm run setup # Create KV namespaces
|
|
194
163
|
npm run dev # Start local development
|
|
195
164
|
npm run deploy # Deploy to Cloudflare
|
|
196
165
|
|
|
197
166
|
|
|
198
|
-
|
|
199
|
-
[22m[39m
|
|
200
|
-
π¦ Installing dependencies with custom...
|
|
167
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
|
|
201
168
|
|
|
202
|
-
[32mβ[39m src/__tests__/utils/validate-project-name.test.ts [2m([22m[2m29 tests[22m[2m)[22m[32m 23[2mms[22m[39m
|
|
203
|
-
[32mβ[39m src/__tests__/helpers/install.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 75[2mms[22m[39m
|
|
204
|
-
[32mβ[39m src/__tests__/helpers/generate-config.test.ts [2m([22m[2m25 tests[22m[2m)[22m[32m 73[2mms[22m[39m
|
|
205
|
-
[90mstdout[2m | src/__tests__/scaffolder-envprefix.test.ts[2m > [22m[2mScaffolder envPrefix Configuration[2m > [22m[2mshould match envPrefix with KV binding names in wrangler.toml
|
|
206
|
-
[22m[39m
|
|
207
169
|
ποΈ Generating Cloudflare MCP-I project: test-agent...
|
|
208
170
|
|
|
209
|
-
|
|
210
|
-
|
|
171
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
|
|
172
|
+
π Generating cryptographic identity...
|
|
211
173
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
[22m[39mβ Created Cloudflare MCP-I template files
|
|
174
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
|
|
175
|
+
β Created Cloudflare MCP-I template files
|
|
215
176
|
- Generated identity keys in .dev.vars
|
|
216
177
|
- Configured wrangler.toml with KV namespaces
|
|
217
178
|
- Created modular tool structure
|
|
@@ -236,133 +197,101 @@
|
|
|
236
197
|
π Next Steps:
|
|
237
198
|
cd test-agent
|
|
238
199
|
|
|
239
|
-
|
|
240
|
-
|
|
200
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
|
|
201
|
+
wrangler login # Login to Cloudflare first!
|
|
241
202
|
npm run setup # Create KV namespaces
|
|
242
203
|
npm run dev # Start local development
|
|
243
204
|
npm run deploy # Deploy to Cloudflare
|
|
244
205
|
|
|
245
206
|
|
|
246
|
-
|
|
247
|
-
[32mβ[39m src/__tests__/scaffolder-envprefix.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 139[2mms[22m[39m
|
|
248
|
-
[90mstdout[2m | src/__tests__/cli-runner.test.ts[2m > [22m[2mrunCLI[2m > [22m[2mpasses CLI flags to createProject when using --yes
|
|
249
|
-
[22m[39m
|
|
250
|
-
create-mcpi-app@1.8.23
|
|
251
|
-
|
|
252
|
-
[90mstdout[2m | src/__tests__/cli-runner.test.ts[2m > [22m[2mrunCLI[2m > [22m[2mpasses CLI flags to createProject when using --yes
|
|
253
|
-
[22m[39mBANNER
|
|
254
|
-
|
|
255
|
-
Enhanced with identity features by MCP-I
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
[90mstdout[2m | src/__tests__/cli-runner.test.ts[2m > [22m[2mrunCLI[2m > [22m[2mpasses CLI flags to createProject when using --yes
|
|
259
|
-
[22m[39m
|
|
260
|
-
Next Steps:
|
|
261
|
-
1. Install dependencies:
|
|
262
|
-
cd my-agent
|
|
263
|
-
npm install
|
|
264
|
-
|
|
265
|
-
2. Start development server:
|
|
266
|
-
npm run dev
|
|
267
|
-
|
|
268
|
-
3. Deploy when ready:
|
|
269
|
-
npm run start
|
|
270
|
-
|
|
271
|
-
[90mstdout[2m | src/__tests__/cli-runner.test.ts[2m > [22m[2mrunCLI[2m > [22m[2mexits when project name validation fails
|
|
272
|
-
[22m[39m
|
|
273
|
-
create-mcpi-app@1.8.23
|
|
274
|
-
|
|
275
|
-
[90mstdout[2m | src/__tests__/cli-runner.test.ts[2m > [22m[2mrunCLI[2m > [22m[2mexits when project name validation fails
|
|
276
|
-
[22m[39mBANNER
|
|
277
|
-
|
|
278
|
-
Enhanced with identity features by MCP-I
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
[90mstderr[2m | src/__tests__/cli-runner.test.ts[2m > [22m[2mrunCLI[2m > [22m[2mexits when project name validation fails
|
|
282
|
-
[22m[39mInvalid project name:
|
|
283
|
-
- bad
|
|
284
|
-
|
|
285
|
-
[90mstdout[2m | src/__tests__/cli-runner.test.ts[2m > [22m[2mrunCLI[2m > [22m[2mhonors package manager and version flags
|
|
286
|
-
[22m[39m
|
|
287
|
-
create-mcpi-app@1.8.23
|
|
288
|
-
|
|
289
|
-
[90mstdout[2m | src/__tests__/cli-runner.test.ts[2m > [22m[2mrunCLI[2m > [22m[2mhonors package manager and version flags
|
|
290
|
-
[22m[39mBANNER
|
|
291
|
-
|
|
292
|
-
Enhanced with identity features by MCP-I
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
[90mstdout[2m | src/__tests__/cli-runner.test.ts[2m > [22m[2mrunCLI[2m > [22m[2mhonors package manager and version flags
|
|
296
|
-
[22m[39m
|
|
297
|
-
Next Steps:
|
|
298
|
-
1. Install dependencies:
|
|
299
|
-
cd pnpm-agent
|
|
300
|
-
pnpm install
|
|
301
|
-
|
|
302
|
-
2. Initialize identity:
|
|
303
|
-
pnpm init
|
|
207
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
|
|
304
208
|
|
|
305
|
-
|
|
306
|
-
pnpm dev
|
|
209
|
+
ποΈ Generating Cloudflare MCP-I project: test-agent...
|
|
307
210
|
|
|
308
|
-
|
|
309
|
-
|
|
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
|
+
β― src/__tests__/helpers/validate-project-structure.test.ts (23 tests | 1 failed) 52ms
|
|
215
|
+
Γ should validate identity-enabled project structure correctly 3ms
|
|
216
|
+
β should validate vanilla project structure correctly 7ms
|
|
217
|
+
β should detect missing package.json 1ms
|
|
218
|
+
β should detect incorrect script count for identity project 1ms
|
|
219
|
+
β should detect incorrect script count for vanilla project 2ms
|
|
220
|
+
β should detect missing required scripts 1ms
|
|
221
|
+
β should detect missing greet.ts file 4ms
|
|
222
|
+
β should detect missing .gitignore file 2ms
|
|
223
|
+
β should detect missing xmcp.config.ts file 2ms
|
|
224
|
+
β should validate all required files exist 3ms
|
|
225
|
+
β should handle package.json without scripts 1ms
|
|
226
|
+
β should handle package.json with empty scripts 1ms
|
|
227
|
+
β should validate correct number of scripts 3ms
|
|
228
|
+
β should provide clear error messages for missing scripts 2ms
|
|
229
|
+
β should provide clear error messages for missing files 1ms
|
|
230
|
+
β should include file path in error messages 2ms
|
|
231
|
+
β should require .mcpi/ in .gitignore for identity projects 4ms
|
|
232
|
+
β should not require .mcpi/ in .gitignore for vanilla projects 3ms
|
|
233
|
+
β should detect npm lockfile 2ms
|
|
234
|
+
β should detect yarn lockfile 1ms
|
|
235
|
+
β should detect pnpm lockfile 1ms
|
|
236
|
+
β should warn when lockfile not found 1ms
|
|
237
|
+
β should handle unknown package manager 1ms
|
|
238
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
|
|
239
|
+
β Created Cloudflare MCP-I template files
|
|
240
|
+
- Generated identity keys in .dev.vars
|
|
241
|
+
- Configured wrangler.toml with KV namespaces
|
|
242
|
+
- Created modular tool structure
|
|
243
|
+
- Created setup script for KV namespace creation
|
|
310
244
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
245
|
+
============================================================
|
|
246
|
+
π Cloudflare MCP-I project created successfully!
|
|
247
|
+
============================================================
|
|
314
248
|
|
|
315
|
-
|
|
316
|
-
[22m[39mBANNER
|
|
249
|
+
π Important Configuration Notes:
|
|
317
250
|
|
|
318
|
-
|
|
251
|
+
1. ADMIN_API_KEY (in .dev.vars):
|
|
252
|
+
- Set to same value as AGENTSHIELD_API_KEY for convenience
|
|
253
|
+
- You can change it if you need separate admin endpoint security
|
|
254
|
+
- Required for admin endpoints like /admin/clear-cache
|
|
319
255
|
|
|
256
|
+
2. KV Namespaces (in wrangler.toml):
|
|
257
|
+
- Required for MCP-I security features
|
|
258
|
+
- Auto-created by 'npm run setup' script
|
|
259
|
+
- Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
|
|
320
260
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
Creating a new xmcp app in /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/interactive-app.
|
|
261
|
+
π Next Steps:
|
|
262
|
+
cd test-agent
|
|
324
263
|
|
|
264
|
+
stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
|
|
265
|
+
wrangler login # Login to Cloudflare first!
|
|
266
|
+
npm run setup # Create KV namespaces
|
|
267
|
+
npm run dev # Start local development
|
|
268
|
+
npm run deploy # Deploy to Cloudflare
|
|
325
269
|
|
|
326
|
-
[90mstdout[2m | src/__tests__/cli-runner.test.ts[2m > [22m[2mrunCLI[2m > [22m[2mprompts for package manager and transports when --yes is not set
|
|
327
|
-
[22m[39m
|
|
328
|
-
Next Steps:
|
|
329
|
-
1. Install dependencies:
|
|
330
|
-
cd interactive-app
|
|
331
|
-
pnpm install
|
|
332
270
|
|
|
333
|
-
|
|
334
|
-
|
|
271
|
+
β src/__tests__/scaffolder-envprefix.test.ts (4 tests) 40ms
|
|
272
|
+
β src/__tests__/helpers/generate-config.test.ts (25 tests) 49ms
|
|
273
|
+
β src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 141ms
|
|
274
|
+
β src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 182ms
|
|
335
275
|
|
|
336
|
-
|
|
337
|
-
pnpm start
|
|
276
|
+
β―β―β―β―β―β―β― Failed Tests 1 β―β―β―β―β―β―β―
|
|
338
277
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
278
|
+
FAIL src/__tests__/helpers/validate-project-structure.test.ts > validateProjectStructure > Project structure validation > should validate identity-enabled project structure correctly
|
|
279
|
+
Error: ENOENT: no such file or directory, open '/Users/brian/Documents/Vouched/@sandbox/xmcp-i-S/packages/create-mcpi-app/test-temp/validate-test-1764171409545-6a9ur9/package.json'
|
|
280
|
+
β― Object.writeFileSync ../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js:78:13
|
|
281
|
+
β― src/__tests__/helpers/validate-project-structure.test.ts:60:10
|
|
282
|
+
58| };
|
|
283
|
+
59|
|
|
284
|
+
60| fs.writeJsonSync(path.join(tempDir, 'package.json'), packageJsonβ¦
|
|
285
|
+
| ^
|
|
286
|
+
61| fs.ensureDirSync(path.join(tempDir, 'src', 'tools'));
|
|
287
|
+
62| fs.writeFileSync(path.join(tempDir, 'src', 'tools', 'greet.ts'),β¦
|
|
347
288
|
|
|
348
|
-
|
|
349
|
-
[32mβ[39m src/__tests__/utils/is-folder-empty.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 47[2mms[22m[39m
|
|
350
|
-
[32mβ[39m src/__tests__/helpers/fetch-cloudflare-template.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 27[2mms[22m[39m
|
|
351
|
-
[32mβ[39m test-cloudflare/tests/do-routing.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 56[2mms[22m[39m
|
|
352
|
-
[32mβ[39m src/__tests__/helpers/generate-identity.test.ts [2m([22m[2m24 tests[22m[2m)[22m[32m 73[2mms[22m[39m
|
|
353
|
-
[32mβ[39m src/__tests__/effects/index.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
354
|
-
[32mβ[39m src/utils/__tests__/fetch-remote-config.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
355
|
-
[32mβ[39m test-cloudflare/tests/delegation.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
356
|
-
[32mβ[39m test-cloudflare/tests/cors-security.test.ts [2m([22m[2m29 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
357
|
-
[90mstderr[2m | src/helpers/__tests__/config-builder.spec.ts[2m > [22m[2mbuildConfigWithRemote[2m > [22m[2mshould fallback to local config when remote fetch fails
|
|
358
|
-
[22m[39m[RemoteConfig] Neither projectId nor agentDid provided
|
|
289
|
+
β―β―β―β―β―β―β―β―β―β―β―β―β―β―β―β―β―β―β―β―β―β―β―β―[1/1]β―
|
|
359
290
|
|
|
360
|
-
[32mβ[39m src/helpers/__tests__/config-builder.spec.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
361
|
-
[32mβ[39m src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [2m([22m[2m21 tests[22m[2m)[22m[33m 443[2mms[22m[39m
|
|
362
|
-
[32mβ[39m src/__tests__/cloudflare-template.test.ts [2m([22m[2m30 tests[22m[2m | [22m[33m2 skipped[39m[2m)[22m[33m 511[2mms[22m[39m
|
|
363
291
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
292
|
+
Test Files 1 failed | 13 passed (14)
|
|
293
|
+
Tests 1 failed | 255 passed | 2 skipped (258)
|
|
294
|
+
Start at 10:36:49
|
|
295
|
+
Duration 495ms (transform 761ms, setup 0ms, collect 1.26s, tests 634ms, environment 1ms, prepare 74ms)
|
|
368
296
|
|
|
297
|
+
βELIFECYCLEβ Test failed. See above for more details.
|
|
@@ -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.
|
|
83
|
+
"@kya-os/mcp-i-cloudflare": "1.6.24",
|
|
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.
|
|
660
|
+
const expectedVersion = "1.6.24";
|
|
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.
|
|
3
|
+
"version": "1.8.25",
|
|
4
4
|
"description": "Scaffold a new MCP-I application",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-mcpi-app": "./dist/index.js"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@kya-os/cli-effects": "^1.0.19",
|
|
19
19
|
"@kya-os/contracts": "^1.6.3",
|
|
20
20
|
"@kya-os/mcp-i": "^1.6.2",
|
|
21
|
-
"@kya-os/mcp-i-cloudflare": "^1.6.
|
|
21
|
+
"@kya-os/mcp-i-cloudflare": "^1.6.24",
|
|
22
22
|
"base-x": "^5.0.0",
|
|
23
23
|
"chalk": "^4.1.2",
|
|
24
24
|
"commander": "^12.1.0",
|