kosa8 docs

Commands / kosa8 mcp serve

kosa8 mcp serve

Serve the MCP endpoint over stdio, or HTTP with --http

Every tool call through a gateway server (kosa8 mcp add) is decided by the org MCP policy and recorded in the audit log with a digest of its arguments and of its result. --session and --sandbox attribute those records to an AI session and the sandbox the agent works in, so kosa8 ai bom and kosa8 evidence export can find them.

--http serves the same tools over streamable HTTP. Every request must carry Authorization: Bearer TOKEN: the token is KOSA8_MCP_TOKEN when set, else a random one printed once to stderr. Only loopback addresses are accepted unless --insecure-listen is given.

Agents may share host directories into sandboxes only below an --allow-mount directory, read-only unless it is given as DIR:rw.

Options

FlagTypeWhat it doesDefault
--allow-mountstringArrayhost directory agents may share into sandboxes, DIR (read-only) or DIR:rw (repeatable; default none)[]
--httpstringserve streamable HTTP on this address instead of stdio, e.g. 127.0.0.1:7433 (bearer-token authenticated)—
--insecure-listenboolallow --http on a non-loopback address—
--sandboxstringthe sandbox the agent using this endpoint works in—
--sessionstringAI session id the audit records belong to (default: a new one)—