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
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Path 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 handlername: "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"], },
- src/index.ts:907-931 (handler)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), }, ], }; }