@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
43 lines • 1.75 kB
TypeScript
import { PicaClient } from "@withpica/mcp-sdk";
import type { PayoutsStatusResult } from "@withpica/mcp-sdk";
import type { ToolDefinition, ToolExecutor } from "./index.js";
/** The share-rule kinds the propose route accepts (programmable-rights-share-rule SHARE_RULE_KINDS). */
export declare const RIGHTS_SHARE_KINDS: readonly ["publisher", "manager_commission", "sold_share", "other"];
/**
* Build the POST body from tool args — only the fields the route reads, so
* nothing unexpected is forwarded. The route re-validates everything.
*/
export declare function buildProposeBody(args: Record<string, unknown>): Record<string, unknown>;
/** The one-line message for a successful proposal. Never says "active" unless it is. */
export declare function proposeMessage(data: {
locked?: boolean;
requests?: unknown[];
informed?: unknown[];
}): string;
/** The one-line message for a song's rights overview. Holds are PICA's rules. */
export declare function inspectMessage(data: {
workTitle?: string;
holds?: unknown[];
}): string;
/**
* pica_payouts_status's text. "Paid" appears only for the paid tally (Stripe
* confirmed, ADR-321) and "paid, then taken back"; every other state is its
* own word from the route.
*/
export declare function payoutsMessage(data: PayoutsStatusResult): string;
export declare function statementsMessage(entries: number): string;
export declare class RightsTools {
private pica;
constructor(pica: PicaClient);
getTools(): Array<{
definition: ToolDefinition;
executor: ToolExecutor;
}>;
private payoutsStatus;
private propose;
private status;
private statements;
private recordIncome;
private inspect;
}
//# sourceMappingURL=rights.d.ts.map