UNPKG

@withpica/mcp-server

Version:

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

118 lines • 3.49 kB
/** * Prompt Registry for MCP Server * Manages pre-configured prompts for common workflows * * ADR-226 Phase 5: optionally takes a `PicaClient` so dynamic prompts * (currently `pica_continue`) can read from the Phase 4 substrate at fetch * time. Other prompts continue to render statically. */ import { PicaClient } from "@withpica/mcp-sdk"; export interface PromptDefinition { name: string; description: string; arguments?: Array<{ name: string; description: string; required?: boolean; }>; } export interface PromptMessage { role: "user" | "assistant"; content: { type: string; text: string; }; } export interface PromptResult { messages: PromptMessage[]; } export declare class PromptRegistry { private pica?; constructor(pica?: PicaClient | undefined); /** * List all available prompts */ listPrompts(): PromptDefinition[]; /** * Get a prompt by name */ getPrompt(name: string, args?: Record<string, any>): Promise<any>; /** * Analyze catalog prompt */ private getAnalyzeCatalogPrompt; /** * Find duplicates prompt */ private getFindDuplicatesPrompt; /** * Enrich metadata prompt */ private getEnrichMetadataPrompt; /** * Verify works prompt */ private getVerifyWorksPrompt; /** * Assess catalog health prompt */ private getAssessCatalogHealthPrompt; /** * Audit credits prompt */ private getAuditCreditsPrompt; /** * New catalog setup prompt — first-time onboarding */ private getNewCatalogSetupPrompt; /** * Close the loop — check a specific work's gaps and offer to fix each one */ private getCloseTheLoopPrompt; /** * Register my works — check registration status and prepare for PRO submission */ private getRegisterMyWorksPrompt; /** * Workspace autopilot — assess state and route to the right workflow */ private getWorkspaceAutopilotPrompt; /** * Prepare for sync — get catalog sync-ready */ private getPrepareForSyncPrompt; /** * Log a session — guided studio session capture */ private getLogASessionPrompt; /** * Set recording splits — guided master ownership split assignment with verify gate */ private getSetRecordingSplitsPrompt; /** * What's new — Atlas funnel for "what's new?", "any updates?", "catch me up". */ private getWhatsNewPrompt; /** * What's wrong — Atlas funnel for "what's wrong with my songs?", "what * needs fixing?", "anything urgent?", "what should I do?". */ private getWhatsWrongPrompt; /** * How much has this earned — Atlas-resolved royalties summary with * fallback nudge when no statements exist for the work. */ private getHowMuchHasThisEarnedPrompt; /** * Who owes me something — multi-tool orchestration aggregating pending * invites, outstanding signatures, and open disputes into one view. */ private getWhoOwesMeSomethingPrompt; /** * Pica continue — pick-up-where-you-left-off. Reads recent assistant_interactions * for the calling user, surfaces specific named open loops per ADR Decision 4 * example, falls through to a clean "nothing in flight" message when empty. */ private getPicaContinuePrompt; } //# sourceMappingURL=index.d.ts.map