Skip to main content
Glama

mcp-minecraft

gamestate-tools.ts413 B
import mineflayer from 'mineflayer'; import { ToolFactory } from '../tool-factory.js'; export function registerGameStateTools(factory: ToolFactory, getBot: () => mineflayer.Bot): void { factory.registerTool( "detect-gamemode", "Detect the gamemode on game", {}, async () => { const bot = getBot(); return factory.createResponse(`Bot gamemode: "${bot.game.gameMode}"`); } ); }

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/yuniko-software/minecraft-mcp-server'

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