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 分