L4D2 Workshop Mirror MCP
L4D2 Workshop Mirror MCP — an MCP server for discovering, validating, and installing Left 4 Dead 2 workshop campaign maps onto a local server.
Check eligibility (
check_eligibility): zero-network local pre-check of a map (workshop ID or title) against blacklist and dead-map cache before downloading.Get map detail (
get_map_detail): fetch full info for one workshop item, including phase-2 campaign verdict; optionally include a truncated description.Search campaigns (
search_campaigns): search workshop campaigns with multi-factor pre-screening, auto-filtering blacklist/dedup and hiding ambiguous (likely-mod) results unless requested.Discover new maps (
list_new_campaigns): list campaigns added in the last N days, skipping blacklisted and already-installed items.Resolve titles (
resolve_map): turn a Chinese/English map name into ranked workshop candidates without downloading.Find series parts (
find_series_parts): identify all parts of a multi-part campaign via dependencies, author file listings, and naming patterns.Query curated list (
query_curated_list): browse/search the 461-entry echocn human-curated list with 16 Chinese tags and chapter info.Refresh curated cache (
refresh_curated_list): manually re-pull the echocn curated list for verification or troubleshooting.Install a campaign (
install_campaign): one-stop download — resolve, dependency parse, download, write to disk, and update the dedup list; supports force, strict mode, auto series parts, and async mode.Track downloads (
get_download_job): poll status/progress/result of an async install job.Sync idle folder (
sync_idle_folder): scan an idle/maps-played directory and add unlisted VPKs to the dedup list.
Provides tools to search, resolve, and download Left 4 Dead 2 custom campaigns from the Steam Workshop, including dependency resolution, series part detection, and filtering of deleted or private items.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@L4D2 Workshop Mirror MCP 帮我下载地图 Dead Center"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AstrBot L4D2 群服地图下载插件 (astrbot_plugin_l4d2_map)
面向同机部署(AstrBot + L4D2 服务端在同一台机器)的一站式求生之路2创意工坊地图管理插件,支持 /map 确定性指令 与 4 个精简 LLM Tool 双模式运行,并针对低上行带宽机器优化。
同时保留
server.py作为可选 MCP 兼容入口,与 AstrBot 插件共用同一套core/map_service.py。
核心亮点
真异步下载 + 群聊主动推送:预检通过后秒回“开始下载”,后台线程落盘完成后主动推送群聊通知(附带 echocn 章节名 方便直接换图,以及 Steam 工坊订阅链接),彻底告别 LLM 轮询与超时。
小上行带宽友好:默认关闭自动传群文件(
upload_to_chat: false),下完只发工坊链接避免打满上行卡死游戏服;如开启也受upload_max_mb上限保护。双模式交互:
/map指令组:0 Token、秒响应,支持多候选/map pick 序号快捷选择与管理员专属运维命令。4 个精简 LLM Tool:自然语言说“帮我下死亡小镇”“最近有什么高难度新图”“服里有死亡中心吗”即可自动调用。
安全与权限防线:
黑名单最高优先级(永远高于 75 天去重名单,任何参数都不可绕过),支持
filter.json热重载。普通群友受单图体积上限(默认 1500MB)、严格战役校验(拦截 Mod 与
score <= 0物品)及去重限制保护;仅管理员可强下、删图、移入闲置目录、拉黑。依赖解析仅追踪结构化
required_items/children(含 Collection 合集展开),不再把作者简介里的无关 Mod 链接灌进服务器。下载器显式绕过
HTTP_PROXY环境变量直连加速线路,先校验.tmp(VPK 魔数 + header)再原子落盘,带{workshop_id}_前缀防撞名。
Related MCP server: Steam-MCP
安装到 AstrBot(3 步)
将整个项目目录放到 AstrBot 插件目录(例如
AstrBot/data/plugins/astrbot_plugin_l4d2_map/):cp -r . /path/to/AstrBot/data/plugins/astrbot_plugin_l4d2_map重启 AstrBot(会自动根据
requirements.txt安装依赖,也可手动pip install -r requirements.txt)。在 AstrBot WebUI → 插件管理 →
astrbot_plugin_l4d2_map配置项中填写:必填:
workshop_dir(游戏服left4dead2/addons/workshop绝对路径)可选:
idle_dir、filter_json_path(指向已有l4d2_map_filter.json即可无缝沿用)、http_proxy(国内环境用于元数据查询,VPK 下载不走此代理)
/map 指令一览
指令 | 权限 | 用途 |
| 所有人 | 查看帮助 |
| 所有人 | 下载地图(多候选自动暂存 3 分钟) |
| 所有人 | 选择上次搜索/候选中的第 N 个下载 |
| 所有人 | 融合搜索工坊 + 策展名单 |
| 所有人 | 最近 N 天新战役(默认 7 天) |
| 所有人 | 查 echocn 人工策展名单(如 |
| 所有人 | 查详情、评分、可信度、章节与系列 |
| 所有人 | 查服务器已装地图与磁盘剩余空间 |
| 所有人 | 查后台下载队列进度 |
| 管理员 | 强下(绕过去重/Mod 拦截,黑名单不可绕过) |
| 管理员 | 无参同步闲置目录;带参把已装图移入闲置目录并去重 |
| 管理员 | 删除服务器已装地图 |
| 管理员 | 黑名单管理(热生效) |
| 管理员 | 手动刷新 echocn 策展名单缓存 |
注册给 LLM 的 4 个工具
工具名 | 职责 |
| 一站式预检并提交后台异步下载(下完主动推群,无需轮询) |
| 统一找图入口(融合 |
| 单图详情、战役评分、可信度与章节 |
| 只读查询服务器已装地图、磁盘剩余空间与下载队列 |
运行测试
python3 -m unittest discover -s tests -p "test_v4_*.py" -v
# 安装 pytest 后也可运行全量测试:
pytest -qAvailable Tools
11 toolscheck_eligibilityA
检查一张图是否能下载。零网络调用,纯本地查询(filter.json + 死图缓存)。
适用场景:下载前预检、批量过滤。
Inputs: title, workshop_id. Returns: object
find_series_partsA
识别一张图所属的完整系列(所有 Part)。
融合三路信号:①正向依赖(required_items+children+description) ②反向查询作者全部物品(/user-files) ③命名模式识别。
Inputs: workshop_id (required), aggressive. Returns: object
get_download_jobA
查询异步下载任务(install_campaign async_mode=True 时返回的 job_id)进度。
Returns: {job_id, status: "queued"|"running"|"done"|"error", elapsed_s, result: install 结果|null, error: str|null}
Inputs: job_id (required). Returns: object
get_map_detailA
查询单张地图的完整详情,包含 phase2 战役判定结果。
默认不返回 description(省 token),需要时设 include_description=True(截断到 500 字符)。
Inputs: workshop_id (required), include_description. Returns: object
install_campaignA
一站式下载:识别 → 解析依赖 → 下载 → 落盘 → 更新去重名单。
适用:用户给出 workshop_id、steam 链接或具体地图名要下载时。 workshop_id 与 title 至少传一个:
workshop_id 可为纯数字 id、steamcommunity 链接(自动提取 id)
title 为中文/英文标题时走内部解析链(curated 模糊 → 镜像搜索 → phase2 判定), 唯一高可信匹配自动下载,多候选返回 candidates[] 待确认
Inputs: force, title, strict, async_mode, +2 more. Returns: object
list_new_campaignsA
列出最近 N 天新增的战役地图(增量发现)。
自动跳过黑名单和 active 去重,融合 echocn 策展名单。
Inputs: days, limit. Returns: object
query_curated_listA
查询 echocn 人工策展的 461 条高质量战役地图名单。
含 16 种中文标签、章节信息、人工标注。 这是质量最高的数据源,应优先用于判定和推荐。
Inputs: tag, limit, keyword. Returns: object
refresh_curated_listA
手动刷新 echocn 缓存。
MCP 启动时已自动拉取,每日后台也会自动刷新。 此工具用于:①首次部署验证 ②怀疑缓存过期 ③排障。
Returns: {success, total, sha256, cached_at, error?}
Inputs: no named parameters. Returns: object
resolve_mapA
解析地图标题为工坊候选(不下载)。
适用:用户说"XXX 有没有 / XXX 的 id 是什么",或 install_campaign 传标题 前先看看候选。融合 echocn 人工策展名单与镜像站搜索,按 phase2 判定排序。
Inputs: query (required), limit. Returns: object
search_campaignsA
在工坊中搜索战役地图,用 phase2 多因子规则预筛, 自动过滤黑名单和 active 去重。
默认只返回 score≥3 的高可信结果。模棱两可的(score 1-2,可能是 mod) 默认不返回;如需查看,设 include_ambiguous=True。
Inputs: days, sort, limit, keyword, +1 more. Returns: object
sync_idle_folderA
扫描闲置地图目录(已玩过的图),将未在 dedup 名单的 .vpk 加入去重列表。
适用场景:手动整理闲置目录后触发同步;install_campaign 完成后会自动调用一次。 已在 dedup 名单的会跳过,不会重复添加。
Returns: { "synced": int, # 新加入条数 "skipped_duplicates": int, # 已在名单跳过的条数 "scanned_total": int, # 扫描到的 .vpk 总数 "idle_dir": str }
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools target distinct operations: eligibility check, detail lookup, search, resolution, download, job status, etc. Some overlap exists between resolve_map and search_campaigns (both return map candidates), but descriptions clarify their different intents.
All tool names follow a consistent verb_noun snake_case pattern (check_eligibility, refresh_curated_list, get_map_detail, etc.), making the set predictable and easy to navigate.
11 tools is well within the ideal 3-15 range. Each tool serves a clear purpose in the L4D2 workshop mirror workflow, from search and eligibility to installation and cache management, without redundancy.
The domain covers discovery, search, resolution, installation, job tracking, curation, and local folder sync. Minor gaps exist (e.g., no explicit tool to cancel a download or remove from dedup list), but core workflows are fully supported.
Maintenance
Related MCP Connectors
Search and install 4,000+ security-scanned MCP servers from inside any MCP-aware AI client.
MCP registry & directory: search, find & install 31k+ MCP servers & tools. Catalog and marketplace.
Search MCP servers and agent skills, compare them, and get install configs for your client.
Search and get install details on MCP servers, right from your agent -- a unified marketplace index.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables discovery and automatic installation of MCP servers via mcpmarket.com integration. Searches repositories, scrapes GitHub READMEs for configuration details, and provides one-click installation to MCP clients.-
- AlicenseAqualityBmaintenanceMCP server for Valve's Steam that enables querying game libraries, player profiles, achievements, friends, store listings, Workshop items, and current player counts. Provides 14 tools across 5 categories with a React dashboard and REST bridge.143MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that provides tools to search Steam games by keyword, retrieve game details (price, release date, genres), and fetch player reviews with recent ratings.-
- AlicenseAqualityDmaintenanceMCP server enabling AI assistants to search Steam games, retrieve official store metadata, and analyze player review sentiment via public Steam Storefront JSON APIs without an API key.39 npmMIT