Skip to main content
Glama

server_decompress_file

Decompress archive files on a Minecraft server to extract game files, mods, or configurations using the crafty-mcp server tool.

Instructions

Decompress/unzip an archive file on a Minecraft server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
server_idYesServer ID or UUID
folderYesRelative path to the archive file to decompress

Implementation Reference

  • The tool "server_decompress_file" is registered and handled within the `registerServerFileTools` function in `src/tools/server-files.ts`. It takes `server_id` and `folder` (path to archive) as inputs and sends a POST request to `/servers/${server_id}/files/zip`.
    server.tool(
      "server_decompress_file",
      "Decompress/unzip an archive file on a Minecraft server",
      {
        server_id: z.string().describe("Server ID or UUID"),
        folder: z.string().describe("Relative path to the archive file to decompress"),
      },
      async ({ server_id, folder }) => {
        try {
          const data = await client.post(`/servers/${server_id}/files/zip`, { folder });
          return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
        } catch (error) {
          const msg = error instanceof Error ? error.message : String(error);
          return { content: [{ type: "text", text: `Error: ${msg}` }], isError: true };
        }
      }
    );

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/HadiCherkaoui/crafty-mcp'

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