You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Security
Before you upgrade: if you mount a cookies file (COOKIES_FILE_PATH), make sure that uid 1000 can read it. For example, give it mode 0644, or make uid 1000 its owner. If uid 1000 cannot read the file, for example a file with mode 0600 that belongs to root on a Linux host, every tool call fails with an internal error, and the log shows EACCES for the cookies file. The same applies to any other file or directory that you mount into the container. The home directory is now /home/node, not /root, so move a mount under /root, such as a cache at /root/.cache, to /home/node.
Both images now run the server, yt-dlp and ffmpeg as the user node (uid 1000), not as root (#131). yt-dlp and ffmpeg read pages and media from the internet. Before this, a bug in one of them ran as root in the container, and an escape from the container was easier. The private copy of the cookies file still has mode 0600, and now node owns it.
Before you upgrade: if your proxy or gateway forwards the Origin header of a browser client to /mcp, set MCP_ALLOWED_ORIGINS. Otherwise those requests get HTTP 403.
Before you upgrade: if an old configuration still sets MCP_ALLOWED_ORIGINS, make sure that the value is correct, or remove it. Before 1.0.0, the server read a variable with this name for the legacy SSE endpoint, but it never enforced the list. The value now applies to /mcp and replaces the loopback default.
The MCP HTTP server refuses a request to /mcp from a web origin that the operator did not allow (#82). An origin is the scheme, host and port of a web page. A POST, GET or DELETE request with an Origin header that is not allowed gets HTTP 403 and a JSON-RPC error with code -32000, and no tool runs. The MCP spec requires this rule against DNS rebinding, in which a hostile web page points its own domain name at your server. On 2026-10-07, a local 1.5.21 build answered such a request with HTTP 200 and the tool list.
A request without Origin works as before, and most MCP clients run outside a browser and send none. /health, /metrics, stdio and the REST API do not change.
A refused request writes one warning with the hostname of the origin, and sends nothing to Sentry.
The new variable MCP_ALLOWED_ORIGINS lists the allowed origins, comma separated, such as https://app.example.com. If it is not set, only loopback origins pass: localhost, 127.0.0.1 and [::1], on any port, over http or https. A value replaces this default, and * turns the rule off.
The server writes one warning at start for each entry of MCP_ALLOWED_ORIGINS that is not an http or https origin, such as null, a value in quotes or an origin with a path, and drops that entry. If no entry is left, the server refuses every Origin. The server does not fail to start for a bad value.
MCP_ALLOWED_ORIGINS only stops the 403. The server answers no CORS preflight. So a browser page on another origin that calls /mcp directly also needs CORS handling in front of the server.
The MCP SDK is now 1.32.2, up from 1.30.0 (#130). The MCP HTTP server now refuses a JSON-RPC batch of more than 100 messages with HTTP 400 and code -32600. Before this, a batch had no length limit, so one long batch was able to block the server for all other callers (GHSA-f897-62hf-6gxq). The initialize and tools/list answers do not change.
The SDK fix for GHSA-46jr-4wx8-v453 is an option, maxToolInputElements, and this server does not set it. No tool input has an array or a record, and the server refuses a body over 1 MiB. In a test on 2026-11-27, a 1 MiB tool call used at most 37 MB of heap for 86 ms, with or without the option.
Other production dependencies are now on fixed versions too: zod 4.6.7, fastify 5.12.8, @sentry/node 10.78.0, and the packages under them and under the SDK. One of them is a new major version: @hono/node-server 2.1.11, the adapter between Node and the SDK for each MCP HTTP request. On 2026-11-26, npm audit --omit=dev reported 30 vulnerable packages (1 critical, 12 high, 17 moderate), and now it reports 4 (1 high, 3 moderate). The 4 are @fastify/swagger-ui 5.2.5, which serves the /docs page of the REST API, and packages under it. Their advisories need a route guard, an allowedPath filter, a glob walk that an AbortSignal stops, or a glob pattern from a caller. This server has none of these.
@fastify/multipart and the package under it, @fastify/busboy, are no longer in the images (#136). No code used them. On 2026-11-26, npm audit --omit=dev listed two high advisories for @fastify/busboy, and the update above already fixed them.
The release build now uses fixed versions of the tools that it downloads (#135). Before this, two builds of the same tag were able to get different code. The workflows name each GitHub Action by a full commit SHA, not by a tag that its owner can move. The images get Deno 2.9.8 from a fixed image, not from an install script with no version. The job that publishes to the MCP Registry runs mcp-publisher 1.8.21, and only after it checks the SHA-256 sum. Dependabot opens PRs for new actions and base images, and a weekly workflow opens an issue for a new mcp-publisher. yt-dlp still gets the newest version in each build, on purpose. The images no longer have unzip, because only the old Deno install script used it.
The MCP SDK 2.4.0 (#83) carries its own copy of fast-uri 3.1.8 inside its files, for its Ajv validator. fast-uri 3.1.8 has four advisories from 2026-10-23, and 3.1.9 fixes them. This server never calls that copy: the SDK builds Ajv only to check the answer to an elicitation, and this server sends no elicitation. On 2026-11-28, a test run counted 0 calls into the copy for every kind of request. npm audit does not see the copy. The next SDK release, 2.5.0, builds it with fast-uri 3.1.9.
Added
The new tool open_subtitle_file shows a local .srt or .vtt file in the ChatGPT desktop app as timed, searchable cues (#76). When a user opens such a file, ChatGPT calls the tool, and the new widget reads the file from ChatGPT. The file does not go to the server, and the call makes no request to a platform. The model cannot call the tool (visibility: ["app"]), and the log line of the call holds neither the file name nor its URI. The ChatGPT web and mobile apps do not open files in apps. A file without cues that the widget can read shows a text that says what to check, and so does a file that is not UTF-8. In mcp_tool_calls_total and in the log line, the calls of this tool have sourcemodel, because ChatGPT makes them without the mark of a widget call.
The widgets now read WebVTT times without hours, such as 01:02.500. Before this, they dropped such cues.
WHISPER_MAX_CONCURRENCY (default 2) limits how many speech-to-text jobs run at once (#132). A call that needs a new job above the limit gets HTTP 503 "server busy" at once. A call for the same video, language and format still joins the running job. Before this, the number of jobs had no limit, each job held its whole audio file in memory, and in API mode each job cost money. 0 sets no limit.
The MCP HTTP server now serves the MCP protocol version 2026-07-28 next to the 2025 versions, on the same POST /mcp (#85). Before this, it answered a 2026-07-28 request with HTTP 400 and code -32000. Clients that speak both versions, such as Claude Code and the SDK 2.x clients in auto mode, then fell back to initialize, and a client that speaks only 2026-07-28 failed. Now such a client gets server/discover and each answer of the new version, with resultType and the cache hints of the SDK (ttlMs: 0, cacheScope: "private"). A client that starts with initialize gets the same answers as before. There is one exception: a server fault now carries the id of the request, not id: null. The REST API does not change.
The stdio server (npm run start:mcp) now serves MCP 2026-07-28 too (#86). A client that sends server/discover gets 2026-07-28. A client that starts with initialize gets the same answers as before. The "MCP tool call" line of a stdio call also has the era field.
The first stdio answer no longer waits for the request to GitHub that looks up the newest yt-dlp release. Before this, the server sent no answer until that request ended, which took up to 10 s. Clients that speak both versions wait about 3 s (Claude Code) to 60 s (TypeScript SDK 2.x) for an answer to server/discover, and then fall back to initialize. Now only the local yt-dlp version check runs before the first answer, so a missing yt-dlp still stops the server with exit code 1 before it writes anything. The GitHub request runs after the server starts, and it stops when the client closes the connection. The warning about an old yt-dlp does not change.
A 2026-07-28 answer is an SSE stream with a comment every 15 s, as a 2025 answer is. A proxy with an idle timeout therefore keeps a long tool call open.
The "MCP tool call" log line has a new field, era: modern for a 2026-07-28 call and legacy for a 2025 call. The share of legacy calls tells when the 2025 versions can go. The other fields, the metrics and the Sentry log "MCP tool call" do not change.
A request that the server refuses with a 4xx answer of the MCP protocol, such as a missing Mcp-Method header or an unsupported version, writes one warn line with the HTTP status, the JSON-RPC code, the JSON-RPC method and the MCP-Protocol-Version header. It sends nothing to Sentry. A server fault writes an error line and goes to Sentry.
TRUST_PROXY names the proxies that the REST API trusts for X-Forwarded-For (#133). The value is a comma-separated list of addresses and CIDRs, or true. The REST API does not start with a number of hops or with a value it cannot read: fastify 5.12 trusts no proxy for a number of hops. Then RATE_LIMIT_MAX counts each client address. Before this, behind a reverse proxy, all callers shared the one bucket of the proxy address. If TRUST_PROXY is not set, the REST API ignores X-Forwarded-For, as before. Use the addresses of your proxies. With true, the first address in X-Forwarded-For counts. Most proxies add to the header that the caller sent, so a caller could then send any address and get a new bucket for each one.
Changed
The Sentry log "MCP tool call" now holds two more attributes (#189). vid is the video key of the stdout line: 12 hex characters of a one-way hash of the YouTube video id, or of the address for a call without a video id, such as a playlist or a video on another platform. A call without a valid address has no vid. explicit is true when the call passed type or lang. With them, Sentry shows the calls of one user on one video. The log still holds no address and no video id. Anyone with access to Sentry who knows a video can compute its key and check whether a user called it.
get_playlist_transcripts now asks for at most 10 videos when maxItems is not given, and it refuses a maxItems above 20 with an input error (#132). Before this, a call without maxItems asked for a caption track for each video of the playlist until the 90-second limit. Each track request uses the caption quota of the server's IP address, and a limit there stops captions for every caller. A client that needs more than 20 videos makes several calls with playlistItems.
The REST API sends no CORS headers when CORS_ALLOWED_ORIGINS is not set (#133). Before this, it allowed every origin. Any web page that a user opened could then call a REST API that the browser could reach, such as http://localhost:3000, and read the answer. With COOKIES_FILE_PATH set, the answer could hold videos that only the account of the operator can see. If a browser app of another origin calls your REST API, set CORS_ALLOWED_ORIGINS to its origin before you upgrade. The MCP HTTP server still sends no CORS headers.
yt-dlp now loads only the extractors of the 11 supported platforms (ADR 009). A post on a supported site that points to a video on another site, such as Imgur or Streamable, now fails as unavailable.
Links on fb.watch, fb.com and v.redd.it, and the share links facebook.com/share/… and reddit.com/r/<sub>/s/…, are no longer accepted. The caller gets the invalid-URL text, which asks for the full page link. In yt-dlp, only the generic extractor opens these links. If CANARY_URL is such a link, set it to a full link before the upgrade, or every probe fails.
YT_DLP_EXTRA_ARGS can no longer change the extractor list. The server adds --use-extractors after it.
"No suitable extractor" from yt-dlp now gets the class unavailable. Before this, it got unknown, and the caller heard "retry once".
The MCP server answers some malformed requests in a new way, because of the new SDK, @hono/node-server and fastify:
A tools/call or prompts/get without arguments now gets the same answer as one with empty arguments. The text "Required" is now "Required at url". search_videos now answers "Query is required for search.", and the call counts in the tool metrics and the "MCP tool call" logs.
The empty 202 answer to a notification has no Content-Type header.
A path with a bad percent escape, for example /%zz, now gets the 400 answer of fastify, which is not JSON-RPC, for every method. Before this, only GET and POST got it, and other methods got the JSON-RPC 404.
The REST metrics count GET /docs/ under route="/docs". The route="/docs/" series of http_requests_total stops.
Each widget is about 123 KB larger, 32 KB with gzip, because the widgets bundle zod, and zod 4.6.7 is larger than 4.3.6. The widgets work the same.
In Sentry, the span of an HTTP request gets two new attributes. url.full has the same value as http.url, and url.path is http.target without the query string. The request handler span is now request_handler.fastify (it was request-handler.fastify), and the hook spans name @sentry/instrumentation-fastify. Each Sentry log also gets the SDK attribute sentry.timestamp.sequence. The attributes that the server sets on the "MCP tool call" log do not change. As before, no request header and no IP address goes to Sentry.
The server runs on the MCP SDK 2.x packages, @modelcontextprotocol/server 2.4.0 and @modelcontextprotocol/node 2.1.2, instead of @modelcontextprotocol/sdk 1.32.2 (#83). SDK 1.x will never get MCP 2026-07-28. The widgets use @modelcontextprotocol/ext-apps 2.0.4, up from 1.7.4.
The server still serves only the protocol versions that start with initialize, 2024-10-07 to 2025-11-25. A server/discover request with MCP-Protocol-Version: 2026-07-28 still gets HTTP 400 with -32000, so a client that speaks both versions falls back to initialize.
The SDK 2.x packages have the Apache-2.0 license. @modelcontextprotocol/sdk 1.x has the MIT license.
The images no longer carry Express and about 60 other packages that only SDK 1.x used.
The tool schemas are zod v4 objects instead of zod 3 objects (ADR 010). tools/list changes in three ways, and the output schemas do not change:
The input schemas of the 8 tools no longer have additionalProperties: false. A call with an unknown argument key still runs, and the server drops the key, as before.
response_limit of get_transcript and get_raw_subtitles, maxItems of get_playlist_transcripts and offset of search_videos get maximum: 9007199254740991. This is the largest safe integer in JavaScript, so no value that worked before fails now.
The tools no longer have execution: {"taskSupport":"forbidden"}. MCP 2026-07-28 removed this field.
If you publish this server as a ChatGPT app, OpenAI can hold its tools for review until you approve the 8 changed input schemas.
Some answers that the SDK makes are new:
A tools/call of an unknown tool gets the JSON-RPC error -32602 "Tool not found". Before, it got a tool result with isError and the text "MCP error -32602: Tool not found". MCP 2026-07-28 makes this a protocol error.
A tool call with bad arguments still gets a tool result with isError, but the text has a new form, without the "MCP error -32602: " prefix. For example, "MCP error -32602: Input validation error: Invalid arguments for tool get_transcript: String must contain at least 1 character(s) at url" is now "Input validation error: Invalid arguments for tool get_transcript: url: Too small: expected string to have >=1 characters".
A resources/read of an unknown URI gets -32602 "Resource not found: ", with the URI in data.uri. Before, the text was "MCP error -32602: Resource not found".
A resources/read with a value that is not a URI gets -32602 "Resource URI is invalid". Before, it got -32603 "Invalid URL".
The initialize answer changes in two ways, over HTTP and over stdio (#84):
It says listChanged: false for tools, resources and prompts. Before, it said true, but these lists never change while the server runs. Under MCP 2026-07-28, true lets a client hold a subscriptions/listen stream open with no time limit.
It declares the MCP Apps extension: capabilities.extensions["io.modelcontextprotocol/ui"] is {}.
A read of transcriptor://transcript/{videoId} that fails for a cause that the REST API answers with 400 or 404 now gets -32602, with data.uri (#84). Examples are no tracks, the track list of ADR 006, a removed video and a bad id. Before, it got -32603. The text does not change. A cause that the REST API answers with 5xx, such as a busy server or a bot check, still gets -32603.
Each widget is about 215 KB smaller, 47 KB with gzip, with ext-apps 2.0.4. ext-apps 2.0.4 uses the same version of the protocol between a widget and its host as 1.7.4 (2026-01-26).
Fixed
tools/list now labels all 16 input and output schemas of the 8 tools "$schema": "https://json-schema.org/draft/2020-12/schema" instead of draft-07, over HTTP and over stdio (#80). The MCP SDK adds the draft-07 label and has no option to change it. Some Claude apps refuse each call to a tool with a draft-07 output schema, before the call reaches the server. anthropics/claude-code#88882 names Cowork, desktop chats that are linked to a computer, and Claude Code builds from about 2.1.229 to 2.1.240. Nobody reproduced the failure with this server yet. The schemas use only keywords that mean the same in both versions, so nothing else in tools/list changes, and the REST API does not change.
A client whose validator knows only draft-07 can now fail on the new label: a TypeScript MCP SDK 1.x client that passes its own default Ajv throws in listTools. Since revision 2025-11-25, the MCP spec makes 2020-12 the default version of JSON Schema.
If you publish this server as a ChatGPT app, OpenAI can hold its tools for review until you approve the 16 changed schemas.