This commit is contained in:
11
docs/snippets/r/mcp/mcp_server_start.md
Normal file
11
docs/snippets/r/mcp/mcp_server_start.md
Normal file
@@ -0,0 +1,11 @@
|
||||
```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.
|
||||
Reference in New Issue
Block a user