UNPKG

@withpica/mcp-server

Version:

MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog

31 lines • 1.31 kB
/** * Bookings Tools — internal-team session/production booking enquiries * (distinct from licensing.ts's sync-license enquiries). * * ADR-289 Wave C1 — ports the bespoke assistant's `search_booking_inquiries` * / `get_booking_enquiry_details` / `update_booking_enquiry_status` / * `record_booking_response` / `set_booking_follow_up` into two tools: * `pica_bookings_query` (read, folds list + detail) and * `pica_bookings_update` (write, one optional field per independent * update mode rather than an action discriminator). */ import { PicaClient } from "@withpica/mcp-sdk"; import { ToolDefinition, ToolExecutor } from "./index.js"; export declare class BookingsTools { private pica; constructor(pica: PicaClient); getTools(): Array<{ definition: ToolDefinition; executor: ToolExecutor; }>; private queryBookings; /** * `PATCH /admin/bookings/[id]` only processes one update mode per call * (status, OR responseContent+respondedBy, OR followUp). A caller * setting multiple modes at once gets one write per mode, sequentially, * so a failure in one mode doesn't lose the others (mirrors the * bespoke assistant's three independent handler methods). */ private updateBooking; } //# sourceMappingURL=bookings.d.ts.map