nexarch 0.9.24 → 0.9.26
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/commands/setup.js +7 -2
- package/dist/lib/clients.js +2 -2
- package/package.json +1 -1
package/dist/commands/setup.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { requireCredentials } from "../lib/credentials.js";
|
|
1
|
+
import { requireCredentials, loadCredentials } from "../lib/credentials.js";
|
|
2
2
|
import { detectClientsFromRegistry, writeClientConfig, nexarchServerBlockFromRegistry } from "../lib/clients.js";
|
|
3
3
|
import { fetchAgentRegistryOrThrow } from "../lib/agent-registry.js";
|
|
4
4
|
import { initAgent } from "./init-agent.js";
|
|
5
5
|
import { login } from "./login.js";
|
|
6
|
+
const MCP_HTTP_URL = "https://mcp.nexarch.ai/mcp";
|
|
6
7
|
export async function setup(args) {
|
|
7
8
|
try {
|
|
8
9
|
requireCredentials();
|
|
@@ -43,8 +44,12 @@ export async function setup(args) {
|
|
|
43
44
|
console.log(" nexarch mcp-config --client http");
|
|
44
45
|
}
|
|
45
46
|
else {
|
|
46
|
-
const
|
|
47
|
+
const creds = loadCredentials();
|
|
48
|
+
const stdioBlock = nexarchServerBlockFromRegistry(registry);
|
|
47
49
|
for (const client of clients) {
|
|
50
|
+
const serverBlock = process.platform === "win32" && client.code === "claude-code" && creds
|
|
51
|
+
? { type: "http", url: MCP_HTTP_URL, headers: { Authorization: `Bearer ${creds.token}` } }
|
|
52
|
+
: stdioBlock;
|
|
48
53
|
process.stdout.write(` ${client.name.padEnd(20)} ${client.configPath}\n`);
|
|
49
54
|
process.stdout.write(` ${"".padEnd(20)} `);
|
|
50
55
|
try {
|
package/dist/lib/clients.js
CHANGED
|
@@ -108,8 +108,8 @@ export function nexarchServerBlockFromRegistry(registry) {
|
|
|
108
108
|
}
|
|
109
109
|
if (process.platform === "win32") {
|
|
110
110
|
return {
|
|
111
|
-
command:
|
|
112
|
-
args:
|
|
111
|
+
command: `${first.serverCommand}.cmd`,
|
|
112
|
+
args: first.serverArgs,
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
return {
|