UNPKG

@withpica/mcp-server

Version:

MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog

38 lines • 1.39 kB
/** * ADR-237 — Opt-in public handles + user-authored bio + avatar. * * Surfaces 7 tools backing the cross-org discovery model: * * Reads (scope: read:people): * - pica_users_find_by_handle — exact-match lookup (privacy-preserving) * - pica_users_get_my_profile — caller's own full profile * * Writes (scope: write:people): * - pica_users_set_handle — claim handle (rate-limited) * - pica_users_clear_handle — release handle * - pica_users_set_bio — write self-description * - pica_users_set_avatar_url — write avatar URL * - pica_users_import_bio_from_person — fan-out from people.biography * * `pica_collaborators_invite` (ADR-236) is separately extended to * accept `recipient: {kind: "handle"}` and resolves to email * server-side; that's wired in `./collaborators.ts`. */ import { PicaClient } from "@withpica/mcp-sdk"; import { ToolDefinition, ToolExecutor } from "./index.js"; export declare class UsersTools { private pica; constructor(pica: PicaClient); getTools(): Array<{ definition: ToolDefinition; executor: ToolExecutor; }>; private findByHandle; private setHandle; private clearHandle; private getMyProfile; private setBio; private setAvatarUrl; private importBioFromPerson; } //# sourceMappingURL=users.d.ts.map