Skip to main content
Glama
getAddress.ts523 B
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; import { loadPemWalletFromEnv } from "./utils.js"; export async function getAddress(): Promise<CallToolResult> { const pem = loadPemWalletFromEnv(); return { content: [ { type: "text", text: `The bech32 address is ${pem.label}.`, }, ], }; } export const getAddressToolName = "get-wallet-address"; export const getAddressToolDescription = "Get the bech32 address of the wallet set in the environment config";

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/multiversx/mx-mcp'

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