Skip to main content
Glama
hrishi0102

Payman AI MCP Server

by hrishi0102

set-api-key

Configure the Payman API key for authentication to access Payman AI's APIs, enabling operations like creating payees, sending payments, and checking balances.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiKeyYesThe Payman API key to use for authentication

Implementation Reference

  • Handler function for set-api-key tool that stores the provided API key in the global paymanApiKey variable and returns a success message.
    async ({ apiKey }) => { paymanApiKey = apiKey; return { content: [ { type: "text", text: "Payman API key has been set successfully.", }, ], }; }
  • Input schema for set-api-key tool using Zod, defining apiKey as string.
    { apiKey: z.string().describe("The Payman API key to use for authentication"), },
  • payman-server.ts:18-34 (registration)
    Registration of the set-api-key tool on the MCP server.
    server.tool( "set-api-key", { apiKey: z.string().describe("The Payman API key to use for authentication"), }, async ({ apiKey }) => { paymanApiKey = apiKey; return { content: [ { type: "text", text: "Payman API key has been set successfully.", }, ], }; } );
  • Global variable to store the Payman API key, used by set-api-key and other tools.
    let paymanApiKey = "";

Other Tools

Related Tools

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/hrishi0102/payman_mcp'

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