Skip to main content
Glama

Paddle MCP Server

Official
by PaddleHQ
toolkit.ts843 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import PaddleAPI from "./api.js"; import tools from "./tools.js"; class PaddleMCPServer extends McpServer { private _paddle: PaddleAPI; constructor({ apiKey, environment }: { apiKey: string; environment: string }) { super({ name: "paddle", version: "0.1.2", }); this._paddle = new PaddleAPI(apiKey, environment); tools.forEach((tool) => { this.tool(tool.method, tool.description, tool.parameters.shape, async (arg: unknown, _extra: unknown) => { const result = await this._paddle.run(tool.method, arg); return { content: [ { type: "text" as const, text: String(result), }, ], }; }); }); } } export default PaddleMCPServer;

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/PaddleHQ/paddle-mcp-server'

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