Connect ChatGPT and OpenAI

ChatGPT and the OpenAI API both speak Model Context Protocol, so the MCP endpoint that works with Claude works here too: through the OpenAI Responses API when you build your own agent, or through a ChatGPT custom connector.

The Responses API accepts either address: https://mcp.foxnose.net/_mcp, which needs only your key, or your environment's own /{api_prefix}/_mcp; see Single Endpoint. A ChatGPT connector sends no key, so it uses the environment's own address. The examples below use that form.

The Responses API sends any header you set, so it reaches private and public Flux APIs. A ChatGPT connector reaches public Flux APIs.


Prerequisites

Before you start:

  1. A Flux API with at least one connected collection. See Expose Content via Flux API.
  2. Your environment key (e.g., 7c9h4pwu) and API prefix (e.g., blog).
  3. A Flux API key pair (access_key + secret_key) if is_auth_required: true. Public APIs work without keys. See Manage Roles and API Keys.
  4. For the API path: an OpenAI API key with access to the Responses API.
  5. For the ChatGPT path: a ChatGPT plan and workspace that allow custom MCP servers.

If you haven't verified the endpoint yet, run the curl initialize + tools/list check from Connect Claude → Verify the endpoint first. The wire protocol is the same — once it works for curl, it works for any MCP client.


OpenAI Responses API

If you're building your own assistant or agent on top of OpenAI's API, the Responses API accepts MCP servers as a tool source via tools: [{type: "mcp", ...}]. It sends custom headers, so FoxNose's Simple static-key header (Authorization: Simple <public_key>:<private_key>) works on public and private APIs. Use a dedicated Flux key scoped to only the APIs this agent needs. FoxNose's Secure signature scheme is meant for server-side and SDK code that can sign each request — see Flux API Authentication.

from openai import OpenAI

client = OpenAI()  # OPENAI_API_KEY in env

response = client.responses.create(
    model="gpt-5",
    input="Find the three most-read articles about retrieval-augmented generation.",
    tools=[
        {
            "type": "mcp",
            "server_label": "foxnose-blog",
            "server_url": "https://7c9h4pwu.fxns.io/blog/_mcp",
            # Drop `headers` entirely for public APIs (is_auth_required=false).
            "headers": {
                "Authorization": "Simple <public_key>:<private_key>",
            },
            # Optional: pre-approve specific tools to skip per-call confirmation prompts.
            "require_approval": "never",
        }
    ],
)

print(response.output_text)

The model calls the FoxNose tools that the key allows inside that single Responses call; the Responses API runs the MCP session and returns the results to the model.


ChatGPT custom connectors

ChatGPT can add a custom MCP server; where the option sits depends on your plan and workspace. A connector authenticates with OAuth or not at all, and the Flux API authenticates with a key, so a connector reaches a public Flux API (is_auth_required: false). For a private API, use the Responses API.

To add a public Flux API:

  1. In ChatGPT, add a custom MCP server.
  2. Enter the MCP server URL: https://7c9h4pwu.fxns.io/blog/_mcp
  3. Choose no authentication.
  4. Save it and turn it on for a conversation.

The five read tools appear, plus get_upload_status where the API has a files collection; see Files tools for when it is offered.


Verifying it works

After connecting, a quick smoke test:

  • Responses API: the response's output array includes one or more mcp_call items showing which tools the model invoked and what they returned. Inspect these to confirm the right tools fired.
  • ChatGPT UI: ask the model "what tools do you have from the foxnose-blog connector?" — it should list the FoxNose read tools. Then ask a content-grounded question and verify it cites results from your collections.

If the tool list doesn't show up, the most common causes are: wrong URL prefix (double-check /{api_prefix}/_mcp), mcp_enabled: false on the API row, or an auth mismatch (wrong key or signature). The MCP Server reference lists the exact error envelopes the endpoint returns.


Hiding the agent surface

To hide the MCP endpoint of one Flux API while its REST routes keep working, turn off mcp_enabled. See Agent visibility per API.


What's next?

Explore the MCP server protocol details — session lifecycle, tool result envelope, error codes, and rate limits.

Build a deeper integration — wire FoxNose into a custom RAG pipeline using the SDK rather than tools.

Was this page helpful?