@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
28 lines • 1.21 kB
TypeScript
/**
* Register-Set MCP Tool — ADR-259 (DAW capture thread)
*
* One tool, `pica_register_set`, that registers a captured DAW set in a single
* round-trip: it creates a work, a linked master recording, and a 100% org
* master split server-side via POST /api/admin/register-set. It replaces the
* five sequential calls the Ableton extension used to make (works_query →
* works_create → recordings_create → splits_list → splits_create).
*
* Duplicate handling: the server's own work-dedup gate (title+artist) is the
* backstop. On a duplicate the route returns 409 + existing_work_id, surfaced
* to the caller as an error — the client then offers add-version / complete.
*
* Org-scoping + the duplicate gate are enforced at the HTTP route layer.
* Pricing: FREE (ADR-162 deprecates credit gating as a user-facing concept).
*/
import { PicaClient } from "@withpica/mcp-sdk";
import type { ToolDefinition, ToolExecutor } from "./index.js";
export declare class RegisterTools {
private pica;
constructor(pica: PicaClient);
getTools(): Array<{
definition: ToolDefinition;
executor: ToolExecutor;
}>;
private set;
}
//# sourceMappingURL=register.d.ts.map