Skip to main content
Glama

list_plugins

Retrieve all plugins from an RPG Maker MZ project directory to manage and review available extensions for game development.

Instructions

List all plugins in an RPG Maker MZ project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYesPath to the RPG Maker MZ project directory

Implementation Reference

  • src/index.ts:141-152 (registration)
    Registration of the 'list_plugins' tool including its schema definition in the ListToolsRequestSchema handler
    name: "list_plugins", description: "List all plugins in an RPG Maker MZ project", inputSchema: { type: "object", properties: { project_path: { type: "string", description: "Path to the RPG Maker MZ project directory", }, }, required: ["project_path"], },
  • Implementation of the 'list_plugins' tool handler in the CallToolRequestSchema switch statement. It reads the plugins.js configuration file and lists all .js files in the js/plugins directory of the RPG Maker MZ project.
    case "list_plugins": { const projectPath = args.project_path as string; const pluginsDir = path.join(projectPath, "js", "plugins"); const pluginsFile = path.join(pluginsDir, "..", "plugins.js"); let plugins = []; try { const content = await fs.readFile(pluginsFile, "utf-8"); plugins.push({ type: "config", file: "plugins.js", content }); } catch { // No plugins.js file } const files = await fs.readdir(pluginsDir); const pluginFiles = files.filter((f) => f.endsWith(".js")); return { content: [ { type: "text", text: JSON.stringify({ plugins, pluginFiles }, null, 2), }, ], }; }

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/ShunsukeHayashi/rpgmaker-mz-mcp'

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