Skip to content

Fix empty transcript/scrape results in ChatGPT (v1.3.6) - #34

Merged
rafalzawadzki merged 1 commit into
mainfrom
fix/chatgpt-content-key
Oct 16, 2026
Merged

rafalzawadzki merged 1 commit into
mainfrom
fix/chatgpt-content-key

Conversation

@rafalzawadzki

Copy link
Copy Markdown
Contributor

Problem

In ChatGPT, supadata_transcript, supadata_check_transcript_status and supadata_scrape come back to the model as {}, with no error. supadata_metadata works. The server sends a correct text result (checked with a direct call to the hosted endpoint using ChatGPT's headers). The one thing the failing results share, and metadata lacks, is a top-level content key, which ChatGPT appears to read as an MCP tool result's own content and drop.

Change

For the ChatGPT client only, renameContentKey renames that key before the result is serialized:

  • supadata_transcript, supadata_check_transcript_status: content → transcript
  • supadata_scrape: content → markdown

Every other client keeps the same shape as the REST API. Results without content (job ids, in-progress statuses) and other tools are untouched.

Testing

  • npm test (105 passing), lint, tsc --noEmit
  • After deploy: rerun the transcript and scrape calls in ChatGPT and confirm the API logs show supadata-mcp/1.3.6 (ChatGPT; hosted)

🤖 Generated with Claude Code

ChatGPT gives the model {} for a JSON tool result with a top-level
`content` key, so transcripts and scraped pages never reached it while
metadata did. For ChatGPT only, rename that key to `transcript`
(supadata_transcript, supadata_check_transcript_status) or `markdown`
(supadata_scrape). Other clients keep the REST API's shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
supadata-mcp d410d7e Oct 16 2026, 08:33 PM

@rafalzawadzki
rafalzawadzki merged commit 5cf8bab into main Oct 16, 2026
2 checks passed
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.

1 participant