UNPKG

@withpica/mcp-server

Version:

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

45 lines • 1.88 kB
/** * "who has access" to a song, for an agent (ADR-346 part 5b): the same lines * the song page's panel shows, through the same route * (/api/admin/works/[id]/access), and the same remove. * * - pica_works_access_query: one line per organisation or invited address, * side (writing, master and which recording, or both for an old share), * and what they can do (view, or look after the master details). * - pica_works_access_remove: ends one line — the master owner's edit * relationship first, then every share behind it. Destructive: the * confirmation token is required upstream (tier "destructive"). */ import { PicaClient } from "@withpica/mcp-sdk"; import type { ToolDefinition, ToolExecutor } from "./index.js"; type Reason = "invite" | "claim" | "agreement" | "master_owner" | "shared"; interface Line { key: string; granteeOrgName: string | null; /** This catalogue's person behind the line (V1.1); absent on older apps. */ personName?: string | null; /** Why they have access (V1.1); absent on older apps. */ reasons?: Reason[]; pendingEmail: string | null; side: "composition" | "master" | "both"; recordingTitle: string | null; status: "active" | "pending"; canDo: "view" | "look_after_master"; widerArrangement: boolean; } /** Why they have access, in the panel's words (WhoHasAccess.tsx reasonLine). */ export declare function reasonWords(l: Line): string; /** The panel's words for a line (WhoHasAccess.tsx who + sideLine), so both read alike. */ export declare function lineWords(l: Line): string; export declare class SongAccessTools { private pica; constructor(pica: PicaClient); getTools(): Array<{ definition: ToolDefinition; executor: ToolExecutor; }>; private query; private remove; } export {}; //# sourceMappingURL=song-access.d.ts.map