@kya-os/create-mcpi-app 1.8.22 → 1.8.24-canary.0

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,257 +1,132 @@
1
1
 
2
- > @kya-os/create-mcpi-app@1.8.21 test /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
3
- > vitest run
2
+ > @kya-os/create-mcpi-app@1.7.42-canary.19 test /Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app
3
+ > vitest --run
4
4
 
5
+ ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
5
6
 
6
- RUN v4.0.14 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
7
+ package.json:15:6:
8
+ 15 │ "types": "./dist/index.d.ts"
9
+ ╵ ~~~~~~~
7
10
 
8
- test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
9
- ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 4ms
10
- ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
11
- stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
12
- [Session] Created session: secure-session
11
+ The "import" condition comes earlier and will be used for all "import" statements:
13
12
 
14
- ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 16ms
15
- stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
16
- [RemoteConfig] Neither projectId nor agentDid provided
13
+ package.json:13:6:
14
+ 13 │ "import": "./dist/index.js",
15
+ ╵ ~~~~~~~~
17
16
 
18
- src/helpers/__tests__/config-builder.spec.ts (12 tests) 3ms
19
- ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 20ms
20
- ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 42ms
21
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
17
+ The "require" condition comes earlier and will be used for all "require" calls:
22
18
 
23
- 🏗️ Generating Cloudflare MCP-I project: test-agent...
19
+ package.json:14:6:
20
+ 14 │ "require": "./dist/index.js",
21
+ ╵ ~~~~~~~~~
24
22
 
25
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
26
- 🔑 Generating cryptographic identity...
23
+ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
27
24
 
28
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
25
+ package.json:20:6:
26
+ 20 │ "types": "./dist/helpers/config-builder.d.ts"
27
+ ╵ ~~~~~~~
29
28
 
30
- 📦 Installing dependencies with npm...
31
- ✓ Lockfile created (package-lock.json) - remember to commit it
29
+ The "import" condition comes earlier and will be used for all "import" statements:
32
30
 
33
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
31
+ package.json:18:6:
32
+ 18 │ "import": "./dist/helpers/config-builder.js",
33
+ ╵ ~~~~~~~~
34
34
 
35
- 📦 Installing dependencies with yarn...
36
- ✓ Lockfile created (yarn.lock) - remember to commit it
35
+ The "require" condition comes earlier and will be used for all "require" calls:
37
36
 
38
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
39
- Created Cloudflare MCP-I template files
40
- - Generated identity keys in .dev.vars
41
- - Configured wrangler.toml with KV namespaces
42
- - Created modular tool structure
43
- - Created setup script for KV namespace creation
37
+ package.json:19:6:
38
+ 19 │ "require": "./dist/helpers/config-builder.js",
39
+ ╵ ~~~~~~~~~
44
40
 
45
- ============================================================
46
- 🎉 Cloudflare MCP-I project created successfully!
47
- ============================================================
48
41
 
49
- 📝 Important Configuration Notes:
42
+  RUN  v4.0.5 /Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app
50
43
 
51
- 1. ADMIN_API_KEY (in .dev.vars):
52
- - Set to same value as AGENTSHIELD_API_KEY for convenience
53
- - You can change it if you need separate admin endpoint security
54
- - Required for admin endpoints like /admin/clear-cache
44
+ ✓ src/__tests__/cloudflare-template.test.ts (24 tests) 89ms
45
+ ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 171ms
46
+ ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
47
+ ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 4ms
48
+ ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
49
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
50
+ [Session] Created session: secure-session
55
51
 
56
- 2. KV Namespaces (in wrangler.toml):
57
- - Required for MCP-I security features
58
- - Auto-created by 'npm run setup' script
59
- - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
60
-
61
- 🚀 Next Steps:
62
- cd test-agent
63
-
64
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
65
- wrangler login # Login to Cloudflare first!
66
- npm run setup # Create KV namespaces
67
- npm run dev # Start local development
68
- npm run deploy # Deploy to Cloudflare
52
+ ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 16ms
53
+ ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 4ms
54
+ stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
55
+ [RemoteConfig] Neither projectId nor agentDid provided
69
56
 
57
+ ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 7ms
58
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
59
+ 
60
+ 📦 Installing dependencies with npm...
61
+ ✓ Lockfile created (package-lock.json) - remember to commit it
70
62
 
71
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
63
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
64
+ 
65
+ 📦 Installing dependencies with yarn...
66
+ ✓ Lockfile created (yarn.lock) - remember to commit it
72
67
 
68
+ ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 30ms
69
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
70
+ 
73
71
  📦 Installing dependencies with pnpm...
74
72
  ✓ Lockfile created (pnpm-lock.yaml) - remember to commit it
75
73
 
76
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
77
-
74
+ ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 56ms
75
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
76
+ 
78
77
  📦 Installing dependencies with npm...
79
78
  ✓ Lockfile created (package-lock.json) - remember to commit it
80
79
 
81
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
82
-
83
- 🏗️ Generating Cloudflare MCP-I project: my-awesome-agent...
84
-
85
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
86
- 🔑 Generating cryptographic identity...
87
-
88
- stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
89
- ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
90
-
91
- stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
80
+ stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
81
+ ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
92
82
 
83
+ stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
84
+ 
93
85
  📦 Installing dependencies with npm...
94
86
  ✓ Lockfile created (package-lock.json) - remember to commit it
95
87
 
96
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
97
- ✔ Created Cloudflare MCP-I template files
98
- - Generated identity keys in .dev.vars
99
- - Configured wrangler.toml with KV namespaces
100
- - Created modular tool structure
101
- - Created setup script for KV namespace creation
102
-
103
- ============================================================
104
- 🎉 Cloudflare MCP-I project created successfully!
105
- ============================================================
106
-
107
- 📝 Important Configuration Notes:
108
-
109
- 1. ADMIN_API_KEY (in .dev.vars):
110
- - Set to same value as AGENTSHIELD_API_KEY for convenience
111
- - You can change it if you need separate admin endpoint security
112
- - Required for admin endpoints like /admin/clear-cache
113
-
114
- 2. KV Namespaces (in wrangler.toml):
115
- - Required for MCP-I security features
116
- - Auto-created by 'npm run setup' script
117
- - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
118
-
119
- 🚀 Next Steps:
120
- cd my-awesome-agent
121
-
122
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
123
- wrangler login # Login to Cloudflare first!
124
- npm run setup # Create KV namespaces
125
- npm run dev # Start local development
126
- npm run deploy # Deploy to Cloudflare
127
-
128
-
129
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
130
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
131
-
88
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
89
+ 
132
90
  📦 Installing dependencies with npm...
133
91
 
134
- Failed to install dependencies with npm.
135
-
136
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
137
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
92
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
93
+ Failed to install dependencies with npm.
138
94
 
95
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
96
+ 
139
97
  📦 Installing dependencies with npm...
140
98
 
141
- Failed to install dependencies with npm.
142
-
143
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
144
-
145
- 🏗️ Generating Cloudflare MCP-I project: test-agent...
146
-
147
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
148
- 🔑 Generating cryptographic identity...
149
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
150
- Failed to install dependencies with npm.
151
-
152
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
99
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
100
+ Failed to install dependencies with npm.
153
101
 
102
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
103
+ 
154
104
  📦 Installing dependencies with npm...
155
105
 
106
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
107
+ Failed to install dependencies with npm.
156
108
 
157
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
158
-
109
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
110
+ 
159
111
  📦 Installing dependencies with npm...
160
112
 
161
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
162
-
113
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
114
+ 
163
115
  📦 Installing dependencies with unknown...
164
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
165
- ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
166
-
167
116
 
168
- stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
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
169
119
 
120
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
121
+ 
170
122
  📦 Installing dependencies with npm...
171
123
 
172
- src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 3ms
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
- ✓ src/__tests__/helpers/install.test.ts (20 tests) 50ms
200
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
201
- wrangler login # Login to Cloudflare first!
202
- npm run setup # Create KV namespaces
203
- npm run dev # Start local development
204
- npm run deploy # Deploy to Cloudflare
205
-
206
-
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
- ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 62ms
215
- ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 72ms
216
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
217
- ✔ Created Cloudflare MCP-I template files
218
- - Generated identity keys in .dev.vars
219
- - Configured wrangler.toml with KV namespaces
220
- - Created modular tool structure
221
- - Created setup script for KV namespace creation
222
-
223
- ============================================================
224
- 🎉 Cloudflare MCP-I project created successfully!
225
- ============================================================
226
-
227
- 📝 Important Configuration Notes:
228
-
229
- 1. ADMIN_API_KEY (in .dev.vars):
230
- - Set to same value as AGENTSHIELD_API_KEY for convenience
231
- - You can change it if you need separate admin endpoint security
232
- - Required for admin endpoints like /admin/clear-cache
233
-
234
- 2. KV Namespaces (in wrangler.toml):
235
- - Required for MCP-I security features
236
- - Auto-created by 'npm run setup' script
237
- - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
238
-
239
- 🚀 Next Steps:
240
- cd test-agent
241
-
242
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
243
- wrangler login # Login to Cloudflare first!
244
- npm run setup # Create KV namespaces
245
- npm run dev # Start local development
246
- npm run deploy # Deploy to Cloudflare
247
-
248
-
249
- ✓ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 66ms
250
- ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 151ms
251
- ✓ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 184ms
124
+ ✓ src/__tests__/helpers/install.test.ts (20 tests) 37ms
125
+ ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 53ms
126
+ ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 41ms
252
127
 
253
- Test Files 14 passed (14)
254
- Tests 256 passed | 2 skipped (258)
255
- Start at 13:04:05
256
- Duration 495ms (transform 712ms, setup 0ms, import 1.32s, tests 683ms, environment 1ms)
128
+  Test Files  13 passed (13)
129
+  Tests  248 passed (248)
130
+  Start at  15:48:56
131
+  Duration  938ms (transform 466ms, setup 0ms, collect 792ms, tests 517ms, environment 1ms, prepare 154ms)
257
132
 
@@ -0,0 +1,2 @@
1
+ export declare function runCLI(argv?: string[]): Promise<void>;
2
+ //# sourceMappingURL=cli-runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-runner.d.ts","sourceRoot":"","sources":["../src/cli-runner.ts"],"names":[],"mappings":"AA0BA,wBAAsB,MAAM,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2bzE"}