Labsco
drakonkat logo

Wizzy TMDB

β˜… 4

from drakonkat

A wrapper for TMDB

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

wizzy-mcp-tmdb

Project Overview and Purpose

The wizzy-mcp-tmdb project is an MCP (Model Context Protocol) server implemented in JavaScript that provides tools to search and retrieve information from The Movie Database (TMDB). It allows AI clients to access movie, TV show, and person data through a standardized protocol.

Key Features

  • Search Movies: Perform multi-search across movies, TV shows, and people using the search_tmdb tool.
  • Get Details: Fetch detailed information for specific items using the get_tmdb_details tool.
  • Trending Content: Retrieve trending content across all media types with the trending_all tool.

MCP Client Integration

Per integrare questo MCP server nel tuo client MCP (come un IDE o un client di chat compatibile), segui questi passi:

  1. Installa il pacchetto npm se necessario:

    npm install -g wizzy-mcp-tmdb
  2. Crea o aggiorna il file mcp.json nel tuo client MCP con la seguente configurazione:

    {
      "mcpServers": {
        "tmdb": {
          "command": "npx",
          "args": ["wizzy-mcp-tmdb"],
          "env": {
            "TMDB_AUTH_TOKEN": "YOUR_TNL_PROXY_BEARER_TOKEN"
          },
          "alwaysAllow": [
            "get_watch_providers",
            "discover_tv",
            "discover_by_provider"
          ]
        }
      }
    }

    Nota: Il TMDB_AUTH_TOKEN puΓ² essere impostato a un valore casuale per ora, poichΓ© le chiamate API TMDB sono gratuite e non richiedono autenticazione obbligatoria.

Testing Strategy

The project uses Jest for comprehensive testing, including:

  • Unit Tests: Validate individual handler functions, input validation, and response formatting (see tests/unit/handlers.test.js).
  • Integration Tests: Test API interactions with mocked responses, error handling, and network failures (see tests/integration/api.test.js).
  • Protocol Tests: Ensure MCP protocol compliance, including tool listing and calling (see tests/protocol/mcp.test.js).

Run the test suite with:

npm test

For watch mode:

npm run test:watch

Project Structure

wizzy-mcp-tmdb/
β”œβ”€β”€ mcp-tmdb-server.js          # Main MCP server implementation
β”œβ”€β”€ package.json                # Project configuration and dependencies
β”œβ”€β”€ MCP_GUIDE.md                # Detailed MCP integration guide
β”œβ”€β”€ babel.config.cjs            # Babel configuration for Jest
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ unit/
β”‚   β”‚   └── handlers.test.js    # Unit tests for handlers
β”‚   β”œβ”€β”€ integration/
β”‚   β”‚   └── api.test.js         # Integration tests for API calls
β”‚   └── protocol/
β”‚       └── mcp.test.js         # MCP protocol compliance tests
└── tests/fixtures/             # Mock data for tests
    β”œβ”€β”€ movieDetails.json
    β”œβ”€β”€ searchMultiResponse.json
    └── trendingAllResponse.json

Contact

For questions or support, please open an issue on GitHub.