UNPKG

@withpica/mcp-server

Version:

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

27 lines • 1.46 kB
// Copyright (c) 2025-2026 Withpica Ltd. All rights reserved. export function buildRecordingAttributionHints(recording) { const r = (recording ?? {}); const hints = []; const ownershipUnset = r.ownership_percentage === null || r.ownership_percentage === undefined; if (ownershipUnset) { hints.push({ gap: "recording_ownership_unset", severity: "important", suggestion: "What % of this recording's master is owned by your org? Call pica_recordings_update with ownership_percentage:N (0-100). Skip if you hold no master stake.", }); } hints.push({ gap: "recording_no_credits", severity: "important", suggestion: "Who performed on this recording? Add performer / producer / engineer credits via pica_recording_credits_update — one call per credited person. Resolve names to person_id via pica_people_query first.", }); if (ownershipUnset) { hints.push({ gap: "recording_master_unclaimed", severity: "important", suggestion: "If the master is co-owned (label, co-producer, multi-party), record each owner's stake on the recording's chain via pica_recording_custody_assign (transfer_type 'assignment' with that owner's percentage) instead of just setting ownership_percentage. Same outcome, richer attribution.", }); } return hints; } //# sourceMappingURL=recording-attribution-hints.js.map