Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
fix(mcp): default AISOC_URL to the API on :8000, not ingest on :8081 (#1266)
antigravitysoham-engbaab239d8880
diff --git a/services/mcp/README.md b/services/mcp/README.mdindex 105554a96..7769aa309 100644--- a/services/mcp/README.md+++ b/services/mcp/README.md@@ -128,7 +128,7 @@ Every flag has an environment-variable equivalent. The CLI flag wins when both a| Flag | Env var | Default | Notes ||---|---|---|---|-| `--aisoc-url` | `AISOC_URL` | `http://localhost:8081` | Base URL of the AiSOC API. |+| `--aisoc-url` | `AISOC_URL` | `http://localhost:8000` | Base URL of the AiSOC API. || `--api-key` | `AISOC_API_KEY` | _(none)_ | API key (`aisoc_pat_…`) or JWT. Required for non-public endpoints. || `--timeout` | `AISOC_TIMEOUT_MS` | `20000` | Per-request timeout in ms. || `--verbose` | `AISOC_MCP_VERBOSE=1` | off | Lifecycle logs to stderr. Stdout stays JSON-RPC clean. |diff --git a/services/mcp/src/config.ts b/services/mcp/src/config.tsindex 662433704..c718bba2b 100644--- a/services/mcp/src/config.ts+++ b/services/mcp/src/config.ts@@ -21,7 +21,9 @@*/import { readFileSync } from "node:fs";-const DEFAULT_AISOC_URL = "http://localhost:8081";+// The API, which docker-compose.yml publishes on 8000. 8081 is the ingest+// worker, which answers every tool call with "404 page not found".+const DEFAULT_AISOC_URL = "http://localhost:8000";const DEFAULT_TIMEOUT_MS = 20_000;export interface ServerConfig {diff --git a/services/mcp/src/index.ts b/services/mcp/src/index.tsindex 5c633630c..987642d4a 100644--- a/services/mcp/src/index.ts+++ b/services/mcp/src/index.ts@@ -110,7 +110,7 @@ async function cmdInstall(args: ParsedArgs): Promise<void> {" --host continue Continue.dev"," --host cody Sourcegraph Cody (prints snippet)","",- " --aisoc-url <url> AiSOC API base URL (default http://localhost:8081)",+ " --aisoc-url <url> AiSOC API base URL (default http://localhost:8000)"," --api-key <token> API key to embed (or set AISOC_API_KEY)"," --launcher <auto|node|npx> How the host should start the server. Default auto:"," `node <abs path>` from a monorepo build, `npx` from",@@ -200,7 +200,7 @@ function printHelp(): void {"","Common options:"," --aisoc-url <url> Base URL of the AiSOC API. Env: AISOC_URL.",- " Default: http://localhost:8081",+ " Default: http://localhost:8000"," --api-key <token> API key (aisoc_… or JWT). Env: AISOC_API_KEY."," --timeout <ms> Per-request timeout. Env: AISOC_TIMEOUT_MS. Default 20000."," --verbose Log lifecycle events to stderr.",diff --git a/services/mcp/tests/config.test.ts b/services/mcp/tests/config.test.tsindex fafbadaeb..41ab5a569 100644--- a/services/mcp/tests/config.test.ts+++ b/services/mcp/tests/config.test.ts@@ -91,7 +91,7 @@ describe("resolveConfig", () => {it("falls back to the default URL when nothing is set", () => {const cfg = resolveConfig(parseArgs([]), baseEnv);- expect(cfg.aisocUrl).toBe("http://localhost:8081");+ expect(cfg.aisocUrl).toBe("http://localhost:8000");expect(cfg.apiKey).toBeUndefined();expect(cfg.timeoutMs).toBe(20_000);expect(cfg.verbose).toBe(false);