GameMaker CLI + MCP server toolset
Project description
GameMaker MCP Tools
Project Features
gms: a Python CLI for GameMaker project operations (asset creation, maintenance, runner, etc).gms-mcp: an MCP server that exposes the same operations as MCP tools (Cursor is the primary example client).- Reliability-First Architecture: Custom exception hierarchy, typed result objects, and an execution policy manager replace monolithic exit calls and raw dictionaries. This enables structured error handling, consistent tool integration, and optimized performance (Fast assets, Resilient runner).
- Health & Diagnostics:
gm_mcp_healthprovides a one-click diagnostic tool to verify the local GameMaker environment.gm_diagnosticsprovides structured, machine-readable project diagnostics (JSON, naming, orphans, references) compatible with IDE problem panels. - Runtime Management:
gm_runtime_list,gm_runtime_pin, andgm_runtime_verifyallow precise control over which GameMaker runtime version is used for builds and execution. - GML Symbol Indexing & Code Intelligence:
gm_build_index,gm_find_definition,gm_find_references, andgm_list_symbolsprovide deep, fast, and filtered code analysis (definitions and cross-file references). - Introspection: complete project inspection with support for all asset types (including extensions and datafiles).
- MCP Resources: addressable project index and asset graph for high-performance agent context loading.
gms-mcp-init: generates shareable MCP config files for a workspace. Now auto-detects environment variables likeGMS_MCP_GMS_PATHto include in the generated config.
Install (recommended: pipx)
pipx install gms-mcp
Local Development Setup
If you are working on the gms-mcp codebase itself, follow these steps to set up a local development environment:
-
Clone and install in editable mode:
git checkout dev pip install -e .
-
Initialize local and global MCP servers for testing: We recommend setting up two separate MCP server configurations in Cursor to test your changes:
- Global (
gms-global): For general use across all your GameMaker projects. - Local (
gms-local): Specifically for testing your current changes to the server.
Run these commands from the project root:
# Global setup (names it 'gms-global' in Cursor) gms-mcp-init --cursor-global --server-name gms-global --mode python-module --python python --non-interactive # Local setup (names it 'gms-local' in Cursor) gms-mcp-init --cursor --server-name gms-local --mode python-module --python python --non-interactive
- Global (
-
Verify in Cursor: Go to Cursor Settings > Features > MCP to see your new servers. You may need to click "Reload" or restart Cursor to see changes.
Publishing (maintainers)
Publishing is automated via GitHub Actions (PyPI Trusted Publishing) on every push to main and on tags v*.
See RELEASING.md for the one-time PyPI setup and the first manual upload helper scripts.
X (Twitter) posting on main
This repo can post to X automatically when main is updated.
- Personality / voice:
.github/x-personality.md - Tweet staging file:
.github/next_tweet.txt
How it works
- When a commit lands on
main, GitHub Actions reads.github/next_tweet.txt. - If it contains the placeholder text (or is empty), it skips posting.
- If it contains a real tweet, it posts to X and then clears the file back to the placeholder.
Maintainer flow (dev -> pre-release -> main)
Because this repo promotes changes dev -> pre-release -> main, prepare the tweet during the pre-release -> main PR:
- Update
.github/next_tweet.txtwith the tweet (following.github/x-personality.md) - Merge to
main
Use with a GameMaker project (multi-project friendly)
Run this inside each GameMaker project workspace (or repo) to generate config:
gms-mcp-init --cursor
This writes .cursor/mcp.json and attempts to auto-detect the .yyp location to set GM_PROJECT_ROOT.
For a one-time setup that works across many projects, write Cursor's global config instead:
gms-mcp-init --cursor-global
Generate example configs for other MCP-capable clients:
gms-mcp-init --vscode --windsurf --antigravity
Or generate everything at once:
gms-mcp-init --all
Monorepos / multiple .yyp
If multiple .yyp projects are detected in a workspace:
gms-mcp-initwill warn and (when interactive) prompt you to pick one.- In non-interactive environments, it defaults
GM_PROJECT_ROOTto${workspaceFolder}(safe).
Force a specific project root:
gms-mcp-init --cursor --gm-project-root path\\to\\project
Preview output without writing files:
gms-mcp-init --cursor --dry-run
Code Intelligence & Introspection
The MCP server provides comprehensive project analysis capabilities:
GML Symbol Indexing (gm_build_index)
Build a high-performance index of all functions, enums, macros, and global variables in the project. This is required for advanced code intelligence tools.
Symbol Definition (gm_find_definition)
Find the exact location and docstrings for any GML symbol in your project.
Find References (gm_find_references)
Search for all usages of a specific function or variable across your entire codebase.
List Symbols (gm_list_symbols)
List all project symbols with filtering by type, name substring, or file path.
Asset Listing (gm_list_assets)
List all assets in your project, optionally filtered by type:
- Supported types: script, object, sprite, room, sound, font, shader, path, timeline, tileset, animcurve, sequence, note, folder, extension, includedfile (datafiles)
Asset Reading (gm_read_asset)
Read the complete .yy JSON metadata for any asset by name or path.
Reference Search (gm_search_references)
Search for patterns across project files with:
- Scopes:
all,gml,yy,scripts,objects,extensions,datafiles - Modes: literal string or regex
- Options: case sensitivity, max results
Asset Graph (gm_get_asset_graph)
Build a dependency graph of assets with two modes:
- Shallow (fast): Parses
.yyfiles for structural references (parent objects, sprites, etc.) - Deep (complete): Also scans all GML code for runtime references like
instance_create,sprite_index,audio_play_sound, etc.
MCP Resources
Pre-built, cacheable project data for agents:
gms://project/index: Complete project structure (assets, folders, room order, audio/texture groups, IDE version)gms://project/asset-graph: Asset dependency graphgms://system/updates: Returns a human-readable message if a newer version ofgms-mcpis available on PyPI or GitHub.
Update Notifier
The server automatically checks for updates on startup and during common operations:
- Tool:
gm_check_updatesreturns structured update info. - Auto-check:
gm_project_infoincludes anupdatesfield. - Resource:
gms://system/updatesprovides a quick text status.
CLI usage
Run from a project directory (or pass --project-root):
gms --version
gms --project-root . asset create script my_function --parent-path "folders/Scripts.yy"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gms_mcp-0.1.25.tar.gz.
File metadata
- Download URL: gms_mcp-0.1.25.tar.gz
- Upload date:
- Size: 282.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de6105f56cadb7a3bccce3cafbdcde81106e75c4c2311ae82f0838897848a56f
|
|
| MD5 |
71c118e9cce280d48fee0faff25c1b28
|
|
| BLAKE2b-256 |
575fd99f5a679b72e273bf1bcddf33ac2391040bb32d79f57ef7df0b09aa8b1e
|
Provenance
The following attestation bundles were made for gms_mcp-0.1.25.tar.gz:
Publisher:
publish.yml on Ampersand-Game-Studios/gms-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gms_mcp-0.1.25.tar.gz -
Subject digest:
de6105f56cadb7a3bccce3cafbdcde81106e75c4c2311ae82f0838897848a56f - Sigstore transparency entry: 798295459
- Sigstore integration time:
-
Permalink:
Ampersand-Game-Studios/gms-mcp@928a192a4dddd32b98757a68e418a075840965f1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Ampersand-Game-Studios
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@928a192a4dddd32b98757a68e418a075840965f1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gms_mcp-0.1.25-py3-none-any.whl.
File metadata
- Download URL: gms_mcp-0.1.25-py3-none-any.whl
- Upload date:
- Size: 178.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9896e14d4b839d03c8731755fd01440d4cb02142358d396727515158b42d47b
|
|
| MD5 |
62aab95d02b2697148f22cf96e26eaa1
|
|
| BLAKE2b-256 |
277899cabfdc387bcf01f1e889de19939f9e2762b43b08bff9d8d9ee05c745b8
|
Provenance
The following attestation bundles were made for gms_mcp-0.1.25-py3-none-any.whl:
Publisher:
publish.yml on Ampersand-Game-Studios/gms-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gms_mcp-0.1.25-py3-none-any.whl -
Subject digest:
d9896e14d4b839d03c8731755fd01440d4cb02142358d396727515158b42d47b - Sigstore transparency entry: 798295462
- Sigstore integration time:
-
Permalink:
Ampersand-Game-Studios/gms-mcp@928a192a4dddd32b98757a68e418a075840965f1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Ampersand-Game-Studios
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@928a192a4dddd32b98757a68e418a075840965f1 -
Trigger Event:
push
-
Statement type: