Cities2 MCP and Modding Toolkit

io.github.mayor-modder由 GitHub 账号 mayor-modder 发布v0.5.0更新于 Nov 1, 2026

Cities: Skylines II wiki, encyclopedia, and mod workflow tools for AI agents.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

本地 MCP 服务器,为助手提供可检索的《城市:天际线 II》维基与研究资料、游戏内百科,以及 CS2 模组项目工作流工具。

可以做什么
  • 检索、阅读并引用内置的《城市:天际线 II》维基语料与精选研究数据集,包括完整页面、页面级引用和模组代码片段
  • 检索并读取本机已安装游戏中的游戏内百科条目
  • 从模板搭建 C# 或 UI 模组项目,列出项目目录树并在配置好的工作区内写入文件
  • 运行静态检查、构建项目并返回规范化诊断信息,将模组产物打包为 zip
  • 报告维基语料、研究数据集和本地百科等来源的可用状态
适用场景
适合让助手带出处地回答《城市:天际线 II》的玩法、补丁说明或模组开发问题,或在本机搭建、检查、构建和打包 CS2 模组项目。
运行要求
以 PyPI 包(cities2-mcp)形式通过 stdio 在本机运行,需要 Python 环境。游戏内百科来源需要本机安装《城市:天际线 II》;可选环境变量 CITIES2_GAME_DIR、CITIES2_LOCALE_COK、CITIES2_MODS_DIR 分别指向游戏目录、Locale.cok 和 Mods 目录。未声明任何认证。
安装前请注意
工作流工具会在配置的工作区内写入文件,build_project 会执行受信任的工作区代码,因此只应指向你信任的仓库。构建与打包会改动本地项目文件。百科索引会从已安装的游戏文件中提取并缓存在本机。项目仍在积极开发中,客户端行为可能因宿主和版本而异;模组在分享前应进行实际试玩。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Cities2 MCP and Modding Toolkit,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Cities2 MCP and Modding Toolkit

Cities2 MCP and Modding Toolkit is a local MCP server and agent skill bundle for Cities: Skylines II gameplay questions, patch notes, and mod project workflows.

It gives AI agents access to a bundled, searchable Cities: Skylines II Wiki corpus, separately attributed curated research reports, and, when the game is installed locally, the in-game encyclopedia. Agents can use those sources to answer gameplay questions, summarize patch/update information, and explain city systems with source notes. The package also includes five agent skills for game knowledge, modding, review, debugging, and release readiness, plus local MCP workflow tools for scaffolding, inspecting, building, and packaging CS2 mod projects inside trusted workspaces.

The plugin is in active development. Package checks, direct MCP smoke tests, and selected client workflows are covered in the repository test suite and eval reports, but client plugin behavior can vary by host and version. See the known issues and eval reports for the latest verification notes.

Quick install

Choose your client: Claude Code | Claude desktop | Codex CLI | Codex app | Google Antigravity

See INSTALL.md for full installation details, direct MCP config, workspace setup, build prerequisites, and troubleshooting.

What it can do

Search game and modding information

The MCP server includes a prepared text corpus from the Cities: Skylines II Wiki. An AI assistant can:

  • search the wiki
  • retrieve full pages, page-level references, and code-oriented snippets for game systems, patch notes, and modding topics
  • answer questions about game mechanics, recent updates, and how city systems affect your save

Search curated research

The MCP server also bundles curated Cities: Skylines II research reports. These reports are historically situated, separately attributed, and generated from committed research notes rather than raw transcripts. Results retain publication and source context so an assistant can distinguish time-bounded findings from current game behavior and APIs.

Search the local game encyclopedia

When Cities: Skylines II is installed locally, the MCP server reads the game encyclopedia from the installed game files. This source is enabled by default when the server can find Cities2_Data/Content/Game/Locale.cok.

The extracted encyclopedia index is cached locally on the user's machine and rebuilt only when the source game file, detected Steam build id, locale, or extractor version changes. Extracted game text is not committed to this repository, shipped in releases, or part of the redistributed wiki corpus.

Help with mod project workflows

The server also includes local workflow tools for CS2 mod projects. An AI assistant can:

  • scaffold C# code, UI, or hybrid mod project templates
  • write files inside configured workspaces
  • list project trees
  • run project builds and analyzers
  • package project output

These tools are meant for local development workflows. Claude, Codex, and Antigravity can use them to write and run trusted workspace code during builds, so configure workspaces deliberately and use manual playtesting before treating any mod as ready to share.

Agent skills

  • cities2-knowledge: answers gameplay, city-system, and player-facing patch/update questions.
  • cities2-modding: handles general modding questions and local mod project workflows.
  • cities2-mod-review: reviews CS2 mods for safety, maintainability, user value, packaging hygiene, and verification gaps.
  • cities2-mod-debugging: helps debug CS2 mod build, packaging, runtime, log, UI debugger, and in-game behavior issues.
  • cities2-mod-release: checks whether a mod is ready to share.

The modding quality skills use documented CS2 best practices and negative constraints as defaults, and they do not present a mod as ready to share until it has been locally playtested.

Privacy

The MCP server runs locally and does not collect telemetry. See PRIVACY.md for details.

Licensing

The MCP server code is licensed under the MIT License. The included wiki corpus is licensed under Creative Commons Attribution-ShareAlike 3.0; its source attribution and transformation notes are in the wiki corpus attribution. The curated research corpus is separately attributed, and its original report prose follows the repository license; see the research corpus attribution.

This project is not developed by, endorsed by, reviewed by, or approved by Paradox Interactive, Iceflake Studios, Colossal Order, Paradox Wikis, or any related company. Cities: Skylines II and related names are used referentially.

来源:README.md,提交 232ac5f

工具

13

get_page

Get Wiki Page

Return a full page from the bundled Cities: Skylines II Wiki corpus or research datasets by page_id. Results include dataset labels. Research evidence is time-bounded; check publication dates for current details.

输入参数page_id必填

query_reference

Query Wiki References

Search page-level Cities: Skylines II Wiki corpus and research dataset references: titles, sections, URLs, and links. Results include dataset labels. Research evidence is time-bounded; check publication dates for current details.

输入参数limitquery必填

get_snippets

Get Modding Snippets

Retrieve Cities: Skylines II modding code snippets extracted from the bundled wiki corpus.

输入参数limitquery必填

scaffold_project

Scaffold Mod Project

Scaffold a Cities: Skylines II mod project from a template.

输入参数name必填optionsmetadatatemplate必填target_dir

write_project_file

Write Project File

Write files inside a configured Cities: Skylines II mod project workspace.

输入参数modecontent必填project_dir必填relative_path必填

list_project_tree

List Project Tree

List files in a configured Cities: Skylines II mod project workspace.

输入参数globmax_filesproject_dir必填include_hidden

build_project

Build Mod Project

Build a Cities: Skylines II mod project and return normalized diagnostics. This executes trusted workspace code; do not use it for arbitrary untrusted repositories.

输入参数cleanstepspackageprofileproject_dir必填timeout_sec

analyze_project

Analyze Mod Project

Run static checks for Cities: Skylines II mod project structure and lifecycle patterns.

输入参数strictprofileproject_dir必填

package_project

Package Mod Project

Create a zip package for a Cities: Skylines II mod project.

输入参数output_dirproject_dir必填package_nameexclude_globs

search_encyclopedia

Search game encyclopedia

Search the local Cities: Skylines II in-game encyclopedia read from the user's installed game files.

输入参数limitquery必填

get_encyclopedia_entry

Get encyclopedia entry

Return one local Cities: Skylines II in-game encyclopedia entry by entry_id.

输入参数entry_id必填

source_status

Check Source Status

Report Cities2-MCP source availability for the wiki corpus, bundled research datasets, and local game encyclopedia.

无需输入参数。

版本历史

3
  1. v0.5.0最新Nov 1, 2026
  2. v0.4.0Sep 19, 2026
  3. v0.3.1Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分