mirror of
https://github.com/dotnet/skills.git
synced 2026-09-20 09:49:54 +08:00
ae812a7e8c
- Make MCPServerDef.Command and Args nullable to match JSON deserialization reality - Add MCPServerDef.Url field for HTTP/SSE/streamable-http transport types - Null-guard IsAllowedMcpCommand to prevent NullReferenceException - Null-guard SanitizeMcpArgs for defense-in-depth This ensures the validator doesn't crash when plugins declare non-stdio MCP servers (e.g., type: 'http' or type: 'local') which have no Command field. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>