nexarch 0.9.25 → 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.
@@ -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 serverBlock = nexarchServerBlockFromRegistry(registry);
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexarch",
3
- "version": "0.9.25",
3
+ "version": "0.9.26",
4
4
  "description": "Your architecture workspace for AI delivery.",
5
5
  "keywords": [
6
6
  "nexarch",