feat: add MCP server headers support #22718 (#24760)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Novice <novice12185727@gmail.com>
This commit is contained in:
Cluas 2025-09-08 14:10:55 +08:00 • committed by GitHub
commit f891c67eca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 441 additions and 32 deletions

View file

@ -187,12 +187,22 @@ const translation = {
serverIdentifier: 'Server Identifier',
serverIdentifierTip: 'Unique identifier for the MCP server within the workspace. Lowercase letters, numbers, underscores, and hyphens only. Up to 24 characters.',
serverIdentifierPlaceholder: 'Unique identifier, e.g., my-mcp-server',
serverIdentifierWarning: 'The server won’t be recognized by existing apps after an ID change',
serverIdentifierWarning: 'The server won\'t be recognized by existing apps after an ID change',
headers: 'Headers',
headersTip: 'Additional HTTP headers to send with MCP server requests',
headerKey: 'Header Name',
headerValue: 'Header Value',
headerKeyPlaceholder: 'e.g., Authorization',
headerValuePlaceholder: 'e.g., Bearer token123',
addHeader: 'Add Header',
noHeaders: 'No custom headers configured',
maskedHeadersTip: 'Header values are masked for security. Changes will update the actual values.',
cancel: 'Cancel',
save: 'Save',
confirm: 'Add & Authorize',
timeout: 'Timeout',
sseReadTimeout: 'SSE Read Timeout',
timeoutPlaceholder: '30',
},
delete: 'Remove MCP Server',
deleteConfirmTitle: 'Would you like to remove {{mcp}}?',