UNPKG

@goparrot/franchise-mcp-server

Version:

MCP Server for Franchise API

35 lines (34 loc) 844 B
import { makeRequest, webstoreBaseUrl } from '../../common/index.js'; /** * Method information for each API endpoint */ export const StoreMethods = { get: { description: 'Get store by ID', method: 'get', path: '/api/v3/stores/{storeId}', pathParams: [ { name: 'storeId', type: 'string', description: 'Unique ID for the store.', }, ], queryParams: [], requestType: 'RetrieveStoreRequest', isMultipart: false, originalName: 'get', isWrite: false, }, }; /** * Handlers for each API endpoint */ export const StoreHandlers = { get: async (args) => { return await makeRequest(StoreMethods.get, { baseUrl: webstoreBaseUrl, args, }); }, };