@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
28 lines • 1.22 kB
TypeScript
/**
* pica_view_create — a saved view link (ADR-362 slice 3).
*
* Stores a set of works, recordings or people from the caller's catalogue
* (POST /api/admin/view-links) and returns its `view_url`, built by the one
* link builder. The URL carries only the view's random id: no ids, titles or
* note text (ADR-362 §1).
*
* read:catalog with tier write: it stores a row but changes nothing in the
* catalogue, so a read-only connection can share a list (ADR-362 §2; the
* intended tier/scope mismatch in mcp-tool-scope-parity.test.ts).
*/
import { PicaClient } from "@withpica/mcp-sdk";
import { ToolDefinition, ToolExecutor } from "./index.js";
/** e1's words, 2026-11-23 (ADR-362 slice 3), pinned by view-links.test.ts. */
export declare const VIEW_CREATE_DESCRIPTION: string;
/** e1's success line (2026-11-23), before the "open it in pica:" line. */
export declare function viewCreatedLine(n: number, kind: "works" | "recordings" | "people"): string;
export declare class ViewLinkTools {
private pica;
constructor(pica: PicaClient);
getTools(): Array<{
definition: ToolDefinition;
executor: ToolExecutor;
}>;
private create;
}
//# sourceMappingURL=view-links.d.ts.map