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