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

21 lines
467 B
Markdown
Raw Normal View History

2026-06-01 23:40:55 +02:00
<!-- 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();
```