Labsco
salihgueler logo

Flame MCP Server

โ˜… 24

from salihgueler

Provides live, up-to-date documentation for the Flame game engine.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Flame MCP Server

A Model Context Protocol (MCP) server that provides comprehensive access to Flame game engine documentation for AI assistants like Claude Desktop and Amazon Q Developer.

๐ŸŽฏ What This Does

Architecture Diagram

  • Documentation Access: Provides searchable access to the complete Flame engine documentation
  • Tutorial System: Offers step-by-step game development tutorials (Space Shooter, Platformer, Klondike)
  • Local Caching: Stores documentation locally for fast, offline access
  • MCP Integration: Works seamlessly with Claude Desktop and Amazon Q CLI
  • Search Tools: Intelligent search across all documentation and tutorials

๐Ÿ› ๏ธ Available Tools

search_documentation

Search through all Flame documentation for specific topics.

Example queries:

  • "How do I implement collision detection in Flame?"
  • "Search for component system examples"
  • "Find information about sprite animations"

tutorial

Get complete step-by-step game development tutorials.

Available tutorials:

  • Space Shooter: Complete 6-step tutorial for building a classic space shooter
  • Platformer: 7-step tutorial for building a side-scrolling platformer (Ember Quest)
  • Klondike: 5-step tutorial for building a solitaire card game

Example usage:

  • "Show me how to build a space shooter game" โ†’ Complete tutorial with all steps
  • "I want to create a platformer game" โ†’ Full platformer tutorial
  • "List all available tutorials" โ†’ Overview of all tutorials

๐Ÿ“Š Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   MCP Client    โ”‚    โ”‚  Flame MCP       โ”‚    โ”‚  Documentation  โ”‚
โ”‚ (Claude/Amazon Q)โ”‚โ—„โ”€โ”€โ–บโ”‚     Server       โ”‚โ—„โ”€โ”€โ–บโ”‚     Cache       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ”‚
                              โ–ผ
                       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                       โ”‚   GitHub API     โ”‚
                       โ”‚ (flame-engine/   โ”‚
                       โ”‚    flame/doc)    โ”‚
                       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“ Project Structure

flame_mcp_server/
โ”œโ”€โ”€ bin/
โ”‚   โ”œโ”€โ”€ flame_mcp_live.dart           # Main MCP server
โ”‚   โ””โ”€โ”€ flame_sync_standalone.dart    # Documentation sync utility
โ”œโ”€โ”€ lib/src/
โ”‚   โ”œโ”€โ”€ flame_live_docs.dart          # Documentation management
โ”‚   โ””โ”€โ”€ flame_mcp_live.dart           # MCP protocol implementation
โ”œโ”€โ”€ build/
โ”‚   โ””โ”€โ”€ flame_mcp_live                # Compiled MCP server
โ”œโ”€โ”€ flame_docs_cache/                 # Cached documentation (146 files)
โ”œโ”€โ”€ build_clean.sh                    # Build and setup script
โ””โ”€โ”€ README.md                         # This file

๐ŸŽฎ Example Interactions

Building a Space Shooter Game

You: "I want to build a space shooter game in Flame. Show me the complete tutorial."

Response: Complete 6-step tutorial including:

  • Project setup and basic game structure
  • Player controls and graphics
  • Animations and visual effects
  • Enemy spawning and movement
  • Shooting mechanics
  • Collision detection and scoring

Learning About Components

You: "How does the Flame component system work?"

Response: Detailed documentation about:

  • Component lifecycle
  • Component hierarchy
  • Built-in components
  • Creating custom components
  • Component communication

๐Ÿ”„ Maintenance

Refresh Documentation Cache

# Update to latest Flame documentation
dart run bin/flame_sync_standalone.dart

Rebuild Server

# Clean rebuild with fresh documentation
./build_clean.sh

๐Ÿ“ˆ Performance

  • Documentation Files: 146 Markdown files
  • Cache Size: ~3 MB
  • Sync Time: 30-60 seconds (network dependent)
  • Memory Usage: <50 MB when running
  • Startup Time: <2 seconds

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test with ./build_clean.sh
  5. Submit a pull request

๐Ÿ“„ License

This project is licensed under the MIT License.

๐Ÿ”— Related Links


Ready to start building games with Flame? Run ./build_clean.sh and add the server to your MCP client! ๐ŸŽฎ