@vocoder/cli 0.16.3 → 0.16.4
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/bin.mjs +6 -7
- package/dist/bin.mjs.map +1 -1
- package/package.json +3 -3
package/dist/bin.mjs
CHANGED
|
@@ -1175,13 +1175,12 @@ function writeApiKeyToEnv(apiKey, repoRoot) {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
function printApiKey(apiKey, repoRoot) {
|
|
1177
1177
|
const saved = writeApiKeyToEnv(apiKey, repoRoot);
|
|
1178
|
-
p6.log.message("");
|
|
1179
|
-
p6.log.message(chalk5.bold("Your API Key"));
|
|
1180
|
-
printCodeBlock(`VOCODER_API_KEY=${apiKey}`);
|
|
1181
1178
|
if (saved) {
|
|
1182
|
-
p6.log.success(
|
|
1179
|
+
p6.log.success("API key saved to .env");
|
|
1183
1180
|
} else {
|
|
1184
|
-
p6.log.
|
|
1181
|
+
p6.log.warn(
|
|
1182
|
+
"Could not write to .env \u2014 find your API key at https://vocoder.app/settings"
|
|
1183
|
+
);
|
|
1185
1184
|
}
|
|
1186
1185
|
}
|
|
1187
1186
|
|
|
@@ -1569,14 +1568,14 @@ async function runMcpSetup(apiKey) {
|
|
|
1569
1568
|
if (tool === "claude") {
|
|
1570
1569
|
try {
|
|
1571
1570
|
execSync5(
|
|
1572
|
-
`claude mcp add --scope user --transport stdio -e VOCODER_API_KEY=${apiKey}
|
|
1571
|
+
`claude mcp add vocoder --scope user --transport stdio -e VOCODER_API_KEY=${apiKey} -- npx -y @vocoder/mcp`,
|
|
1573
1572
|
{ stdio: "pipe" }
|
|
1574
1573
|
);
|
|
1575
1574
|
p8.log.success("Vocoder MCP server registered in Claude Code.");
|
|
1576
1575
|
} catch {
|
|
1577
1576
|
p8.log.message(chalk7.dim("(automatic registration failed \u2014 run this command manually:)"));
|
|
1578
1577
|
printCommand(
|
|
1579
|
-
`claude mcp add --scope user --transport stdio -e VOCODER_API_KEY=${apiKey}
|
|
1578
|
+
`claude mcp add vocoder --scope user --transport stdio -e VOCODER_API_KEY=${apiKey} -- npx -y @vocoder/mcp`
|
|
1580
1579
|
);
|
|
1581
1580
|
p8.log.message(info(` Docs: ${MCP_DOCS_URL}`));
|
|
1582
1581
|
}
|