Portkey’s AI gateway has MCP server support that many foundational model providers offer.
Example Log for the request on Portkey
Authorization
header. This is what passing this header looks like:
Use Stripe MCP tool
headers
object. These values will also not be visible in the Response object created. Additionally, because some remote MCP servers generate authenticated URLs, we also discard the path portion of the server_url
in our responses (i.e. example.com/mcp
becomes example.com
). Because of this, you must send the full path of the MCP server_url
and any relevant headers
in every Responses API creation request you make.