mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
50255a9ef9
Exposes the per-key user-set flag on the experimental MCP server config endpoints. CreateMCPServerConfigRequest and UpdateMCPServerConfigRequest gain CustomHeadersUserKeys; MCPServerConfig returns the list so the admin and user settings UIs can render it. Validation: - custom_headers_user_keys is rejected unless auth_type == custom_headers. - Entries must be non-empty after trim, deduped case-insensitively, and disjoint from the admin-set custom_headers map (HTTP header names are case-insensitive per RFC 7230). - custom_headers auth now requires at least one admin header or one user-set key (the honcho.dev use case is only user keys). - Updates that change admin headers re-validate any unchanged user keys against the new admin map. - The auth-type-change switch clears custom_headers_user_keys for any destination other than custom_headers. Also adds codersdk types MCPServerUserHeaderValues and UpdateMCPServerUserHeaderValuesRequest plus three client methods (MCPServerUserHeaderValues, UpdateMCPServerUserHeaderValues, DeleteMCPServerUserHeaderValues) targeting the routes added in the next commit.