When using the go-sdk to communicate with an MCP server that requires authentication, there is currently no documented or supported way to pass custom HTTP headers (e.g., Authorization, x-api-key, etc.) during the connection or request initialization.
When using the
go-sdkto communicate with an MCP server that requires authentication, there is currently no documented or supported way to pass custom HTTP headers (e.g.,Authorization,x-api-key, etc.) during the connection or request initialization.