Files
fil/docs/snippets/swift/mcp/mcp_server_start.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

435 B

import Foundation

// Start the kreuzberg MCP server as a subprocess.
// The Swift bindings do not expose an in-process MCP server; use the
// kreuzberg CLI binary which provides the MCP transport over stdio.
let process = Process()
process.executableURL = URL(fileURLWithPath: "/usr/bin/env")
process.arguments = ["kreuzberg", "mcp"]

try process.run()
process.waitUntilExit()