agy-video-reader
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGY_VIDEO_DEFAULT_MODE | No | Overrides the default video reading mode. Possible values: auto / video / frames_and_text. Useful for coexistence of multiple hosts on the same machine. | |
| AGY_VIDEO_INLINE_STORYBOARD | No | Set to 1 / true to return storyboard.jpg directly via MCP ImageContent in frames_and_text mode. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools for inspecting web video links, downloading lightweight MP4 videos or keyframes+subtitles, fetching hot comments and Bilibili danmaku summaries, managing local cache, and adjusting duration/resolution/size settings. Never attempt to bypass paywalls or CAPTCHAs.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| open_settingsB | Open the interactive settings panel (Antigravity / DSH MCP Apps) and return current settings. Note: Keeping an optional parameter avoids empty-object tool schemas that some DSH/Gemini API gateways reject with 400 errors. Args: include_cache_stats: Include local cache directory usage stats (default True). |
| update_settingsB | Update and persist agy-video-reader settings (takes effect immediately). Args: max_duration_seconds: Max allowed video/slice duration in seconds (30..1800, default 300). max_height: Max video height in pixels (360, 480, 720, or 1080; default 480). max_size_mb: Max MP4 file size in MB before ffmpeg compression (5..100, default 25). default_mode: Default fetch mode: 'auto', 'video', or 'frames_and_text'. keyframe_count: Number of keyframes extracted in frames_and_text mode (4..20, default 8). default_comment_limit: Default number of hot comments to fetch (5..50, default 30). cache_max_entries: Max LRU cache entries (2..100, default 12). cache_max_mb: Max LRU cache size in MB (50..2048, default 300). cache_max_age_hours: Max LRU cache retention in hours (1..168, default 24). reset: If True, resets all settings back to defaults. |
| inspect_video_linkA | Quickly inspect a web video link (Bilibili, YouTube, etc.) without downloading media. Returns title, uploader, duration, description, available subtitles, whether it exceeds the configured duration threshold, and recommended next steps. |
| fetch_commentsB | Fetch top-liked hot comments and (for Bilibili) high-energy danmaku summary. Supports optional cookies.txt in the plugin root directory. Always degrades gracefully on anti-bot/login limits without crashing or attempting to bypass CAPTCHAs. |
| fetch_video_bundleA | Download a lightweight video bundle (<=max_height, <=max_size_mb MP4) or keyframes + storyboard + subtitles, along with hot comments / danmaku summary. Args: url: Web video URL (e.g., Bilibili, YouTube). mode: 'auto' (uses AGY_VIDEO_DEFAULT_MODE env var or configured default_mode), 'video' (lightweight MP4 for video-capable agents like Antigravity via read_file), or 'frames_and_text' (evenly spaced JPEG keyframes + single timestamped storyboard + subtitles, ideal for DSH / DeepSeek Harness and other non-video agents). start_time: Optional slice start time (seconds or MM:SS / HH:MM:SS). Required when video duration exceeds max_duration_seconds. end_time: Optional slice end time (seconds or MM:SS / HH:MM:SS). Single slice must be <= max_duration_seconds. inline_storyboard: When True (or AGY_VIDEO_INLINE_STORYBOARD=1) in frames_and_text mode, returns the timestamped storyboard JPEG inline as MCP ImageContent. |
| cleanup_cacheA | Clean up downloaded video/keyframe cache files. Args: max_age_hours: If omitted, clears the entire cache directory. If provided, only removes entries older than max_age_hours. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| AGY Video Reader Settings | Interactive MCP App panel for tuning video duration, resolution, size, and cache. |
TDQS
Scored across 6 tools
The three operational tools are clearly tiered: inspect_video_link is metadata-only, fetch_video_bundle downloads media, and fetch_comments fetches only comments. The one soft overlap is that fetch_comments largely duplicates functionality already bundled inside fetch_video_bundle, so an agent may wonder when the standalone call is warranted (though 'lighter weight' is implied).
All six tools use a consistent snake_case verb_noun pattern (cleanup_cache, open_settings, update_settings, inspect_video_link, fetch_comments, fetch_video_bundle). The verb choice is also semantically meaningful: inspect vs fetch vs update vs cleanup signal cost/side-effects clearly.
Six tools is well-scoped for a video reading/config server, with each tool earning its place: three config/cache admin tools and three content tools. No redundant or vestigial tools inflate the surface.
The lifecycle is covered end to end: inspect → fetch bundle → fetch comments, plus settings read/update/reset and cache cleanup. Minor gaps exist, such as no subtitles/transcript-only retrieval (cheap text extraction without keyframes) and no way to grab a single keyframe at an arbitrary timestamp, but agents can work around these via the bundle modes.