yt-dlp-mcp/package.json
kevinwatt 0e5a30d10c fix: prevent server hang and output corruption in spawn handling (#23)
- Add process 'error' event handler to catch spawn failures (e.g., yt-dlp not installed)
- Separate stdout/stderr to prevent yt-dlp warnings from corrupting parsed output
- Add try-catch for RegExp construction from YTDLP_SANITIZE_ILLEGAL_CHARS env var
- Add NaN validation for YTDLP_MAX_FILENAME_LENGTH env var
- Sync VERSION constant with package.json (0.8.4)
- Update tests for new output format and null handling
- Add version sync guidance to CLAUDE.md
2026-01-05 01:47:59 +08:00

56 lines
1.4 KiB
JSON

{
"name": "@kevinwatt/yt-dlp-mcp",
"version": "0.8.4",
"description": "An MCP server implementation that integrates with yt-dlp, providing video and audio content download capabilities (e.g. YouTube, Facebook, Tiktok, etc.) for LLMs.",
"keywords": [
"mcp",
"youtube",
"yt-dlp",
"dive",
"llm"
],
"homepage": "https://github.com/kevinwatt/yt-dlp-mcp#readme",
"bugs": {
"url": "https://github.com/kevinwatt/yt-dlp-mcp/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/kevinwatt/yt-dlp-mcp.git"
},
"bin": {
"yt-dlp-mcp": "lib/index.mjs"
},
"files": [
"lib",
"README.md"
],
"main": "./lib/index.mjs",
"scripts": {
"prepare": "tsc --skipLibCheck && chmod +x ./lib/index.mjs",
"test": "PYTHONPATH= PYTHONHOME= node --experimental-vm-modules node_modules/jest/bin/jest.js --detectOpenHandles --forceExit"
},
"author": "Dewei Yen <k@funmula.com>",
"license": "MIT",
"type": "module",
"exports": {
".": {
"import": "./lib/index.mjs"
}
},
"dependencies": {
"@modelcontextprotocol/sdk": "0.7.0",
"rimraf": "^6.0.1",
"spawn-rx": "^4.0.0",
"zod": "^4.1.12"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
"shx": "^0.3.4",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.6.3"
}
}