@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
27 lines • 1.14 kB
TypeScript
/**
* ADR-356 — switch which of your catalogues a connection works in.
*
* pica_catalogue_current reads where the connection works; pica_catalogue_switch
* changes it. Both call /api/admin/catalogues/** (PICA's
* lib/services/catalogue-switch.ts), which holds the rules: the switch is
* stored on the server against the connection, only for catalogues the person
* belongs to, re-checked on every call, and only on a connection given
* "switch between the catalogues you belong to" on the connect screen. These
* tools pass a refusal on as PICA words it.
*
* Neither is on ChatGPT's curated list (no `hosts`, ADR-356 D7): a ChatGPT
* connection is never given the grant, so it stays in its own catalogue.
*/
import { type PicaClient } from "@withpica/mcp-sdk";
import type { ToolDefinition, ToolExecutor } from "./index.js";
export declare class CatalogueSwitchTools {
private readonly pica;
constructor(pica: PicaClient);
getTools(): Array<{
definition: ToolDefinition;
executor: ToolExecutor;
}>;
private current;
private switchTo;
}
//# sourceMappingURL=catalogue-switch.d.ts.map