@danainnovations/cortex-mcp 1.0.70 → 1.0.72
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/cli.js +22 -0
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1281,6 +1281,7 @@ function getWizardHtml() {
|
|
|
1281
1281
|
statusSpan.className = 'conn-status';
|
|
1282
1282
|
btn.disabled = false;
|
|
1283
1283
|
btn.textContent = 'Retry';
|
|
1284
|
+
btn.onclick = function() { connectProvider(name, displayName); };
|
|
1284
1285
|
return;
|
|
1285
1286
|
}
|
|
1286
1287
|
|
|
@@ -2039,6 +2040,17 @@ async function handleApiRoute(path, searchParams, req, res, options, onComplete)
|
|
|
2039
2040
|
const body = await parseBody(req);
|
|
2040
2041
|
const mcps = body.mcps || [...DEFAULT_MCPS];
|
|
2041
2042
|
const configuredClients = body.configuredClients || [];
|
|
2043
|
+
const apiKey = getState().apiKey;
|
|
2044
|
+
try {
|
|
2045
|
+
await fetch(`${options.serverUrl}/api/v1/setup/complete`, {
|
|
2046
|
+
method: "POST",
|
|
2047
|
+
headers: {
|
|
2048
|
+
"Content-Type": "application/json",
|
|
2049
|
+
"x-api-key": apiKey
|
|
2050
|
+
}
|
|
2051
|
+
});
|
|
2052
|
+
} catch {
|
|
2053
|
+
}
|
|
2042
2054
|
const config = createConfig(getState().apiKey, mcps);
|
|
2043
2055
|
config.configuredClients = configuredClients;
|
|
2044
2056
|
writeConfig(config);
|
|
@@ -3667,6 +3679,16 @@ async function runLogin(emailHint) {
|
|
|
3667
3679
|
writeConfig(existingConfig);
|
|
3668
3680
|
}
|
|
3669
3681
|
await showConnectionsAndAutoConnect(apiKey, serverUrl);
|
|
3682
|
+
try {
|
|
3683
|
+
await fetch(`${serverUrl}/api/v1/setup/complete`, {
|
|
3684
|
+
method: "POST",
|
|
3685
|
+
headers: {
|
|
3686
|
+
"Content-Type": "application/json",
|
|
3687
|
+
"x-api-key": apiKey
|
|
3688
|
+
}
|
|
3689
|
+
});
|
|
3690
|
+
} catch {
|
|
3691
|
+
}
|
|
3670
3692
|
log3(" Done! Restart your AI clients to apply.");
|
|
3671
3693
|
log3("");
|
|
3672
3694
|
}
|