Unlike Claude, Cursor, and Gemini — which all communicate with apex-mcp over stdio — the OpenAI Agents SDK requires an HTTP-based transport. apex-mcp supports this natively via itsDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/TechFernandesLTDA/apex-mcp/llms.txt
Use this file to discover all available pages before exploring further.
streamable-http mode: you start the server as a local HTTP endpoint and then connect to it from Python using MCPServerStreamableHttp. This approach gives OpenAI models access to all 116 Oracle APEX tools for automated, code-driven workflows.
The OpenAI Agents SDK does not support stdio transport. You must start apex-mcp with
--transport streamable-http before connecting from Python code.Setup with the OpenAI Agents SDK
Start apex-mcp in HTTP mode
Export your Oracle and APEX credentials as environment variables, then launch apex-mcp with the The server binds to
streamable-http transport:http://127.0.0.1:8000/mcp. Leave this terminal running while your Python script executes.You can verify the server is up with a quick curl:Multi-step build example
For more complex workflows, useRunner incrementally across multiple prompts. Each call continues in the same agent context with the MCP connection held open:
ChatGPT Desktop (stdio)
ChatGPT Desktop (macOS/Windows) added MCP support in late 2024 using stdio — no HTTP server required. The configuration format is similar to Claude Desktop.ChatGPT Desktop MCP support is still evolving. Check the OpenAI documentation for the latest status and config schema.
| OS | Config path |
|---|---|
| macOS | ~/Library/Application Support/ChatGPT/mcp_config.json |
| Windows | %APPDATA%\ChatGPT\mcp_config.json |
Known limitations
| Limitation | Details |
|---|---|
| HTTP required | The OpenAI Agents SDK does not support stdio; always use --transport streamable-http |
| Single import session | Only one active app creation sequence per server process; run separate instances on different ports for parallel workflows |
| No streaming tool output | Results are returned as complete JSON; very large outputs (e.g. full app exports) may be truncated by the SDK |
| No auth layer | The HTTP server has no built-in authentication — keep it bound to 127.0.0.1 for local use |
Troubleshooting
| Problem | Solution |
|---|---|
ConnectionRefusedError | Start apex-mcp --transport streamable-http before running your Python script |
404 Not Found on / | The default path is /mcp; use http://127.0.0.1:8000/mcp |
| Tool list is empty | The HTTP handshake may have failed; check the server terminal for error output |
ORA- errors in tool response | Oracle database errors — verify credentials and wallet path |
| Agent gets confused between tools | Provide explicit step-by-step instructions and remind the agent to call apex_connect first |
