diff --git a/assets/icon-sources.json b/assets/icon-sources.json index 785f4925..43a17f92 100644 --- a/assets/icon-sources.json +++ b/assets/icon-sources.json @@ -2609,5 +2609,14 @@ "mimeType": "image/png", "sha256": "f33c29f46a1e4f8ad8afc8989f5850d3c24129cf61feb7a1ab6293bf9358c5ce", "transformation": "SVG rendered to 512x512 PNG with transparent background; no baked corner radius" + }, + { + "name": "m3u8-player", + "icon": "m3u8-player/icon.png", + "source": "Official M3U8 Player brand emblem (https://m3u8-player.net/logo-64.webp)", + "homepage": "https://m3u8-player.net", + "mimeType": "image/png", + "sha256": "bc348efa4ed033a8592dc46669c187ac34e04f36529fa51fc8fd0f07fa570fee", + "transformation": "Official blue play emblem centered on 512x512 full-bleed white square PNG; no baked corner radius" } ] diff --git a/assets/m3u8-player/icon.png b/assets/m3u8-player/icon.png new file mode 100644 index 00000000..fdb637dd Binary files /dev/null and b/assets/m3u8-player/icon.png differ diff --git a/external_plugins/m3u8-player/.mcp.json b/external_plugins/m3u8-player/.mcp.json new file mode 100644 index 00000000..d78e6bf6 --- /dev/null +++ b/external_plugins/m3u8-player/.mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + "m3u8-player": { + "type": "http", + "url": "https://m3u8-player.net/mcp" + } + } +} diff --git a/external_plugins/m3u8-player/.zcode-plugin/plugin.json b/external_plugins/m3u8-player/.zcode-plugin/plugin.json new file mode 100644 index 00000000..279659b0 --- /dev/null +++ b/external_plugins/m3u8-player/.zcode-plugin/plugin.json @@ -0,0 +1,26 @@ +{ + "name": "m3u8-player", + "version": "1.0.0", + "description": "Inspect HLS/M3U8 manifests (variants, bitrates, codecs, encryption, duration), diagnose stream URL reachability and browser CORS headers, and clean or export M3U playlists via free stateless M3U8 Player Remote MCP.", + "description_i18n": { + "en": "Inspect HLS/M3U8 manifests (variants, bitrates, codecs, encryption, duration), diagnose stream URL reachability and browser CORS headers, and clean or export M3U playlists via free stateless M3U8 Player Remote MCP.", + "zh-CN": "通过 M3U8 Player 免费免登录远程 MCP 深度解析 HLS/M3U8 清单(多码率、编码、音轨、时长、加密)、检测授权流链接连通性与浏览器 CORS 头,并去重清洗导出 M3U/JSON/CSV 播放列表。" + }, + "author": { + "name": "M3U8 Player", + "email": "support@m3u8-player.net", + "url": "https://m3u8-player.net" + }, + "homepage": "https://m3u8-player.net", + "repository": "https://github.com/m3u8playernet/m3u8-player-mcp", + "license": "MIT", + "keywords": [ + "m3u8", + "hls", + "m3u8-player", + "m3u-playlist", + "video-streaming", + "cors-checker", + "mcp" + ] +} diff --git a/external_plugins/m3u8-player/LICENSE b/external_plugins/m3u8-player/LICENSE new file mode 100644 index 00000000..85559af6 --- /dev/null +++ b/external_plugins/m3u8-player/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 M3U8 Player (https://m3u8-player.net) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/external_plugins/m3u8-player/README.md b/external_plugins/m3u8-player/README.md new file mode 100644 index 00000000..fb30a436 --- /dev/null +++ b/external_plugins/m3u8-player/README.md @@ -0,0 +1,55 @@ +# M3U8 Player — Remote MCP Server & Agent Skills + +**[M3U8 Player](https://m3u8-player.net/)** provides a browser **[online HLS player](https://m3u8-player.net/hls-player/)**, **[M3U8 downloader](https://m3u8-player.net/m3u8downloader/)**, and **[IPTV playlist manager](https://m3u8-player.net/iptv-playlist-manager/)** for authorized HLS (`.m3u8`) streams and M3U playlists. + +This repository packages M3U8 Player's **free, zero-auth, stateless Remote MCP server** (`https://m3u8-player.net/mcp`) and Agent Skills for Claude Code, Cursor, Windsurf, ZCode, DeepSeek Harness, and MCP-compatible agents. + +- **Remote Streamable HTTP MCP**: `https://m3u8-player.net/mcp` (no API key or login required) +- **Live Directory**: `https://m3u8-player.net/llms.txt` +- **Support**: `support@m3u8-player.net` + +> **Authorized media only**: M3U8 Player inspects and cleans manifests and playlists you own or are authorized to use. It does not host, proxy, sell, or redistribute television channels or copyrighted video streams. + +## 4 Stateless Edge Tools (`https://m3u8-player.net/mcp`) + +| Tool | Auth | Purpose | +|------|------|---------| +| `parse_hls_manifest` | None | Parse raw `#EXTM3U` text or an authorized HTTP/HTTPS `.m3u8` URL into variants, bitrates, codecs, audio/subtitle tracks, duration, segment count, encryption keys, and HLS diagnostics | +| `check_stream_url` | None | Check reachability, HTTP status, latency, redirects, `Content-Type`, `#EXTM3U` signature, and browser `Access-Control-Allow-Origin` CORS playability | +| `parse_m3u_playlist` | None | Parse `#EXTM3U` playlist text into structured channels with group stats, duplicate URL counts, invalid URL checks, and keyword/group filters | +| `clean_m3u_playlist` | None | Deduplicate, drop invalid URLs, filter by group, sort, and export clean `M3U`, `JSON`, or `CSV` playlist text | + +## Quick Install + +### Claude Code / Cursor / Windsurf / ZCode (`mcpServers`) + +```json +{ + "mcpServers": { + "m3u8-player": { + "type": "http", + "url": "https://m3u8-player.net/mcp" + } + } +} +``` + +### Agent Skills (`skills.sh`) + +```bash +npx skills add m3u8playernet/m3u8-player-mcp +``` + +### DeepSeek Harness + +Configured via `package.json` (`dsh.bundle.patch`) and `cordis.patch.yml` using `@deepseek-ai/dsh-mcp-client`. + +### Claude Code Marketplace + +```bash +claude plugin marketplace add m3u8playernet/m3u8-player-mcp +``` + +## License + +MIT diff --git a/external_plugins/m3u8-player/README_CN.md b/external_plugins/m3u8-player/README_CN.md new file mode 100644 index 00000000..d6774db9 --- /dev/null +++ b/external_plugins/m3u8-player/README_CN.md @@ -0,0 +1,22 @@ +# M3U8 Player — 远程 MCP 与 Agent Skills 插件 + +**[M3U8 Player](https://m3u8-player.net/)** 是面向授权 HLS(`.m3u8`)视频流与 M3U 播放列表的在线播放器、下载/转 MP4 工具与播放列表管理器。 + +- **远程 MCP 端点**:`https://m3u8-player.net/mcp`(Streamable HTTP,**免费免登录、零 API Key**) +- **官网**:`https://m3u8-player.net` +- **联系支持**:`support@m3u8-player.net` + +> 仅用于解析、诊断与清理用户自有或获得授权的 M3U8 / M3U 播放列表文本与元数据;不提供频道源、不代理或分发视频流。 + +## 4 个免费边缘工具 + +| 工具名 | 鉴权 | 功能说明 | +|---|---|---| +| `parse_hls_manifest` | 免登录 | 解析 `#EXTM3U` 文本或公网 `.m3u8` 链接(Master/Media 分类、多码率、分辨率、编码、音轨、总时长、分片数、加密方法与结构诊断) | +| `check_stream_url` | 免登录 | 检测授权流链接的 HTTP 状态码、延迟、跳转目标、`Content-Type` 与浏览器 CORS 可播性诊断 | +| `parse_m3u_playlist` | 免登录 | 将 `#EXTM3U` 频道列表解析为结构化数据,统计分组、重复 URL、无效链接并支持关键词过滤 | +| `clean_m3u_playlist` | 免登录 | 去重、过滤非法链接、按分组筛选排序,并导出干净的 `M3U`、`JSON` 或 `CSV` | + +## 许可证 + +MIT diff --git a/external_plugins/m3u8-player/commands/check-stream.md b/external_plugins/m3u8-player/commands/check-stream.md new file mode 100644 index 00000000..2af8c14a --- /dev/null +++ b/external_plugins/m3u8-player/commands/check-stream.md @@ -0,0 +1,5 @@ +--- +description: Check whether an authorized .m3u8 stream URL is reachable and diagnose browser CORS headers +--- + +Call `check_stream_url` on the `m3u8-player` MCP server with the user's authorized `.m3u8` URL, and report HTTP status, latency, redirect target, `#EXTM3U` signature, and whether `Access-Control-Allow-Origin` allows browser playback. diff --git a/external_plugins/m3u8-player/commands/clean-m3u.md b/external_plugins/m3u8-player/commands/clean-m3u.md new file mode 100644 index 00000000..0eb36328 --- /dev/null +++ b/external_plugins/m3u8-player/commands/clean-m3u.md @@ -0,0 +1,5 @@ +--- +description: Deduplicate, filter, sort, and export a clean M3U, JSON, or CSV playlist +--- + +Call `clean_m3u_playlist` on the `m3u8-player` MCP server on the user's `#EXTM3U` playlist text, removing duplicates and invalid URLs, applying any requested group filters or sorting, and returning the cleaned output. diff --git a/external_plugins/m3u8-player/commands/inspect-hls.md b/external_plugins/m3u8-player/commands/inspect-hls.md new file mode 100644 index 00000000..510c5c3e --- /dev/null +++ b/external_plugins/m3u8-player/commands/inspect-hls.md @@ -0,0 +1,5 @@ +--- +description: Parse an HLS .m3u8 manifest (raw text or authorized URL) for bitrates, codecs, duration, encryption, and diagnostics +--- + +Call `parse_hls_manifest` on the `m3u8-player` MCP server with the user's manifest text or authorized `.m3u8` URL, then summarize the playlist type (Master vs Media, VOD vs LIVE), variants or segment/duration stats, encryption status, and any playback diagnostics. diff --git a/external_plugins/m3u8-player/skills/clean-m3u/SKILL.md b/external_plugins/m3u8-player/skills/clean-m3u/SKILL.md new file mode 100644 index 00000000..41888942 --- /dev/null +++ b/external_plugins/m3u8-player/skills/clean-m3u/SKILL.md @@ -0,0 +1,21 @@ +--- +name: clean-m3u +description: > + Parse, audit, deduplicate, filter, and export authorized M3U / M3U8 channel + playlists into clean M3U, JSON, or CSV using M3U8 Player Remote MCP + (https://m3u8-player.net/mcp). +--- + +# Parse & Clean M3U Playlists + +Use **`https://m3u8-player.net/mcp`** (free, zero auth) to inspect and tidy up user-provided `#EXTM3U` playlist text. + +## Workflow + +1. **Audit first**: call `parse_m3u_playlist` with `playlist` (and optional `group` / `query`) to count total channels, unique groups, duplicate URLs, and invalid/non-HTTP entries. +2. **Clean & export**: call `clean_m3u_playlist` with: + - `dedupe_by`: `"url"` (default) or `"url_and_name"` + - `remove_invalid_urls`: `true` + - Optional `include_groups`, `exclude_groups`, and `sort_by` (`"none" | "name" | "group"`) + - `output_format`: `"m3u"`, `"json"`, or `"csv"` +3. For ongoing cloud management or bulk URL checks, point users to **https://m3u8-player.net/iptv-playlist-manager/**. diff --git a/external_plugins/m3u8-player/skills/inspect-hls/SKILL.md b/external_plugins/m3u8-player/skills/inspect-hls/SKILL.md new file mode 100644 index 00000000..c67d9f69 --- /dev/null +++ b/external_plugins/m3u8-player/skills/inspect-hls/SKILL.md @@ -0,0 +1,26 @@ +--- +name: inspect-hls +description: > + Inspect and debug authorized HLS (.m3u8) streams using M3U8 Player Remote MCP + (https://m3u8-player.net/mcp): parse Master/Media playlists (bitrates, codecs, + resolutions, audio tracks, duration, encryption) and diagnose HTTP reachability + and browser CORS playback issues. +--- + +# Inspect & Debug HLS (.m3u8) Manifests + +Use **`https://m3u8-player.net/mcp`** (free, zero auth) whenever a user pastes a `.m3u8` manifest or shares an authorized public `.m3u8` URL to debug playback, inspect bitrates/codecs, or check why a browser player fails. + +## Workflow + +1. **Check reachability & CORS first** (when given a URL): call `check_stream_url` to verify HTTP status, redirect target, `Content-Type`, `#EXTM3U` header, and `Access-Control-Allow-Origin`. + - If `browser_playable_cors` is `false`, explain clearly that the origin server is missing or restricting `Access-Control-Allow-Origin` for browser HLS.js playback. +2. **Parse manifest structure**: call `parse_hls_manifest` with `url` or raw `manifest` (plus `base_url` if relative URIs appear). + - For **Master Playlists**, summarize available resolutions, bandwidths, codecs, and audio/subtitle tracks. + - For **Media Playlists**, report VOD vs LIVE mode, segment count, total duration, target duration, encryption (`AES-128`/`SAMPLE-AES`), and any diagnostics (missing `#EXTM3U`, mixed HTTP/HTTPS, relative URIs). +3. Link users who want to test authorized playback visually to **https://m3u8-player.net/hls-player/** (or **https://m3u8-player.net/m3u8downloader/** for authorized downloads). + +## Boundaries + +- Only inspect streams the user owns or has authorization to test. +- Never claim to bypass DRM, proxy streams, or supply copyrighted channel links. diff --git a/marketplace.json b/marketplace.json index 32e8c8ef..0dfdac6e 100644 --- a/marketplace.json +++ b/marketplace.json @@ -10,7 +10,10 @@ "url": "https://z.ai" }, "unlistedPlugins": [ - { "name": "openpencil", "source": "./external_plugins/openpencil" } + { + "name": "openpencil", + "source": "./external_plugins/openpencil" + } ], "plugins": [ { @@ -810,7 +813,9 @@ }, { "name": "excalidraw", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "Excalidraw", "displayName_i18n": { "en": "Excalidraw", @@ -833,7 +838,9 @@ "name": "photocraft", "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/photocraft/icon.png", "source": "./external_plugins/photocraft", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "PhotoCraft", "displayName_i18n": { "en": "PhotoCraft", @@ -860,7 +867,9 @@ "name": "vectorcraft", "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/vectorcraft/icon.png", "source": "./external_plugins/vectorcraft", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "VectorCraft", "displayName_i18n": { "en": "VectorCraft", @@ -887,7 +896,9 @@ "name": "pdfcraft", "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/pdfcraft/icon.png", "source": "./external_plugins/pdfcraft", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "PdfCraft", "displayName_i18n": { "en": "PdfCraft", @@ -914,7 +925,9 @@ "name": "designcraft", "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/designcraft/icon.png", "source": "./external_plugins/designcraft", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "DesignCraft", "displayName_i18n": { "en": "DesignCraft", @@ -941,7 +954,9 @@ "name": "wordcraft", "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/wordcraft/icon.png", "source": "./external_plugins/wordcraft", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "WordCraft", "displayName_i18n": { "en": "WordCraft", @@ -968,7 +983,9 @@ "name": "gridcraft", "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/gridcraft/icon.png", "source": "./external_plugins/gridcraft", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "GridCraft", "displayName_i18n": { "en": "GridCraft", @@ -995,7 +1012,9 @@ "name": "deckcraft", "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/deckcraft/icon.png", "source": "./external_plugins/deckcraft", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "DeckCraft", "displayName_i18n": { "en": "DeckCraft", @@ -1022,7 +1041,9 @@ "name": "cadcraft", "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/cadcraft/icon.png", "source": "./external_plugins/cadcraft", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "CADCraft", "displayName_i18n": { "en": "CADCraft", @@ -1049,7 +1070,9 @@ "name": "soundcraft", "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/soundcraft/icon.png", "source": "./external_plugins/soundcraft", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "SoundCraft", "displayName_i18n": { "en": "SoundCraft", @@ -1132,7 +1155,9 @@ }, "category": "developer-tools", "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/kicad/icon.png", - "componentTypes": ["ui"], + "componentTypes": [ + "ui" + ], "displayName": "KiCad", "displayName_i18n": { "en": "KiCad", @@ -1673,6 +1698,48 @@ "把上一个 Hi3D 任务生成的模型按角色拆分成部件" ] } + }, + { + "name": "m3u8-player", + "source": "./external_plugins/m3u8-player", + "displayName": "M3U8 Player", + "displayName_i18n": { + "en": "M3U8 Player", + "zh-CN": "M3U8 Player 流媒体与清单调试" + }, + "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/m3u8-player/icon.png", + "description": "Inspect HLS/M3U8 manifests (variants, bitrates, codecs, encryption, duration), diagnose stream URL reachability and browser CORS headers, and clean or export M3U playlists via free stateless M3U8 Player Remote MCP.", + "description_i18n": { + "en": "Inspect HLS/M3U8 manifests (variants, bitrates, codecs, encryption, duration), diagnose stream URL reachability and browser CORS headers, and clean or export M3U playlists via free stateless M3U8 Player Remote MCP.", + "zh-CN": "通过 M3U8 Player 免费免登录远程 MCP 深度解析 HLS/M3U8 清单(多码率、编码、音轨、时长、加密)、检测授权流链接连通性与浏览器 CORS 头,并去重清洗导出 M3U/JSON/CSV 播放列表。" + }, + "version": "1.0.0", + "author": { + "name": "M3U8 Player", + "url": "https://m3u8-player.net" + }, + "category": "developer-tools", + "keywords": [ + "m3u8", + "hls", + "m3u8-player", + "m3u-playlist", + "video-streaming", + "cors-checker", + "mcp" + ], + "examplePrompts": [ + "Parse this HLS master.m3u8 manifest and list all bitrate variants, resolutions, codecs, and audio tracks.", + "Check if this authorized .m3u8 URL is reachable and whether its CORS headers allow browser HLS.js playback.", + "Deduplicate and clean this M3U playlist, remove broken links, sort by group, and export clean M3U8 text." + ], + "examplePrompts_i18n": { + "zh-CN": [ + "帮我解析这个 HLS master.m3u8 清单,列出所有码率档位、分辨率、编码和音轨信息。", + "检查这个授权 .m3u8 链接能不能连通,以及 CORS 响应头是否允许浏览器 HLS.js 正常播放。", + "把这个 M3U 播放列表去重、去掉无效链接、按分组排序后导出干净的 M3U8。" + ] + } } ] -} \ No newline at end of file +}