Description
Unable to save custom headers configured through the admin panel for MCP connections.
The admin panel generates the following structure:
type: streamable-http
url: https://example.com/api/mcp
headers:
- key: Authorization
value: Bearer {{API_KEY}}
valueType: string
However, the configuration is not accepted/saved correctly.
Expected behavior
Custom headers added in the admin panel should be serialized into valid YAML and correctly loaded by the backend.
Expected result:
- headers are persisted
- MCP connection works with Authorization header
- generated YAML matches the expected schema
Actual behavior
Headers cannot be saved or are ignored after saving.
Possible issue:
headers may be serialized in an invalid YAML format
- backend may expect an object instead of an array
valueType may not be supported by the parser/schema
Steps to reproduce
-
Open admin panel
-
Create/edit MCP configuration
-
Add custom header:
- key:
Authorization
- value:
Bearer {{API_KEY}}
-
Save configuration
-
Observe that headers are not persisted or configuration becomes invalid
Generated config
type: streamable-http
url: https://example.com/api/mcp
headers:
- key: Authorization
value: Bearer {{API_KEY}}
valueType: string
Questions
- What is the expected YAML schema for
headers?
- Should
headers be an object instead?
Example alternative format:
headers:
Authorization: Bearer {{API_KEY}}
Description
Unable to save custom headers configured through the admin panel for MCP connections.
The admin panel generates the following structure:
However, the configuration is not accepted/saved correctly.
Expected behavior
Custom headers added in the admin panel should be serialized into valid YAML and correctly loaded by the backend.
Expected result:
Actual behavior
Headers cannot be saved or are ignored after saving.
Possible issue:
headersmay be serialized in an invalid YAML formatvalueTypemay not be supported by the parser/schemaSteps to reproduce
Open admin panel
Create/edit MCP configuration
Add custom header:
AuthorizationBearer {{API_KEY}}Save configuration
Observe that headers are not persisted or configuration becomes invalid
Generated config
Questions
headers?headersbe an object instead?Example alternative format:
valueTypesupported?