Skip to main content
Glama
ycyun

ABLESTACK MOLD MCP Server

by ycyun

mold_call_debug

Debug MOLD API calls by executing arbitrary commands with parameters to test and troubleshoot cloud infrastructure interactions.

Instructions

임의의 MOLD API 명령을 호출합니다. (command + params)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes
paramsNo

Implementation Reference

  • The handler function for the 'mold_call_debug' tool. It flattens the input parameters using flattenParamsForMold and calls the generic callApi function with the command and flattened params, then returns the JSON stringified response.
    async ({ command, params }) => {
      const flat = flattenParamsForMold(params ?? {});
      const data = await callApi(command, flat);
      return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
    }
  • The Zod input schema for the 'mold_call_debug' tool, defining 'command' as string and optional 'params' as a record of string keys to union of primitives or nested records.
    inputSchema: {
      command: z.string(),
      params: z
        .record(
          z.string(),
          z.union([
            z.string(),
            z.number(),
            z.boolean(),
            z.record(
              z.string(),
              z.union([
                z.string(),
                z.number(),
                z.boolean(),
                z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])),
              ])
            ),
          ])
        )
        .optional(),
    },
  • src/app/tools.js:9-42 (registration)
    The registration of the 'mold_call_debug' tool using server.registerTool, including title, description, inputSchema, and the handler function.
    server.registerTool(
      "mold_call_debug",
      {
        title: "MOLD API 호출(범용)",
        description: "임의의 MOLD API 명령을 호출합니다. (command + params)",
        inputSchema: {
          command: z.string(),
          params: z
            .record(
              z.string(),
              z.union([
                z.string(),
                z.number(),
                z.boolean(),
                z.record(
                  z.string(),
                  z.union([
                    z.string(),
                    z.number(),
                    z.boolean(),
                    z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])),
                  ])
                ),
              ])
            )
            .optional(),
        },
      },
      async ({ command, params }) => {
        const flat = flattenParamsForMold(params ?? {});
        const data = await callApi(command, flat);
        return { content: [{ type: "text", text: JSON.stringify(data, 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/ycyun/ablestack-MCP-server'

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