Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Sep 15, 2025

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original description:

Add OpenAI MCP compatibility for ChatGPT Connectors by implementing new /search and /fetch endpoints in the Python backend (likely in src/). These endpoints must:

  • Accept POST requests as per OpenAI MCP documentation
  • Use the existing PostgreSQL querying logic to provide results
  • Return responses in the JSON schema required by OpenAI MCP
  • Be fully backward compatible (do not remove or change existing SSE or legacy endpoints)
  • Share logic with current endpoints where appropriate (e.g., via shared internal functions)

Additionally, update README.md to document:

  • The new /search and /fetch endpoints (including example request/response bodies)
  • How to configure this project as an MCP server for OpenAI/ChatGPT Connectors, including any necessary environment variables or API keys
  • How to test the integration with OpenAI’s Connector UI or API

All new/modified code should follow existing code organization and style. Place new code in src/ or appropriate subdirectories. Do not break existing API or SSE clients. Include a migration notice in the README for users wishing to enable OpenAI MCP compatibility.

This pull request was created as a result of the following prompt from Copilot chat.

Add OpenAI MCP compatibility for ChatGPT Connectors by implementing new /search and /fetch endpoints in the Python backend (likely in src/). These endpoints must:

  • Accept POST requests as per OpenAI MCP documentation
  • Use the existing PostgreSQL querying logic to provide results
  • Return responses in the JSON schema required by OpenAI MCP
  • Be fully backward compatible (do not remove or change existing SSE or legacy endpoints)
  • Share logic with current endpoints where appropriate (e.g., via shared internal functions)

Additionally, update README.md to document:

  • The new /search and /fetch endpoints (including example request/response bodies)
  • How to configure this project as an MCP server for OpenAI/ChatGPT Connectors, including any necessary environment variables or API keys
  • How to test the integration with OpenAI’s Connector UI or API

All new/modified code should follow existing code organization and style. Place new code in src/ or appropriate subdirectories. Do not break existing API or SSE clients. Include a migration notice in the README for users wishing to enable OpenAI MCP compatibility.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants