Skip to main content
Glama

set_server_properties_bulk

Configure multiple Minecraft server settings simultaneously to set up new servers or modify world generation parameters.

Instructions

Set multiple server.properties values at once. Useful for configuring a new server or changing world generation settings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propertiesYesObject of key-value pairs to set (e.g., { 'gamemode': 'creative', 'difficulty': 'hard' })

Implementation Reference

  • The tool registration and handler implementation for set_server_properties_bulk. It uses z.record(z.string(), z.string()) for input validation and calls manager.properties.setMultiple to update the configuration.
    server.tool(
      "set_server_properties_bulk",
      "Set multiple server.properties values at once. Useful for configuring a new server or changing world generation settings.",
      {
        properties: z
          .record(z.string(), z.string())
          .describe("Object of key-value pairs to set (e.g., { 'gamemode': 'creative', 'difficulty': 'hard' })"),
      },
      async ({ properties }) => {
        manager.properties.setMultiple(properties);
        const lines = Object.entries(properties).map(
          ([k, v]) => `  ${k}=${v}`
        );
        return {
          content: [
            {
              type: "text",
              text: `Set ${lines.length} properties:\n${lines.join("\n")}\n\n⚠️ Restart the server for changes to take effect.`,
            },
          ],
        };
      }
    );

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/tamo2918/Minecraft-Server-MCP'

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