@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
34 lines • 1.32 kB
TypeScript
/**
* Agreements Tools - MCP tools for managing agreements and contracts
*/
import { PicaClient } from "@withpica/mcp-sdk";
import { ToolDefinition, ToolExecutor } from "./index.js";
export declare class AgreementsTools {
private pica;
constructor(pica: PicaClient);
getTools(): Array<{
definition: ToolDefinition;
executor: ToolExecutor;
}>;
private queryAgreements;
private inspectAgreement;
/**
* Build the per-signer list from an ALREADY-FETCHED signatureStatus (the
* shape GET /admin/agreements/[id] embeds) instead of calling the
* /signatures route, which would recompute the identical status
* server-side (review fix, ADR-289 Wave B1). Only the display names are
* missing from that status — resolved per signer via people reads
* (typically 1-2 required signers per agreement; the SDK has no
* people-by-ids bulk read). A failed name lookup degrades that signer's
* name to null rather than dropping the row or failing the section.
*/
private deriveSignersFromStatus;
private createAgreement;
private createFromTemplate;
private updateAgreement;
private deleteAgreement;
private linkWork;
private sourceAgreementSplits;
private sendForSignature;
}
//# sourceMappingURL=agreements.d.ts.map