12 lines
508 B
Markdown
12 lines
508 B
Markdown
|
|
```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.
|