This topic was automatically generated from Slack. You can find the original thread here.
Postgres mcp doesn’t work correctly
Even though auth is already provided through connect, it doesn’t get picked up by the mcp and it produces a connect link
Connect link has this format:
app=database isn’t postgresql and the link doesn’t work
const payload = {
model: 'gpt-5-2025-08-07',
tools: [
{
type: 'mcp',
server_label: appSlug,
server_url: `https://remote.mcp.pipedream.net`,
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID,
"x-pd-environment": process.env.PIPEDREAM_ENVIRONMENT,
"x-pd-external-user-id": externalUserId,
"x-pd-app-slug": "postgresql",
},
require_approval: 'never'
}
],
input: 'how many rows are in the products table?'
};
// Make the OpenAI request with the MCP server
const response = await openaiClient.responses.create(payload);
...
"output_text": "To get the row count, I need access to your PostgreSQL connection.\n\nPlease click this link to connect your account (do not modify the URL):\nhttps://pipedream.com/_static/connect.html?token=ctok_xxx&connectLink=true&app=postgresql\n\nOnce connected, reply "Done" and I'll run:\nSELECT COUNT(*) AS row_count FROM products;"