Skip to main content
Glama

Gumroad

by rmarescu
index.ts887 B
#!/usr/bin/env node import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { mainCommand, initCommand } from "./commands/index.js"; import { createServer } from "./server.js"; mainCommand.addCommand(initCommand); mainCommand.action(async () => { const accessToken = process.env.GUMROAD_ACCESS_TOKEN; const baseUrl = process.env.GUMROAD_BASE_URL; if (!accessToken) { console.error("Please set GUMROAD_ACCESS_TOKEN environment variable."); process.exit(1); } const transport = new StdioServerTransport(); const { server, cleanup } = createServer(accessToken, baseUrl); await server.connect(transport); process.on("SIGINT", async () => { await cleanup(); await server.close(); process.exit(0); }); }); mainCommand.parseAsync().catch((error) => { console.error("Server error:", error); process.exit(1); });

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/rmarescu/gumroad-mcp'

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