UNPKG

@goparrot/franchise-mcp-server

Version:

MCP Server for Franchise API

36 lines (35 loc) 921 B
import { makeRequest } from '../../common/index.js'; import { webstoreBaseUrl } from '../../common/index.js'; /** * Method information for each API endpoint */ export const MerchantMethods = { get: { description: 'Get merchant by merchant ID', method: 'get', path: '/api/v3/merchants/{merchantId}', pathParams: [ { name: 'merchantId', type: 'string', description: 'Unique ID for the merchant.', }, ], queryParams: [], requestType: 'GetMerchantRequest', isMultipart: false, originalName: 'get', isWrite: false, }, }; /** * Handlers for each API endpoint */ export const MerchantHandlers = { get: async (args) => { return await makeRequest(MerchantMethods.get, { baseUrl: webstoreBaseUrl, args: args, }); }, };