How to Resolve MCP Integration Issue with OpenAI Using Curl/Postman?

This topic was automatically generated from Slack. You can find the original thread here.

Hi team! :wave:

I’m having trouble testing the MCP integration with OpenAI using curl/Postman and need some guidance.

Issue: When following the MCP documentation for OpenAI integration, I’m getting this error from OpenAI’s API:



text
{
    "error": {
        "message": "Missing required parameter: 'tools[0].function'.",
        "type": "invalid_request_error", 
        "param": "tools[0].function",
        "code": "missing_required_parameter"
    }
}

What I’m trying: Using the exact curl example from your docs (Using Pipedream MCP with OpenAI — Pipedream) with the MCP tool format:



json
"tools": [
  {
    "type": "mcp",
    "server_label": "Notion", 
    "server_url": "https://remote.mcp.pipedream.net",
    "headers": { ... },
    "require_approval": "never"
  }
]
  1. Does the standard OpenAI API actually support "type": "mcp" tools, or is this only available in OpenAI’s playground?
  2. Should I be using a different endpoint or API version for MCP integration?
  3. Is there a working curl/Postman example that actually works with the current OpenAI or other LLM APIs?
    My setup: All environment variables are properly configured (ACCESS_TOKEN, PIPEDREAM_PROJECT_ID, etc.) and I can successfully authenticate with both Pipedream and OpenAI APIs individually.

Any clarification on the correct way to test Pipedream MCP tools with OpenAI or Gemini APIs would be super helpful! :pray:

Interesting, I see that too, but the code example appears to match OpenAI’s docs: https://platform.openai.com/docs/guides/tools-remote-mcp?lang=curl

Can you try the JS?

Ah this was a bug in the docs, sorry about that! We were referencing their completions API:

https://api.openai.com/v1/chat/completions

But it should be their responses API:

https://api.openai.com/v1/responses

And an array of messages is replaced with just input instead.

I fixed this in our docs and tested it end to end on my side, confirmed it works: Using Pipedream MCP with OpenAI — Pipedream

Thank you for flagging!

Thanks worked