@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
26 lines • 908 B
TypeScript
/**
* Agent Hygiene Tools — ADR-247 PR (a)
*
* `pica_introduce_self` — first-call identity declaration for
* OAuth-Bearer and raw-API-key callers. The router gate at
* `app/api/mcp/route.ts` refuses (Phase 2) or shadow-logs (Phase 1)
* any other tool call until this lands.
*
* Cookie-session and `pica_grant_*` callers are carved out at the
* router — their identity is already on file (auth.uid() / linked
* agent_identity row) and they do not need to declare.
*/
import { PicaClient } from "@withpica/mcp-sdk";
import { ToolDefinition, ToolExecutor } from "./index.js";
export declare class AgentHygieneTools {
private pica;
constructor(pica: PicaClient);
getTools(): Array<{
definition: ToolDefinition;
executor: ToolExecutor;
}>;
private introduceSelf;
private logOutcome;
private recentOutcomes;
}
//# sourceMappingURL=agent-hygiene.d.ts.map