The Nexum SDK compiles sources into a typed graph draft and exposes it to agents through native MCP servers.
import { Nexum } from "@x12i/nexum";
const nexum = new Nexum({ apiKey: process.env.NEXUM_API_KEY });
const draft = await nexum.compile({
sources: [
{ type: "openapi", path: "./specs/billing.yaml" },
{ type: "markdown", path: "./docs/**/*.md" },
{ type: "repo", url: "github.com/acme/core-service" }
]
});
console.log(draft.nodes.length, "nodes compiled");
console.log(draft.applyPlan.creates, "pending creates");
const path = await nexum.traverse({
from: "customer:8841",
relation: "OWNS -> FILED",
});
// path.confidence === "exact"
// path.sourceHashes -> full provenance chain
Nexum ships a native MCP server so any orchestration framework can query the graph without a custom connector.
{
"mcpServers": {
"nexum": {
"command": "npx",
"args": ["@x12i/nexum-mcp"],
"env": { "NEXUM_API_KEY": "..." }
}
}
}
A strictly typed, reviewable output — never applied automatically.
The explicit set of creates, merges, and conflicts pending approval.
Native compatibility with multi-agent orchestration frameworks.
Layer LSCP's MCP servers on top for bound extractions and traceable provenance.