Files
fil/docs/snippets/r/mcp/mcp_server_start.md

12 lines
508 B
Markdown
Raw Normal View History

2026-06-01 23:40:55 +02:00
```r title="R"
# 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))
}
```
<!-- snippet:syntax-only --> The R bindings expose extraction primitives only; MCP transport requires the standalone kreuzberg CLI.