Add MCP server for AI agents

Expose webshare_search, webshare_get_link, and webshare_login_check over
stdio via the Model Context Protocol SDK. Document client configuration.
This commit is contained in:
2026-08-07 08:50:10 +02:00
parent c2b5563c25
commit f7f1481a39
7 changed files with 929 additions and 20 deletions

View File

@@ -1,20 +1,26 @@
{
"name": "webshare-api",
"version": "1.0.0",
"description": "Webshare.cz HTTP API: Torznab indexer + fake qBittorrent client + stream redirect for Sonarr/Radarr",
"description": "Webshare.cz HTTP API: Torznab indexer, fake qBittorrent client, and MCP server for AI agents",
"main": "src/index.js",
"bin": {
"webshare-mcp": "src/mcp.js"
},
"scripts": {
"start": "node src/index.js",
"mcp": "node src/mcp.js",
"test": "jest --coverage --runInBand"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.30.0",
"axios": "^1.7.0",
"express": "^4.19.0",
"multer": "^1.4.5-lts.1",
"xml2js": "^0.6.0"
"xml2js": "^0.6.0",
"zod": "^4.4.3"
},
"devDependencies": {
"jest": "^30.4.2",