@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
30 lines • 1.26 kB
TypeScript
/**
* Publishers Tools - MCP tools for querying and creating publisher records.
*
* ADR-174 Phase 2 item 22: `pica_publishers_create` is stdio-only (no
* mcp-server-business counterpart) so the schema lives inline rather than
* going through `@withpica/mcp-utils/write-schemas`. The route-layer
* allow-list at `lib/services/publishers-write-constants.ts` is the
* authoritative enforcement boundary; this schema is the agent-facing
* contract and surfaces the same shape so the tool advertises every
* writable column on `global_publishers`.
*
* Pre-slice the schema accepted `{ name, ipi }` and every other DB
* column was invisible to agents. Post-slice all 8 audit-row-22
* Add-candidates are exposed, and the `ipi → ipi_number` rename is
* explicit (the route returns a PHANTOM_FIELD error with a rename hint
* if `ipi` is still sent).
*/
import { PicaClient } from "@withpica/mcp-sdk";
import { ToolDefinition, ToolExecutor } from "./index.js";
export declare class PublishersTools {
private pica;
constructor(pica: PicaClient);
getTools(): Array<{
definition: ToolDefinition;
executor: ToolExecutor;
}>;
private queryPublishers;
private createPublisher;
}
//# sourceMappingURL=publishers.d.ts.map