From 42a3e1e255e9a52a753fb8522f60398c4e727c2a Mon Sep 17 00:00:00 2001 From: logikonline Date: Sat, 4 Apr 2026 18:57:03 -0400 Subject: [PATCH] feat(mcp): add Icon, Options, and OptionsFrom to manifest models Add Icon property to McpManifestServer. Add Options and OptionsFrom properties to McpManifestConfig for static and dynamic value lists. Add McpManifestOptionsFrom class with File and Path properties for JSONPath-based option resolution --- Models/McpManifest.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Models/McpManifest.cs b/Models/McpManifest.cs index 5fc5c1f..648cf97 100644 --- a/Models/McpManifest.cs +++ b/Models/McpManifest.cs @@ -98,6 +98,9 @@ public sealed class McpManifestServer [JsonPropertyName("license")] public string? License { get; set; } + [JsonPropertyName("icon")] + public string? Icon { get; set; } + [JsonPropertyName("keywords")] public List? Keywords { get; set; } } @@ -151,6 +154,26 @@ public sealed class McpManifestConfig [JsonPropertyName("prompt")] public string? Prompt { get; set; } + + [JsonPropertyName("options")] + public List? Options { get; set; } + + [JsonPropertyName("options_from")] + public McpManifestOptionsFrom? OptionsFrom { get; set; } +} + +/// +/// Dynamically resolve available config values from a local file. +/// +public class McpManifestOptionsFrom +{ + /// Path to a local JSON file. ~ is expanded to the user's home directory. + [JsonPropertyName("file")] + public string File { get; set; } = ""; + + /// JSONPath expression to extract values from the file. + [JsonPropertyName("path")] + public string Path { get; set; } = ""; } ///