@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
36 lines • 1.49 kB
TypeScript
/**
* ADR-366 §4 slice 1 — "things PICA found" (/inspect/found) for an AI.
*
* - pica_found_query (read) — the review queue, the page's own read
* - pica_found_accept (write) — accept one finding (never a merge)
* - pica_found_dismiss (write) — dismiss one finding from any source
*
* All three go through /admin/found, the doors the page uses, so the page's
* role check and each source's own guards hold. A merge source's accept is
* refused for an app at the door (FOUND_MERGE_ON_PAGE), and so is choosing
* which of two values to keep (FOUND_CHOICE_ON_PAGE): the person does both on
* the page, signed in.
*/
import { PicaClient } from "@withpica/mcp-sdk";
import { ToolDefinition, ToolExecutor, ToolResult } from "./index.js";
type Outcome = Awaited<ReturnType<PicaClient["found"]["accept"]>>;
export declare class FoundTools {
private pica;
constructor(pica: PicaClient);
getTools(): Array<{
definition: ToolDefinition;
executor: ToolExecutor;
}>;
private query;
private accept;
private dismiss;
}
/**
* The door answers per id (applied / failed / skipped). For one id that is
* one answer: saved, not saved with the row's own words (another
* catalogue's id reads "not found in this organisation", never whether it
* exists elsewhere), or already decided.
*/
export declare function oneIdAnswer(outcome: Outcome, id: string, done: string): ToolResult;
export {};
//# sourceMappingURL=found.d.ts.map