crukx-mcp 0.1.13 → 0.1.15
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/cli.js +21 -3
- package/dist/server.js +3 -3
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -59,7 +59,7 @@ import { fileURLToPath } from "url";
|
|
|
59
59
|
import { join as join2, dirname as pathDirname } from "path";
|
|
60
60
|
var __dirname = pathDirname(fileURLToPath(import.meta.url));
|
|
61
61
|
var program = new Command();
|
|
62
|
-
program.name("crukx").description("Crukx CLI \u2014 reliability control plane for autonomous software engineering").version("0.1.
|
|
62
|
+
program.name("crukx").description("Crukx CLI \u2014 reliability control plane for autonomous software engineering").version("0.1.15");
|
|
63
63
|
program.command("login").description("Authenticate with Crukx via browser").option("--api-url <url>", "Crukx gateway URL", getConfig().CRUKX_API_URL).action(async (opts) => {
|
|
64
64
|
process.stderr.write("Opening browser to complete login\u2026\n");
|
|
65
65
|
let startData;
|
|
@@ -221,9 +221,22 @@ program.command("install").description("Auto-install Crukx into all detected MCP
|
|
|
221
221
|
// ── OpenAI Codex CLI ─────────────────────────────────────────────
|
|
222
222
|
{
|
|
223
223
|
name: "OpenAI Codex CLI",
|
|
224
|
-
configPath: join2(home, ".codex", "config.
|
|
224
|
+
configPath: join2(home, ".codex", "config.toml"),
|
|
225
225
|
detect: () => existsSync3(join2(home, ".codex")) || existsSync3(join2(home, ".config", "codex")),
|
|
226
|
-
inject:
|
|
226
|
+
inject: (raw) => {
|
|
227
|
+
const existing = raw ?? "";
|
|
228
|
+
if (existing.includes("[mcp_servers.crukx]")) return existing;
|
|
229
|
+
const section = [
|
|
230
|
+
"",
|
|
231
|
+
"[mcp_servers.crukx]",
|
|
232
|
+
`command = "crukx"`,
|
|
233
|
+
`args = ["mcp"]`,
|
|
234
|
+
`startup_timeout_sec = 30`,
|
|
235
|
+
`tool_timeout_sec = 120`,
|
|
236
|
+
`enabled = true`
|
|
237
|
+
].join("\n");
|
|
238
|
+
return existing + section + "\n";
|
|
239
|
+
}
|
|
227
240
|
},
|
|
228
241
|
// ── Windsurf (Codeium) ───────────────────────────────────────────
|
|
229
242
|
{
|
|
@@ -301,6 +314,11 @@ program.command("install").description("Auto-install Crukx into all detected MCP
|
|
|
301
314
|
continue;
|
|
302
315
|
}
|
|
303
316
|
} catch {
|
|
317
|
+
if (raw?.includes("[mcp_servers.crukx]") || raw?.includes('"crukx"')) {
|
|
318
|
+
process.stdout.write(` \u2705 ${client.name} \u2014 already configured
|
|
319
|
+
`);
|
|
320
|
+
continue;
|
|
321
|
+
}
|
|
304
322
|
}
|
|
305
323
|
const newContent = client.inject(raw);
|
|
306
324
|
if (opts.dryRun) {
|
package/dist/server.js
CHANGED
|
@@ -426,7 +426,7 @@ The code looks clean \u2014 no specific remediation needed.`;
|
|
|
426
426
|
"API key for your LLM provider. If omitted, uses the Crukx gateway key."
|
|
427
427
|
),
|
|
428
428
|
model: z2.string().optional().describe(
|
|
429
|
-
'Model to use for generating fixes. Examples: "
|
|
429
|
+
'Model to use for generating fixes. Examples: "nvidia/nemotron-nano-9b-v2:free", "gpt-4o-mini", "llama3.2". Defaults to "nvidia/nemotron-nano-9b-v2:free".'
|
|
430
430
|
),
|
|
431
431
|
max_iterations: z2.number().int().min(1).max(3).optional().describe(
|
|
432
432
|
"How many heal\u2192re-audit cycles to run (1\u20133). Default: 1. Use 2\u20133 for stubborn issues."
|
|
@@ -438,7 +438,7 @@ The code looks clean \u2014 no specific remediation needed.`;
|
|
|
438
438
|
const cfg = (await import("./config-ARICF5OA.js")).getConfig();
|
|
439
439
|
const apiBase = (provider_url ?? "https://openrouter.ai/api/v1").replace(/\/$/, "");
|
|
440
440
|
const apiKey = provider_key ?? auth?.access_token ?? cfg.CRUKX_ACCESS_TOKEN ?? "";
|
|
441
|
-
const llmModel = model ?? "
|
|
441
|
+
const llmModel = model ?? "nvidia/nemotron-nano-9b-v2:free";
|
|
442
442
|
const iterations = max_iterations ?? 1;
|
|
443
443
|
const initialAudit = await swarmAudit({ diff: code });
|
|
444
444
|
const initialScore = initialAudit.summary.reliabilityScore;
|
|
@@ -587,7 +587,7 @@ Run \`crukx login\` to re-authenticate.`
|
|
|
587
587
|
// src/server.ts
|
|
588
588
|
var server = new McpServer({
|
|
589
589
|
name: "crukx",
|
|
590
|
-
version: "0.1.
|
|
590
|
+
version: "0.1.15"
|
|
591
591
|
}, {
|
|
592
592
|
instructions: `You have access to Crukx \u2014 a 7-agent AI reliability engine for code quality, security, and correctness.
|
|
593
593
|
|