| 1 | using System.Text.Json; |
| 2 | using System.Text.Json.Serialization; |
| 3 | |
| 4 | namespace AgentClientProtocol; |
| 5 | |
| 6 | public record ClientCapabilities |
| 7 | { |
| 8 | [JsonPropertyName("_meta")] |
| 9 | public JsonElement? Meta { get; init; } |
| 10 | |
| 11 | [JsonPropertyName("fs")] |
| 12 | public FileSystemCapability Fs { get; init; } = new(); |
| 13 | |
| 14 | [JsonPropertyName("terminal")] |
| 15 | public bool Terminal { get; init; } = false; |
| 16 | } |
| 17 | |
| 18 | public record FileSystemCapability |
| 19 | { |
| 20 | [JsonPropertyName("_meta")] |
| 21 | public JsonElement? Meta { get; init; } |
| 22 | |
| 23 | [JsonPropertyName("readTextFile")] |
| 24 | public bool ReadTextFile { get; init; } = false; |
| 25 | |
| 26 | [JsonPropertyName("writeTextFile")] |
| 27 | public bool WriteTextFile { get; init; } = false; |
| 28 | } |
| 29 | |
View only · write via MCP/CIDE