Skip to main content
Glama
paladini

devutils-mcp-server

base64_encode

Encode strings to Base64 format for data transmission or storage. This tool converts text input into Base64 encoding, commonly used in web development and data handling.

Instructions

Encode a string to Base64.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe string to encode

Implementation Reference

  • The handler and registration logic for base64_encode tool.
    server.tool(
      "base64_encode",
      "Encode a string to Base64.",
      { input: z.string().describe("The string to encode") },
      async ({ input }) => ({
        content: [
          {
            type: "text" as const,
            text: Buffer.from(input, "utf-8").toString("base64"),
          },
        ],
      })
    );

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/paladini/devutils-mcp-server'

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