Files
fil/docs/snippets/csharp/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

21 lines
467 B
Markdown

<!-- snippet:syntax-only -->
```csharp title="C#"
using System.Diagnostics;
var processInfo = new ProcessStartInfo
{
FileName = "kreuzberg",
Arguments = "mcp",
UseShellExecute = false,
RedirectStandardInput = true,
RedirectStandardOutput = true,
RedirectStandardError = true,
};
using var server = Process.Start(processInfo)
?? throw new InvalidOperationException("Failed to start kreuzberg mcp");
await server.WaitForExitAsync();
```