Connect OpenAI's Responses API to 2,500+ apps via Mushroom MCP
#
Overview
Mushroom is viaSocket's MCP server platform. Connect OpenAI's Responses API to your Mushroom MCP server to call your connected apps programmatically from anywhere.
#
Get an OpenAI API Key
First, make sure that you have a valid OpenAI API key.
To view or generate a new OpenAI API key, go to the OpenAI platform API Keys page.
Export your API key as an environment variable:
bash
export OPENAI_API_KEY="sk-..."#
MCP Server Information
Copy your MCP Endpoint URL directly from your Mushroom cluster dashboard and use it in the code example below.
⚠️
Caution:Treat your MCP Endpoint URL like a password! It can be used to run tools attached to this server and access your data.
#
Using OpenAI's Responses API
OpenAI's Responses API can be used to call Mushroom MCP from anywhere.
#
Code Example
curl --location 'https://api.openai.com/v1/responses' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $OPENAI_API_KEY" \
--data '{
"model": "gpt-4.1",
"tools": [
{
"type": "mcp",
"server_label": "mushroom",
"server_url": "https://mcp.viasocket.com/mcp/your-unique-id",
"require_approval": "never"
}
],
"input": "List all of my available tools",
"tool_choice": "required"
}'Was this helpful?