Provides comprehensive access to GameMaker Language (GML) documentation, enabling lookup of specific functions, searching documentation content, browsing by categories, and retrieving documentation files for GameMaker development.
GameMaker Documentation Tools
A comprehensive toolkit for GameMaker Language (GML) documentation management, featuring an MCP server, CLI tools, and HTML-to-Markdown conversion utilities.
Includes GameMaker Documentation: This package comes with GameMaker Language documentation built-in. No additional setup or file downloads required!
Features
- MCP Server: Model Context Protocol server for programmatic documentation access
- CLI Documentation Tool: Search, lookup, and browse GameMaker documentation from the command line
- HTML Converter: Convert GameMaker HTML documentation to clean Markdown format
- Modern Node.js: Built with ES modules, structured error handling, and performance monitoring
Requirements
- Node.js: >= 22.0.0
- npm: Latest version recommended
Installation
Quick Start with npx (Recommended)
No installation needed! Run directly with npx:
Global Installation
Local Development
Usage
CLI Documentation Tool
The CLI provides comprehensive GameMaker documentation lookup and search capabilities:
Development Mode
Use watch mode for development with automatic reloading:
Custom Documentation Path (Optional)
The package includes GameMaker documentation by default. If you need to use custom docs:
MCP Server
Start the Model Context Protocol server for programmatic access:
The MCP server provides 5 tools:
lookup_gamemaker_function
- Look up specific GML functionssearch_gamemaker_docs
- Search documentation contentlist_gamemaker_functions
- List functions by pattern or categoryget_gamemaker_file
- Retrieve specific documentation filesinit_gamemaker_agent
- Initialize with comprehensive GML coding guide
MCP Configuration
For Claude Desktop or other MCP clients, add this to your configuration:
Claude Desktop (claude_desktop_config.json):
VS Code (.vscode/settings.json):
With custom documentation path (optional):
Note: The package includes GameMaker documentation by default, so no path configuration is needed for standard usage.
HTML to Markdown Conversion
Convert GameMaker HTML documentation to clean Markdown:
Project Structure
Key Features
Modern Node.js Architecture
- ES Modules: Full ESM support with proper import/export syntax
- Node.js Built-ins: Uses
node:
prefix for built-in modules - Structured Error Handling: Rich error context and logging
- Performance Monitoring: Automatic timing and slow operation detection
Documentation Management
- Smart Indexing: Efficient function and content indexing
- Fuzzy Search: Find functions even with partial or misspelled names
- Category Organization: Browse documentation by logical categories
- Link Conversion: Automatic conversion of HTML links to Markdown paths
Development Experience
- Watch Mode: Hot reloading during development (
npm run cli:dev
) - Structured Logging: Rich error context and debugging information
- Performance Insights: Automatic timing measurements for operations
- Comprehensive Error Handling: Clear error messages with context
Examples
Function Lookup
Performance Monitoring
Development
Architecture Principles
- Modular Design: Each command is self-contained in its own file
- Shared Utilities: Common functionality in the
lib/
directory - Error Handling: Structured error classes with rich context
- Performance: Built-in timing and monitoring capabilities
Adding New Commands
- Create a new command file in
src/commands/
- Extend
BaseCommand
for shared functionality - Register the command in
src/commands/index.js
- Follow the existing pattern for error handling and performance monitoring
Error Handling
The project uses structured error handling with contextual information:
License
MIT License - see LICENSE file for details.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes following the existing code style
- Submit a pull request
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Provides programmatic access to GameMaker Language (GML) documentation through MCP tools for function lookup, documentation search, and comprehensive coding guidance. Includes built-in GameMaker documentation with no additional setup required.