### Development setup commands Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Development setup: clone the repository, checkout the vision branch, create a Python 3.12 virtual environment, install with dev extras, and run tests. ```bash git clone https://github.com/0xchamin/mcptube.git cd mcptube git checkout vision python3.12 -m venv venv source venv/bin/activate pip install -e ".[dev]" pytest ``` -------------------------------- ### Verify mcptube installation Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Verifies the mcptube installation by displaying the help information. ```bash mcptube --help ``` -------------------------------- ### Quick Start Commands Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Quick start commands for adding videos, browsing the wiki, searching, asking questions, and viewing the table of contents. Always wrap multi-word arguments in double quotes. ```bash mcptube add "https://www.youtube.com/watch?v=dQw4w9WgXcQ" ``` ```bash mcptube add "https://www.youtube.com/watch?v=abc123" --text-only ``` ```bash mcptube wiki list mcptube wiki show "video-dQw4w9WgXcQ" ``` ```bash mcptube search "main topic" ``` ```bash mcptube ask "What are the key ideas discussed?" ``` ```bash mcptube wiki toc ``` -------------------------------- ### Install mcptube with pipx Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Installs mcptube using pipx with Python 3.12. This is the recommended installation method. ```bash pipx install mcptube --python python3.12 ``` -------------------------------- ### Install mcptube with pip in a virtual environment Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Alternative installation using a virtual environment and pip. Requires Python 3.12 or 3.13. ```bash python3.12 -m venv venv source venv/bin/activate pip install mcptube ``` -------------------------------- ### Configure Windsurf MCP client for mcptube Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Configure the Windsurf MCP client to connect to a locally running mcptube server via Streamable HTTP, then start the server. Edit the ~/.codeium/windsurf/mcp_config.json file. ```json { "mcpServers": { "mcptube": { "serverUrl": "http://127.0.0.1:9093/mcp" } } } ``` ```bash mcptube serve ``` -------------------------------- ### Configure Cursor MCP client for mcptube Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Configure the Cursor MCP client to connect to a locally running mcptube server via Streamable HTTP, then start the server. Edit the global ~/.cursor/mcp.json or project-scoped .cursor/mcp.json file. ```json { "mcpServers": { "mcptube": { "url": "http://127.0.0.1:9093/mcp" } } } ``` ```bash mcptube serve ``` -------------------------------- ### Configure Gemini CLI MCP client for mcptube Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Configure the Gemini CLI MCP client to connect to a locally running mcptube server via Streamable HTTP, then start the server. Edit the ~/.gemini/settings.json file. ```json { "mcpServers": { "mcptube": { "httpUrl": "http://127.0.0.1:9093/mcp" } } } ``` ```bash mcptube serve ``` -------------------------------- ### Configure OpenAI Codex MCP client for mcptube Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Configure the OpenAI Codex MCP client to connect to a locally running mcptube server via Streamable HTTP, then start the server. Edit the ~/.codex/config.toml file. ```toml [mcp_servers.mcptube] url = "http://127.0.0.1:9093/mcp" ``` ```bash mcptube serve ``` -------------------------------- ### Configure VS Code MCP client for mcptube Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Configure the VS Code MCP client to connect to a locally running mcptube server via Streamable HTTP, then start the server in a terminal. Open Cmd+Shift+P and choose MCP: Open User Configuration to edit the settings file. ```json { "servers": { "mcptube": { "url": "http://127.0.0.1:9093/mcp" } } } ``` ```bash mcptube serve ``` -------------------------------- ### Configure Claude Desktop for mcptube via pipx Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Configure Claude Desktop to spawn mcptube as a child process via stdio when installed with pipx. Edit the claude_desktop_config.json file at the macOS or Windows path shown in the documentation. ```json { "mcpServers": { "mcptube": { "command": "mcptube", "args": ["serve", "--stdio"] } } } ``` -------------------------------- ### Server Commands Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Server commands: start MCP server over HTTP (default 127.0.0.1:9093), stdio mode for Claude Desktop, custom host/port, and hot-reload for development. ```bash mcptube serve ``` ```bash mcptube serve --stdio ``` ```bash mcptube serve --host --port ``` ```bash mcptube serve --reload ``` -------------------------------- ### Add mcptube MCP server to Claude Code Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Register the mcptube MCP server with Claude Code over HTTP, then start the server in a separate terminal. The server must be running locally for the connection to work. ```bash claude mcp add mcptube --transport http http://127.0.0.1:9093/mcp ``` ```bash mcptube serve ``` -------------------------------- ### Configure Claude Desktop for mcptube in a virtual environment Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Configure Claude Desktop to spawn mcptube from a virtual environment using the full path to the binary. Edit the claude_desktop_config.json file at the macOS or Windows path shown in the documentation. ```json { "mcpServers": { "mcptube": { "command": "/full/path/to/.venv/bin/mcptube", "args": ["serve", "--stdio"] } } } ``` -------------------------------- ### Library Management Commands Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Library management commands: add videos (full or text-only), list all videos, show details, and remove videos. The can be a video index number, video ID, or partial title. ```bash mcptube add "https://youtu.be/dQw4w9WgXcQ" ``` ```bash mcptube add "https://youtu.be/abc" --text-only ``` ```bash mcptube list ``` ```bash mcptube info 1 ``` ```bash mcptube remove 1 ``` -------------------------------- ### Search and Ask Commands Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Search and ask commands: full-text search returns a page list, and agentic Q&A over the wiki requires BYOK. ```bash mcptube search "transformers" ``` ```bash mcptube ask "What is self-attention?" ``` -------------------------------- ### mcptube retrieval flow sequence diagram Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Mermaid sequence diagram illustrating the two-stage retrieval flow of mcptube. The first stage uses FTS5 keyword search with sanitized queries to rank candidate pages locally without LLM tokens. The second stage loads candidate pages and the wiki TOC for the agent, which either synthesizes an answer with citations (CLI mode) or returns raw candidates and TOC to the client (MCP passthrough mode). ```mermaid sequenceDiagram participant User participant CLI participant FTS5 participant FileRepo participant Agent User->>CLI: mcptube ask "What is RLHF?" CLI->>FTS5: keyword search (sanitized query) FTS5-->>CLI: candidate page slugs (ranked) CLI->>FileRepo: load candidate pages (JSON) FileRepo-->>CLI: wiki pages (entities, topics, concepts) CLI->>FileRepo: load wiki TOC FileRepo-->>CLI: table of contents (all page titles + types) CLI->>Agent: candidates + TOC + question Agent-->>CLI: reasoned answer with source citations CLI-->>User: answer + (source-slug) citations ``` -------------------------------- ### Data directory layout Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Default data directory layout under ~/.mcptube, showing SQLite databases, wiki JSON pages, and extracted frames. ```text ~/.mcptube/ ├── mcptube.db # Video metadata (SQLite) ├── wiki.db # FTS5 search index (SQLite) ├── wiki/ │ ├── video/ # Video pages (JSON) │ ├── entity/ # Entity pages (JSON) │ ├── topic/ # Topic pages (JSON) │ ├── concept/ # Concept pages (JSON) │ └── _history/ # Version history └── frames/ ├── _.jpg # Single extracted frames └── _scenes/ # Scene-change frames + metadata ``` -------------------------------- ### Wiki Knowledge Base Commands Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Wiki knowledge base commands: browse, filter by type or tag, show pages, search, view table of contents, history, and export pages as markdown or HTML. ```bash mcptube wiki list ``` ```bash mcptube wiki list --type concept ``` ```bash mcptube wiki list --tag AI ``` ```bash mcptube wiki show "entity-openai" ``` ```bash mcptube wiki search "attention" ``` ```bash mcptube wiki toc ``` ```bash mcptube wiki history "topic-ml" ``` ```bash mcptube wiki export -o wiki_export/ ``` ```bash mcptube wiki export --format html -o wiki.html ``` ```bash mcptube wiki export --page "entity-openai" -o openai.md ``` -------------------------------- ### Set BYOK API keys for LLM features Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Set one or more API keys to enable LLM features. Auto-detection priority is Anthropic → OpenAI → Google. ```bash export ANTHROPIC_API_KEY="sk-ant-..." export OPENAI_API_KEY="sk-..." export GOOGLE_API_KEY="AI..." ``` -------------------------------- ### Analysis and Report Commands Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Analysis and report commands (BYOK): classify, generate reports, cross-video reports, theme synthesis, and YouTube discovery without ingest. ```bash mcptube classify 1 ``` ```bash mcptube report 1 ``` ```bash mcptube report 1 --focus "RLHF" ``` ```bash mcptube report 1 --format html -o report.html ``` ```bash mcptube report-query "scaling laws" ``` ```bash mcptube report-query "AI" --tag research ``` ```bash mcptube report-query "AI" --format html -o report.html ``` ```bash mcptube synthesize-cmd "RLHF" -v id1 -v id2 ``` ```bash mcptube synthesize-cmd "AI" -v id1 --format html -o out.html ``` ```bash mcptube discover "prompt engineering" ``` -------------------------------- ### Tailwind CSS configuration for MCPTube Source: https://github.com/0xchamin/mcptube/blob/vision/docs/index.html Defines the Tailwind CSS theme with the Inter font and a custom brand color palette. The brand colors include shades from 50 to 700, with primary blue tones. ```JavaScript tailwind.config = { theme: { extend: { fontFamily: { sans: ['Inter', 'sans-serif'] }, colors: { brand: { 50: '#eff6ff', 100: '#dbeafe', 500: '#3b82f6', 600: '#2563eb', 700: '#1d4ed8' } } } } } ``` -------------------------------- ### Custom CSS for smooth scrolling and gradient text Source: https://github.com/0xchamin/mcptube/blob/vision/docs/index.html Adds smooth scrolling behavior and a gradient text effect using a linear gradient from blue to purple. The gradient text is applied via the .gradient-text class. ```CSS html { scroll-behavior: smooth; } .gradient-text { background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } ``` -------------------------------- ### Frame Extraction Commands Source: https://github.com/0xchamin/mcptube/blob/vision/README.md Frame extraction commands: extract a frame at an exact timestamp (seconds) or by transcript match. ```bash mcptube frame 1 30.5 ``` ```bash mcptube frame-query 1 "when they show the diagram" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.