Skip to main content
Glama
paladini

devutils-mcp-server

hex_encode

Convert text strings to hexadecimal format for data encoding, debugging, or network transmission using the devutils-mcp-server toolkit.

Instructions

Encode a string to its hexadecimal representation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe string to hex-encode

Implementation Reference

  • Registration and handler implementation for the hex_encode MCP tool.
    server.tool(
      "hex_encode",
      "Encode a string to its hexadecimal representation.",
      { input: z.string().describe("The string to hex-encode") },
      async ({ input }) => ({
        content: [
          {
            type: "text" as const,
            text: Buffer.from(input, "utf-8").toString("hex"),
          },
        ],
      })
    );

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