mcp-server-typescript icon indicating copy to clipboard operation
mcp-server-typescript copied to clipboard

Connecting MCP with OpenAI /responses

Open sk0le opened this issue 1 year ago • 5 comments

Hi, I have encountered an issue. I'm trying to integrate DFS MCP with OpenAI /responses API. https://platform.openai.com/docs/mcp#test-and-connect-your-mcp-server -- here is the information that I have found. I have added my own MCP that I have hosted (mcp.XXX.com/http).

The response looks as following.

MCP server '{NAME}' must contain 'search' and 'fetch' tools.

I have 60 tools in total, some custom made. There is no "search" nor "fetch" tools. What do I do?

sk0le avatar Aug 07 '25 20:08 sk0le

Hello, thank you for your message. Could you share more details about how you are trying to connect our mcp server to the openai api? The link you provided describes how to create an MCP server with two tools: fetch and search (which is probably why you got this error), and then add it to the OpenAPI API, but our MCP server does not have these tools.

lVics avatar Aug 08 '25 15:08 lVics

But that's the catch, I have removed those allowed tools, which, as far as I understand, allows for every tool. And I still get that error. It's like OpenAI expects those tools, but I can't find documentation on that. I have cloned this repo, added few tools, built it, and then I run it. I don't understand where is the issue.

sk0le avatar Aug 11 '25 17:08 sk0le

@lVics Could you please look into the issue?

wisdomseo avatar Aug 11 '25 19:08 wisdomseo

I skipped the part about creating and deploying the mcp server from the tutorial (since we have our own official remote mcp server — mcp.dataforseo.com) and started with connecting the remote mcp server to openai API. Here are the steps that I did (follwing the tutorial):

  1. connect (by using basic auth) Image

  2. approve Image

  3. test Image

There are no problems connecting our remote mcp server to the openai API, so your problem was probably how you configured or deployed the our mcp server on your host.

lVics avatar Aug 19 '25 06:08 lVics

The issue was in the connection with MCP. Thanks for the updates. It was on my behalf. Thank you again.

sk0le avatar Aug 20 '25 10:08 sk0le