Added
Transcript.to_srt()andto_vtt()for subtitle export, with UTF-8
dump_srt()/dump_vtt()helpers accepting paths or text streams (#18).- Optional MCP server: install with
ytscrape[mcp]and runytscrape-mcp
(orpython -m ytscrape.mcp_server) to expose search, video/channel
metadata, channel uploads, comments (replies included) and transcripts as
read-only Model Context Protocol tools. stdio by default, plus
--transport streamable-http|ssefor hosted setups;--language,
--regionand--timeoutflags mirror theYouTubefacade.
All tools carry read-only tool annotations (readOnlyHint,openWorldHint,
idempotentHint) so MCP clients can auto-approve them. - MCP server proxy support:
--proxy(both schemes) plus--http-proxy/
--https-proxyfor per-scheme routing; the standardHTTP_PROXY/
HTTPS_PROXY/NO_PROXYenvironment variables are honoured as well. - MCP responses are size-capped (
truncated+hint). List tools and
transcripts returnhas_more/next_cursorinstead of an unbounded dump.
max_resultsis capped at 50.filter,sortanddetail
(concise/full) are enums.get_video/get_channeldefault to a
concise projection. Cursors are depth-capped at 1 000 items (each page
re-reads the listing from the start),list_transcriptsreturns the same
{items, count, has_more, next_cursor, truncated}envelope as the other
list tools, and a transcript snippet cut mid-text says so inhint.