@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
47 lines • 2.03 kB
JavaScript
// Copyright (c) 2025-2026 Withpica Ltd. All rights reserved.
import { formatList } from "@withpica/mcp-utils";
export class CollaborationsTools {
pica;
constructor(pica) {
this.pica = pica;
}
getTools() {
return [
{
definition: {
name: "pica_collaborations_received",
scope: "read:people",
audiences: ["stdio", "http"],
tier: "read",
description: "Use when the user asks: 'what works am I credited on outside my catalog?', 'which collaborations have I accepted?', 'show me my external credits'. " +
"Recipient-side cross-org credit view. Returns works the caller is credited on in OTHER organisations — accepted invites from senders outside the caller's current org context. " +
"Complements pica_works_query (which is strictly org-scoped to the caller's own catalog).",
workflows: "infrastructure",
vernacular_kind: "creator-entry",
inputSchema: {
type: "object",
properties: {
limit: {
type: "number",
description: "Page size (default 50, max 200)",
},
offset: {
type: "number",
description: "Pagination offset (default 0)",
},
},
},
},
executor: this.received.bind(this),
},
];
}
async received(args) {
const result = await this.pica.collaborations.received({
limit: args.limit,
offset: args.offset,
});
return formatList(result.works, { total: result.total });
}
}
//# sourceMappingURL=collaborations.js.map