@matthesketh/utopia-cli 0.7.1 → 0.7.2
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/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -134,7 +134,9 @@ async function mcpServe() {
|
|
|
134
134
|
const content = await server.ssrLoadModule("@matthesketh/utopia-content");
|
|
135
135
|
const names = content.listCollections();
|
|
136
136
|
if (names.length === 0) {
|
|
137
|
-
process.stderr.write(
|
|
137
|
+
process.stderr.write(
|
|
138
|
+
"No collections defined. Add defineCollection() calls to your config.\n"
|
|
139
|
+
);
|
|
138
140
|
process.exit(1);
|
|
139
141
|
}
|
|
140
142
|
const contentMcp = await server.ssrLoadModule("@matthesketh/utopia-content/mcp");
|
|
@@ -220,7 +222,9 @@ function mcpInstall() {
|
|
|
220
222
|
try {
|
|
221
223
|
execSync("claude --version", { stdio: "ignore" });
|
|
222
224
|
} catch {
|
|
223
|
-
console.error(
|
|
225
|
+
console.error(
|
|
226
|
+
"Claude Code CLI not found. Install it first: npm i -g @anthropic-ai/claude-code"
|
|
227
|
+
);
|
|
224
228
|
process.exit(1);
|
|
225
229
|
}
|
|
226
230
|
try {
|