Files
Javier Calvarro Nelson ae812a7e8c Harden MCP server handling: null-guard IsAllowedMcpCommand and add Url field
- 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>
2026-05-22 13:22:44 +02:00
..