Skip to main content
Glama
TonyBro
by TonyBro

get_game_templates

Retrieve available game templates to start React Three Fiber projects, including platformer, puzzle, endless runner, physics-based, and arcade types.

Instructions

Get available game templates

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP server handler method in `src/index.js` that calls the service to retrieve the templates.
    async getGameTemplates() {
      const templates = this.gameTemplateService.getAvailableTemplates();
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(templates, null, 2),
          },
        ],
      };
    }
  • The implementation method `getAvailableTemplates` in `GameTemplateService` which returns the list of hardcoded game templates.
    getAvailableTemplates() {
      return {
        platformer: {
          name: 'Platformer Game',
          description: 'Side-scrolling platform game with physics',
          features: ['Jump mechanics', 'Platform collision', 'Collectibles', 'Enemies'],
          difficulty: 'intermediate',
        },
        puzzle: {
          name: 'Puzzle Game',
          description: 'Grid-based puzzle game with matching mechanics',
          features: ['Grid system', 'Match detection', 'Score system', 'Combos'],
          difficulty: 'beginner',
        },
        'endless-runner': {
          name: 'Endless Runner',
          description: 'Infinite running game with obstacles',
          features: ['Auto-run', 'Obstacle generation', 'Score tracking', 'Power-ups'],
          difficulty: 'beginner',
        },
        'physics-based': {
          name: 'Physics Puzzle',
          description: 'Physics-based puzzle or sandbox game',
          features: ['Realistic physics', 'Object interaction', 'Puzzle elements'],
          difficulty: 'advanced',
        },
        arcade: {
          name: 'Arcade Game',
          description: 'Classic arcade-style game',
          features: ['Fast-paced action', 'Score attack', 'Power-ups', 'Combos'],
          difficulty: 'intermediate',
        },
      };
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TonyBro/MCP_Game'

If you have feedback or need assistance with the MCP directory API, please join our Discord server