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

@ -87,6 +87,7 @@ export const useCreateMCP = () => {
icon_background?: string | null
timeout?: number
sse_read_timeout?: number
headers?: Record<string, string>
}) => {
return post<ToolWithProvider>('workspaces/current/tool-provider/mcp', {
body: {
@ -113,6 +114,7 @@ export const useUpdateMCP = ({
provider_id: string
timeout?: number
sse_read_timeout?: number
headers?: Record<string, string>
}) => {
return put('workspaces/current/tool-provider/mcp', {
body: {