feat(mcp): add custom headers functionality to MCP service dialog
Introduce a new feature allowing users to add custom HTTP headers for MCP requests. This includes: - A user interface for adding and managing custom headers within the MCP service dialog. - Localization support for custom headers in English, Korean, Russian, and Chinese. - Updates to the form submission process to include custom headers, ensuring they are serialized correctly. - Removal of warnings for ignored headers, as all headers are now captured in the custom headers editor. This enhancement improves the flexibility and usability of the MCP service configuration.
This commit is contained in:
@@ -4388,6 +4388,13 @@ export default {
|
||||
createFailed: 'Failed to create MCP service',
|
||||
updateFailed: 'Failed to update MCP service'
|
||||
},
|
||||
customHeaders: {
|
||||
label: 'Custom Headers (optional)',
|
||||
desc: 'HTTP headers attached to every MCP request, commonly used for enterprise gateway auth, tracing, etc.',
|
||||
add: 'Add Header',
|
||||
keyPlaceholder: 'Header name',
|
||||
valuePlaceholder: 'Header value'
|
||||
},
|
||||
codeImport: {
|
||||
toggle: 'Import from code',
|
||||
hint: 'Paste a standard mcpServers JSON config to auto-fill the form',
|
||||
@@ -4404,8 +4411,7 @@ export default {
|
||||
},
|
||||
toasts: {
|
||||
filled: 'Form filled, please review and save',
|
||||
multipleServers: 'Multiple services detected, imported the first one: {name}',
|
||||
ignoredHeaders: 'The following headers were not imported: {headers}'
|
||||
multipleServers: 'Multiple services detected, imported the first one: {name}'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user