Skip to main content
Glama

CK3 Runtime MCP

A Windows, source-preview Runtime bridge for Crusader Kings III. The CLI and MCP server share request identities, declared operations, retained receipts and managed process custody. The project provides two entry paths, a game with a preloaded bridge and an isolated, silently managed game instance.

Status and compatibility

The retained F1 v18 acceptance ran on CK3 1.20.1.2 / Steam build 26046173. Its managed and preloaded entry paths each completed a 37-call operation chain. The local acceptance artifacts are not distributed with this source repository. CK3 1.21.0.3 / build 26785313 compatibility remains unverified.

This publication candidate packages source independently of the original mixed development workspace. A fresh checkout requires six verified local GUI inputs before material preparation. The complete commercial-game GUI documents are excluded. Current game files do not automatically substitute for an older accepted input generation.

Related MCP server: LocalBridge

Dependencies

Use Python 3.12 on Windows and the MCP SDK version in requirements.txt. The offline publication checks use Python's standard library and Git. Install dependencies through the software-management process appropriate to your environment. Repository checks do not download dependencies.

Local GUI inputs

inputs/gui-inputs.json declares the byte lengths and hashes of the six local instrumented GUI inputs used by the retained material producer. Supply your own lawfully held compatible inputs. This repository provides a verifier and explicit import path:

python -B tools/prepare_gui_inputs.py --source <local-runtime-mod-root>

The source directory contains gui/hud.gui, gui/console.gui, gui/frontend_ingame_menu.gui, gui/frontend_load.gui, gui/window_save_game.gui and gui/event_windows/character_event.gui. Preparation checks every input before publishing the local GUI directory. An already populated directory is preserved and checked for exact equality. The generated directory is ignored by Git and must remain local.

Reconstructing all six accepted overlays from stock game files remains a packaging dependency. In particular, the exact historical HUD source was not recovered by the bounded source audit. The explicit verified-input path keeps the original producer usable without distributing game GUI documents. This source preview does not establish a self-contained managed release from only the currently installed game's stock files.

CLI and MCP entry

Run commands from the repository root:

python -B tools/ck3-runtime-mcp/cli.py --help
python -B tools/ck3-runtime-mcp/server.py

The second command is the local stdio MCP entry. The host must retain ownership while it controls a managed session. A named profile supplies the isolated game userdata, log sources, run and branch identity, observation identity and epoch. Runtime data are created under the repository's ignored _local/ area. Executable and user-data paths belong to local profiles, not shared examples.

preloaded_bridge_prepare generates immutable, hashed core material for a profile. runtime_capabilities distinguishes configured material, observed producers and retained operation evidence. monitor_start/read/status/stop provide bounded observation and history. A probe or actor proof is a separate request when the chosen mutation requires one.

Declared operations include developer values on the current actor, primary title and dynasty, native event observations and option selection, pause and one-day advancement, plus owned checkpoint transactions. Business workflows need their own supplied Mod, catalog and game-side producers. Their source corpora are not included.

An operation's result retains its original request and world binding. A timeout or UNKNOWN outcome requires inspection of that original record. Loading a new branch invalidates old write references while preserving historical reads. Closing a managed session includes original-owner resource restoration and a verified terminal resource state. Preloaded human-owned games keep their own custody decision.

Publication

The project code is MIT, with retained AGI-CK3 notices described in THIRD_PARTY_NOTICES.md. See docs/publication.md for staged-blob, outgoing history and CI checks. Private review evidence, profiles, game inputs, saves, logs, credentials, environments and local acceptance data remain outside the public candidate tree.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to diagnose Windows computer problems safely through a consent-first, read-only default remote diagnostics bridge.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables ChatGPT to work with explicitly registered projects on a Windows device through a secure, self-hosted bridge.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Windows users to securely bridge compatible cloud LLM MCP services to local applications, allowing discovery and per-app authorization so approved desktop apps can be started or closed via MCP tool calls. It blocks high-risk system tools and stores connection tokens with Windows DPAPI encryption.
      6
      Apache 2.0