@negotium/mcp-host
v0.1.7
Published
MCP server process manager — port allocation, transports, health checks, idle eviction, per-node MCP manifest
Downloads
517
Readme
@negotium/mcp-host
Process manager for MCP servers hosted by a Negotium node. It owns the MCP manifest, transport selection, loopback port allocation, health checks, idle eviction, and coordinated shutdown.
bun add @negotium/mcp-hostimport { McpHost, McpManifest } from "@negotium/mcp-host";
const manifest = new McpManifest();
manifest.add({
key: "example",
transport: "stdio",
command: "bunx",
args: ["example-mcp-server"],
scope: "node",
});
const host = new McpHost({ manifest });
await host.ensure("example");
await host.stopAll();Most applications should install @negotium/node, which wires this package to the runtime.
Requires Bun 1.2.15 or newer.
