Skip to main content
Glama
pashaydev

Terminal.shop MCP Server

by pashaydev

collect-card

Collect payment card information to complete purchases on Terminal.shop, enabling secure transactions for orders and subscriptions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The complete inline handler and registration for the 'collect-card' tool. It has no input parameters (empty schema {}). The function calls the terminalApi to POST /card/collect, retrieves a secure URL for card entry, and returns it to the user in a formatted message. Includes error handling.
    server.tool("collect-card", {}, async () => { try { const response = await terminalApi.post("/card/collect"); const data = response.data.data; return { content: [ { type: "text", text: `Please use this URL to securely enter your card details: ${data.url}\nAfter completing the form, your card will be added to your account.`, }, ], }; } catch (error) { console.error("Error generating card collection URL:", error); return { content: [ { type: "text", text: `Error generating card collection URL: ${error.message}`, }, ], isError: true, }; } });

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/pashaydev/terminal.shop.mcp'

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