- API client with Clover REST API v3 integration (OAuth2 + API key auth) - 50+ comprehensive tools across 10 categories: * Orders: list, get, create, update, delete, add/remove line items, discounts, payments, fire order * Inventory: items, categories, modifiers, stock management * Customers: CRUD, search, addresses, payment cards * Employees: CRUD, roles, shifts, clock in/out * Payments: list, get, refunds * Merchants: settings, devices, tender types * Discounts: CRUD operations * Taxes: CRUD, tax rates * Reports: sales summary, revenue by item/category, employee performance * Cash: cash drawer tracking and events - 18 React MCP apps with full UI: * Order management: dashboard, detail, grid * Inventory: dashboard, detail, category manager * Customer: detail, grid * Employee: dashboard, schedule * Payment history * Analytics: sales dashboard, revenue by item, revenue by category * Configuration: discount manager, tax manager, device manager * Cash drawer - Complete TypeScript types for Clover API - Pagination support with automatic result fetching - Comprehensive error handling - Full README with examples and setup guide
17 lines
322 B
TypeScript
17 lines
322 B
TypeScript
// Global type declarations for React MCP apps
|
|
|
|
interface MCPClient {
|
|
callTool(name: string, args?: any): Promise<any>;
|
|
showApp(name: string, params?: any): void;
|
|
listResources(): Promise<any>;
|
|
readResource(uri: string): Promise<any>;
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
mcp: MCPClient;
|
|
}
|
|
}
|
|
|
|
export {};
|