Nomad changes
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s

This commit is contained in:
Henrik Jess Nielsen
2026-06-01 23:40:55 +02:00
parent 72b1a0a6ed
commit b4c07d3693
5723 changed files with 1130655 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<!-- snippet:syntax-only -->
```csharp title="C#"
using System.Diagnostics;
using System.Text.Json;
var processInfo = new ProcessStartInfo
{
FileName = "kreuzberg",
Arguments = "mcp",
UseShellExecute = false,
RedirectStandardInput = true,
RedirectStandardOutput = true,
RedirectStandardError = true,
};
using var process = Process.Start(processInfo)
?? throw new InvalidOperationException("Failed to start kreuzberg mcp");
var request = new
{
method = "tools/call",
@params = new
{
name = "extract_file",
arguments = new { path = "document.pdf" },
},
};
await process.StandardInput.WriteLineAsync(JsonSerializer.Serialize(request));
await process.StandardInput.FlushAsync();
var line = await process.StandardOutput.ReadLineAsync();
Console.WriteLine(line);
process.StandardInput.Close();
await process.WaitForExitAsync();
```