508 B
508 B
# The kreuzberg R bindings do not embed an MCP server: MCP is provided by the
# kreuzberg CLI (Rust binary). Spawn it from the same R session that uses the
# kreuzberg package for in-process extraction.
status <- system2("kreuzberg", args = "mcp", stdout = "", stderr = "")
if (status != 0L) {
stop(sprintf("MCP server exited with status %d", status))
}