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