@withpica/mcp-server 2.40.0 → 2.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/dist/resources/agent-guide.d.ts +2 -2
  3. package/dist/resources/agent-guide.d.ts.map +1 -1
  4. package/dist/resources/agent-guide.js +54 -20
  5. package/dist/resources/agent-guide.js.map +1 -1
  6. package/dist/resources/index.d.ts.map +1 -1
  7. package/dist/resources/index.js +40 -14
  8. package/dist/resources/index.js.map +1 -1
  9. package/dist/resources/required-schemas.generated.d.ts +193 -12
  10. package/dist/resources/required-schemas.generated.d.ts.map +1 -1
  11. package/dist/resources/required-schemas.generated.js +432 -18
  12. package/dist/resources/required-schemas.generated.js.map +1 -1
  13. package/dist/resources/required-schemas.source.d.ts.map +1 -1
  14. package/dist/resources/required-schemas.source.js +228 -15
  15. package/dist/resources/required-schemas.source.js.map +1 -1
  16. package/dist/resources/welcome.d.ts +14 -0
  17. package/dist/resources/welcome.d.ts.map +1 -0
  18. package/dist/resources/welcome.js +26 -0
  19. package/dist/resources/welcome.js.map +1 -0
  20. package/dist/server-instructions.d.ts +23 -0
  21. package/dist/server-instructions.d.ts.map +1 -1
  22. package/dist/server-instructions.js +27 -0
  23. package/dist/server-instructions.js.map +1 -1
  24. package/dist/tools/agreement-types.js +1 -1
  25. package/dist/tools/agreement-types.js.map +1 -1
  26. package/dist/tools/agreements.js +3 -3
  27. package/dist/tools/agreements.js.map +1 -1
  28. package/dist/tools/audio-files.js +4 -4
  29. package/dist/tools/audio-files.js.map +1 -1
  30. package/dist/tools/dashboard.js +5 -5
  31. package/dist/tools/dashboard.js.map +1 -1
  32. package/dist/tools/discovery.d.ts.map +1 -1
  33. package/dist/tools/discovery.js +13 -2
  34. package/dist/tools/discovery.js.map +1 -1
  35. package/dist/tools/enrichment.js +6 -6
  36. package/dist/tools/enrichment.js.map +1 -1
  37. package/dist/tools/exports.js +5 -5
  38. package/dist/tools/exports.js.map +1 -1
  39. package/dist/tools/index.d.ts +1 -1
  40. package/dist/tools/index.d.ts.map +1 -1
  41. package/dist/tools/index.js +32 -1
  42. package/dist/tools/index.js.map +1 -1
  43. package/dist/tools/metadata.d.ts.map +1 -1
  44. package/dist/tools/metadata.js +32 -1
  45. package/dist/tools/metadata.js.map +1 -1
  46. package/dist/tools/multimedia.js +4 -4
  47. package/dist/tools/multimedia.js.map +1 -1
  48. package/dist/tools/notifications.d.ts +8 -0
  49. package/dist/tools/notifications.d.ts.map +1 -1
  50. package/dist/tools/notifications.js +145 -0
  51. package/dist/tools/notifications.js.map +1 -1
  52. package/dist/tools/settings.d.ts.map +1 -1
  53. package/dist/tools/settings.js +44 -5
  54. package/dist/tools/settings.js.map +1 -1
  55. package/dist/tools/storage-config.d.ts +13 -0
  56. package/dist/tools/storage-config.d.ts.map +1 -0
  57. package/dist/tools/storage-config.js +245 -0
  58. package/dist/tools/storage-config.js.map +1 -0
  59. package/package.json +3 -3
  60. package/server.json +2 -2
package/CHANGELOG.md CHANGED
@@ -11,6 +11,110 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  ## [Unreleased]
13
13
 
14
+ ## [2.44.0] - 2026-04-30
15
+
16
+ ### Added
17
+
18
+ - **ADR-214 Phase 2 — 6 new workflow schema resources.**
19
+ - `pica://schemas/audio-upload-required` (3-step chain: presigned →
20
+ complete → analyze + poll)
21
+ - `pica://schemas/enrichment-resolve-required` (resolve fan-out →
22
+ proposals_list → proposal_apply / reject)
23
+ - `pica://schemas/agreement-required`
24
+ - `pica://schemas/multimedia-required`
25
+ - `pica://schemas/export-required`
26
+ - `pica://schemas/claim-required`
27
+
28
+ Each derives required + recommended fields from the live tool input
29
+ schemas at build time and embeds CHECK enums from `schema-mirror.json`.
30
+ Agent-guide expanded with 6 workflow sections (4 net-new, 2 rewrites
31
+ with schema-URI footers); intro bumps "five core" → "eleven core" and
32
+ "~227 tools" → "~231 tools".
33
+
34
+ - **WorkflowTag union expanded to 12 values** (5 Phase 1 + 6 Phase 2 +
35
+ `infrastructure`). 28 tools migrated from `"infrastructure"` to their
36
+ Phase 2 workflow tag (4 audio-upload, 6 enrichment-resolve, 4
37
+ agreement, 4 multimedia, 5 export, 5 claim).
38
+ - **`schema-mirror.json` extended with 6 new tables** for Phase 2
39
+ CHECK-constraint enum resolution (agreements, discovered_artists,
40
+ discovered_credits, discovered_custody, enrichment_proposals,
41
+ multimedia_items). Verified live against prod project
42
+ `fwgcmjhlwevdnxgqmkmh`.
43
+ - **HTTP transport coverage** — `app/api/mcp/route.ts` `UI_RESOURCE_DEFS`
44
+ - `UI_RESOURCE_BODIES` extended with the 6 new schema URIs (matches
45
+ the Phase 1 pattern from PR #152). Per
46
+ `feedback_cross_transport_resource_coverage`.
47
+
48
+ ## [2.42.0] - 2026-04-30
49
+
50
+ ### Added
51
+
52
+ - **ADR-218 Primitive B — `pica_notifications_recent` tool.** New read-only
53
+ MCP tool (`risk: "safe"`, `retry_safe: true`) returning the cross-transport
54
+ `discovery_events` feed for the calling org, ordered by `created_at` DESC
55
+ with optional `unread_only: boolean` filter (per-surface dedup against
56
+ `seen_in`). Default limit 20, max 100. Distinct from `pica_notifications_list`
57
+ which targets the person-scoped `pica.notifications` system; this reads the
58
+ org-wide ledger that web bell + telegram dispatcher also share.
59
+ - **ADR-218 Primitive C — `pica_notification_acknowledge` tool.** New
60
+ mutating tool (`risk: "mutating"`, `retry_safe: true`) that appends `'mcp'`
61
+ to each event's `seen_in` array. Idempotent — re-acknowledging is a no-op.
62
+ Org-scoped server-side: out-of-org ids are silently skipped. Empty
63
+ `event_ids` returns a `VALIDATION_ERROR` without hitting the API.
64
+ - \*\*Both tools registered in the existing `notifications` taxonomy bucket
65
+ - TOOL*METADATA (`category: "comms"`)\*\* + tagged `workflows: "infrastructure"`
66
+ per ADR-214 W4. Ride alongside the legacy `pica_notifications*_`and`pica*notify*_` families — the agent disambiguates from the descriptions.
67
+
68
+ ### Changed
69
+
70
+ - **ADR-218 Primitive D — telegram dispatch dedup.** `telegramNotificationService.notifyEvent`
71
+ now consults `discovery_events` for an existing undismissed row matching
72
+ `(organisation_id, event_type, entity_id)` where `'mcp' = ANY(seen_in)`.
73
+ When found, suppresses the entire dispatch — closes the re-nag loop for
74
+ `until_resolved`-strategy alerts. Fresh `one_shot` events with no prior
75
+ row still fire normally. Lookup is fail-soft: any DB error logs a debug
76
+ and proceeds with dispatch (better an extra ping than a silently-dropped
77
+ alert).
78
+ - **ADR-218 Primitive A — `_meta.session_state` envelope gains optional
79
+ `notifications` field.** `fetchSessionCounts` propagates the cross-transport
80
+ unread summary from the catalog-stats response into the envelope. Missing
81
+ field on older API servers leaves the envelope key off (no fabricated zero).
82
+
83
+ ### Bumped
84
+
85
+ - `@withpica/mcp-sdk` peer to `^1.18.0` (`DiscoveriesResource.recent` +
86
+ `.acknowledge` methods + `NotificationsSummary` type on `CatalogStats`).
87
+ - `@withpica/mcp-utils` peer to `^1.14.0` (optional `notifications` field on
88
+ `SessionStateCounts` + exported `NotificationsSummary` type).
89
+
90
+ ## [2.41.0] - 2026-04-30
91
+
92
+ ### Added
93
+
94
+ - **ADR-210 P3 — `getAuthenticatedInstructions(slice)` + `getTrialEndingClause(slice)`
95
+ exports in `src/server-instructions.ts`.** New helpers that optionally append
96
+ a state-conditional trial-ending nudge to the authenticated handshake
97
+ instructions. The clause fires only when `billing_state === 'trial'` AND
98
+ `trial_days_remaining` is non-null AND `<= 3`; in all other cases the
99
+ function returns the unchanged base const. Pass `null` when no slice is
100
+ available — slice-less callers fail safe. Existing
101
+ `SERVER_INSTRUCTIONS_AUTHENTICATED` const is unchanged (parity with
102
+ `lib/mcp/server-instructions.ts` preserved).
103
+ - **New `TrialNudgeSlice` interface export.** Minimal shape consumed by
104
+ the helper: `{ billing_state: string; trial_days_remaining: number | null }`.
105
+ Structurally compatible with the platform's `OrgBillingSlice` type so
106
+ callers can pass either.
107
+
108
+ ### Note on stdio behaviour
109
+
110
+ The stdio binary in this release continues to call the equivalent of
111
+ `getAuthenticatedInstructions(null)` at boot (returns the unchanged const) —
112
+ trial state is not resolvable at boot without a `pica.catalogStats()` round
113
+ trip. Stdio agents still see live `trial_days_remaining` via
114
+ `_meta.session_state` on every write-tool result. A future phase may add
115
+ boot-time slice resolution; this release ships the helper itself so the
116
+ HTTP transport (`/api/mcp`) can use it immediately on a per-request basis.
117
+
14
118
  ## [2.40.0] - 2026-04-30
15
119
 
16
120
  ### Changed
@@ -10,6 +10,6 @@
10
10
  * Edits to this file are linted by scripts/lint-agent-guide.ts: every
11
11
  * `pica_*` token must resolve to a real tool in ToolRegistry.
12
12
  */
13
- export declare const AGENT_GUIDE_AUTHENTICATED = "# pica \u2014 agent guide\n\npica manages a music catalog: works (compositions), recordings (masters),\npeople (writers, performers, publishers), credits, agreements, exports.\nmulti-tenant per organisation; every write is org-scoped automatically.\n\nyou are signed in. ~227 tools are available. five core workflows below\ncover most of the surface; for anything not listed, fall back to\n`pica_discover` (mode: list_categories \u2192 list_tools) \u2192 `pica_tool_details`.\n\n## top workflows\n\n### register a new work\n1. `pica_works_create` \u2014 title required; iswc settable inline.\n2. `pica_credits_update` \u2014 batch; attach writer/composer credits.\n writer_split_percentage values must sum to 100 across all writer rows.\n see `pica://schemas/work-required` and `pica://schemas/work-credits-required`.\n\n### add a recording to an existing work\n- `pica_recordings_create` \u2014 title + artist_name + version_type required\n (version_type defaults to `master`). isrc and duration_ms are inline.\n- see `pica://schemas/recording-required`.\n\n### add audio to a recording\n1. `pica_audio_presigned_upload` \u2014 returns a signed url + token.\n2. uploader (browser, curl, sdk) PUTs the file to that url.\n3. `pica_audio_complete_upload` \u2014 registers the upload in the catalog.\n4. (optional) `pica_audio_analyze` \u2014 async; extracts bpm, key, mood, and\n transcribes lyrics via whisper.\n5. `pica_audio_inspect` (sections: [\"analysis\", \"status\"]) \u2014 poll for\n analysis results when you called step 4.\n\n### add recording credits\n- `pica_recording_credits_update` \u2014 batch. role enum is DISTINCT from\n work credits (MainArtist / FeaturedArtist / Producer / Engineer / etc.).\n- person_id is OPTIONAL \u2014 credits can carry just credited_name when the\n person isn't in the catalog yet.\n- see `pica://schemas/recording-credits-required`.\n\n### enrich existing metadata\n1. `pica_resolve_work` / `pica_resolve_person` / `pica_resolve_recording` \u2014\n tier A identifier matches apply directly; tier B fuzzy matches queue\n as proposals.\n2. `pica_enrichment_proposals_list` \u2014 view pending proposals.\n3. `pica_enrichment_proposal_apply` \u2014 commit a proposal you've reviewed.\n\n## common gotchas\n\n- **duration units differ.** `works.duration_seconds` (integer seconds);\n `recordings.duration_ms` (integer milliseconds);\n `audio_files.duration_seconds` (seconds again).\n- **no standalone identifier-assign tool.** iswc on works, isrc on\n recordings, ipi/pro/ppl/mcps numbers on people \u2014 all inline at create\n or update. there is no separate identifier tool family; don't search\n for one.\n- **two write surfaces for work collaborators.** `pica_credits_update`\n is canonical (writer/publisher splits + attestation). `work_collaborators`\n is a simpler legacy surface still used by some flows.\n- **recording credits are a separate surface** with a different role\n enum. use `pica_recording_credits_update`, not `pica_credits_update`.\n- **people identifier sprawl.** inline columns: `cae_ipi_number`,\n `ipn_number`, `prs_number`, `ppl_number`, `pro_member_number`,\n `mcps_member_number`. satellite (settable through the same create/update\n call): `isni`, `musicbrainz_id`, `wikidata_id`, `discogs_artist_id`,\n `imdb_id`, `viaf_id`, `deezer_artist_id`. treat as one inline surface.\n- **audio analysis is async + explicit.** `pica_audio_complete_upload`\n does NOT auto-trigger analysis. call `pica_audio_analyze` and poll.\n- **lyrics from analysis don't auto-write back to `works.lyrics`.**\n whisper transcripts land on the analysis row; copy is a separate step.\n- **org scoping + duplicate prevention.** every write is scoped to the\n caller's organisation. iswc and isrc duplicates are blocked at write.\n\n## schema resources (pre-flight before each workflow)\n\n- `pica://schemas/work-required` \u2014 backs `pica_works_create`.\n- `pica://schemas/recording-required` \u2014 backs `pica_recordings_create`.\n- `pica://schemas/work-credits-required` \u2014 backs `pica_credits_update`.\n- `pica://schemas/recording-credits-required` \u2014 backs `pica_recording_credits_update`.\n- `pica://schemas/person-required` \u2014 backs `pica_people_create`.\n\neach schema returns a json contract: required fields, recommended fields,\nCHECK enum values, companion-call orchestration, and an example payload.\n";
14
- export declare const AGENT_GUIDE_LOBBY = "# pica \u2014 sign in to begin\n\nyou are in lobby mode. three tools are available; the rest unlock after\nsign-in.\n\n## lobby tools\n- `pica_signup_start` \u2014 create a new organisation and get a magic link\n for first-time setup.\n- `pica_sign_in` \u2014 request a magic link for an existing user.\n- `pica_sign_out` \u2014 drop session.\n\n## to sign in\n1. ask the user for an email address.\n2. call `pica_signup_start` (new user) or `pica_sign_in` (returning).\n3. user clicks the magic link. on the next request, the catalog tool\n surface unlocks automatically \u2014 no config to refresh.\n\n## what unlocks after sign-in\n~227 tools across catalog (works, recordings, people, credits),\nenrichment, exports, agreements, multimedia, analytics, and audio. five\nrequired-fields schema resources at `pica://schemas/<workflow>-required`.\nthe full agent-guide replaces this lobby content.\n";
13
+ export declare const AGENT_GUIDE_AUTHENTICATED = "# pica \u2014 agent guide\n\npica manages a music catalog: works (compositions), recordings (masters),\npeople (writers, performers, publishers), credits, agreements, exports.\nmulti-tenant per organisation; every write is org-scoped automatically.\n\nyou are signed in. ~231 tools are available. eleven core workflows below\ncover most of the surface; for anything not listed, fall back to\n`pica_discover` (mode: list_categories \u2192 list_tools) \u2192 `pica_tool_details`.\n\n## top workflows\n\n### register a new work\n1. `pica_works_create` \u2014 title required; iswc settable inline.\n2. `pica_credits_update` \u2014 batch; attach writer/composer credits.\n writer_split_percentage values must sum to 100 across all writer rows.\n see `pica://schemas/work-required` and `pica://schemas/work-credits-required`.\n\n### add a recording to an existing work\n- `pica_recordings_create` \u2014 title + artist_name + version_type required\n (version_type defaults to `master`). isrc and duration_ms are inline.\n- see `pica://schemas/recording-required`.\n\n### add audio to a recording\n1. `pica_audio_presigned_upload` \u2014 returns a signed url + token.\n2. uploader (browser, curl, sdk) PUTs the file to that url.\n3. `pica_audio_complete_upload` \u2014 registers the upload in the catalog.\n4. (optional) `pica_audio_analyze` \u2014 async; extracts bpm, key, mood, and\n transcribes lyrics via whisper.\n5. `pica_audio_inspect` (sections: [\"analysis\", \"status\"]) \u2014 poll for\n analysis results when you called step 4.\n- see `pica://schemas/audio-upload-required`.\n\n### add recording credits\n- `pica_recording_credits_update` \u2014 batch. role enum is DISTINCT from\n work credits (MainArtist / FeaturedArtist / Producer / Engineer / etc.).\n- person_id is OPTIONAL \u2014 credits can carry just credited_name when the\n person isn't in the catalog yet.\n- see `pica://schemas/recording-credits-required`.\n\n### enrich existing metadata\n1. `pica_resolve_work` / `pica_resolve_person` / `pica_resolve_recording` \u2014\n tier A identifier matches apply directly; tier B fuzzy matches queue\n as proposals.\n2. `pica_enrichment_proposals_list` \u2014 view pending proposals.\n3. `pica_enrichment_proposal_apply` \u2014 commit a proposal you've reviewed.\n `pica_enrichment_proposal_reject` \u2014 dismiss with content-hash suppression.\n- see `pica://schemas/enrichment-resolve-required`.\n\n### create an agreement\n1. `pica_agreements_create` \u2014 title + agreement_type + other_party_name\n required. prefer counterparty_org_id (FK) over free-text other_party_name.\n2. `pica_agreements_link_work` \u2014 attach works (optional royalty_split per work).\n3. `pica_agreement_templates_render` \u2014 template-driven alternative.\n- see `pica://schemas/agreement-required`.\n\n### add multimedia\n- `pica_multimedia_create` \u2014 title + content_type required.\n- `pica_multimedia_link_youtube` \u2014 YouTube videos (auto-enriched).\n- `pica_multimedia_import_url` \u2014 external image / video URL (downloads\n into PICA storage).\n- `pica_multimedia_link_work` \u2014 attach to a work (relationship_type required).\n- see `pica://schemas/multimedia-required`.\n\n### export the catalog\n- one of: `pica_export_catalog_csv` (broadest, ungated) /\n `pica_export_song_registration` (CWR for PRO/CMO) /\n `pica_export_industry_ready` (publisher / label / sync) /\n `pica_export_catalog_asset_report` (CAR \u2014 finance / insurance / diligence) /\n `pica_export_ai_consent` (AI-consent matrix).\n- see `pica://schemas/export-required` for which export matches which destination.\n\n### claim a discovery\n1. `pica_discoveries_query` \u2014 list pending; row carries\n `type: 'credit' | 'custody' | 'artist'`.\n2. typed claim: `pica_claim_credit` / `pica_claim_custody` /\n `pica_claim_artist`. or `pica_discoveries_review` for generic accept/reject.\n- see `pica://schemas/claim-required`.\n\n## common gotchas\n\n- **duration units differ.** `works.duration_seconds` (integer seconds);\n `recordings.duration_ms` (integer milliseconds);\n `audio_files.duration_seconds` (seconds again).\n- **no standalone identifier-assign tool.** iswc, isrc, ipi/pro/etc.\n are all inline on the entity create/update \u2014 no separate tool family.\n- **two write surfaces for collaborators.** `pica_credits_update` is\n canonical for work splits; `pica_recording_credits_update` is the\n recording-side variant with a different role enum (MainArtist /\n FeaturedArtist / Producer / etc.). don't cross them.\n- **people identifiers \u2014 treat as one inline surface.** see\n `pica://schemas/person-required` for the full set (ipi / ipn / prs / ppl /\n pro / mcps / isni / musicbrainz / wikidata / discogs / imdb / viaf / deezer).\n- **audio analysis is async + explicit.** `pica_audio_complete_upload`\n does NOT auto-trigger analysis. call `pica_audio_analyze` and poll.\n- **lyrics from analysis don't auto-write back to `works.lyrics`.**\n whisper transcripts land on the analysis row; copy is a separate step.\n- **org scoping + duplicate prevention.** writes are org-scoped; iswc\n and isrc duplicates are blocked at write.\n\n## schema resources (pre-flight before each workflow)\n\n- `pica://schemas/work-required` \u2014 backs `pica_works_create`.\n- `pica://schemas/recording-required` \u2014 backs `pica_recordings_create`.\n- `pica://schemas/work-credits-required` \u2014 backs `pica_credits_update`.\n- `pica://schemas/recording-credits-required` \u2014 backs `pica_recording_credits_update`.\n- `pica://schemas/person-required` \u2014 backs `pica_people_create`.\n- `pica://schemas/audio-upload-required` \u2014 3-step audio chain.\n- `pica://schemas/enrichment-resolve-required` \u2014 resolve \u2192 proposals chain.\n- `pica://schemas/agreement-required` \u2014 backs `pica_agreements_create`.\n- `pica://schemas/multimedia-required` \u2014 backs `pica_multimedia_create`.\n- `pica://schemas/export-required` \u2014 five export destinations.\n- `pica://schemas/claim-required` \u2014 three discovery claim verbs.\n\neach schema returns a json contract: required fields, recommended fields,\nCHECK enum values, companion-call orchestration, and an example payload.\n";
14
+ export declare const AGENT_GUIDE_LOBBY = "# pica \u2014 sign in to begin\n\nyou are in lobby mode. three tools are available; the rest unlock after\nsign-in.\n\n## lobby tools\n- `pica_signup_start` \u2014 create a new organisation and get a magic link\n for first-time setup.\n- `pica_sign_in` \u2014 request a magic link for an existing user.\n- `pica_sign_out` \u2014 drop session.\n\n## to sign in\n1. ask the user for an email address.\n2. call `pica_signup_start` (new user) or `pica_sign_in` (returning).\n3. user clicks the magic link. on the next request, the catalog tool\n surface unlocks automatically \u2014 no config to refresh.\n\n## what unlocks after sign-in\n~231 tools across catalog (works, recordings, people, credits),\nenrichment, exports, agreements, multimedia, analytics, and audio.\neleven required-fields schema resources at `pica://schemas/<workflow>-required`.\nthe full agent-guide replaces this lobby content.\n";
15
15
  //# sourceMappingURL=agent-guide.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-guide.d.ts","sourceRoot":"","sources":["../../src/resources/agent-guide.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,yBAAyB,2zIAkFrC,CAAC;AAEF,eAAO,MAAM,iBAAiB,24BAsB7B,CAAC"}
1
+ {"version":3,"file":"agent-guide.d.ts","sourceRoot":"","sources":["../../src/resources/agent-guide.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,yBAAyB,2lMAoHrC,CAAC;AAEF,eAAO,MAAM,iBAAiB,64BAsB7B,CAAC"}
@@ -17,7 +17,7 @@ pica manages a music catalog: works (compositions), recordings (masters),
17
17
  people (writers, performers, publishers), credits, agreements, exports.
18
18
  multi-tenant per organisation; every write is org-scoped automatically.
19
19
 
20
- you are signed in. ~227 tools are available. five core workflows below
20
+ you are signed in. ~231 tools are available. eleven core workflows below
21
21
  cover most of the surface; for anything not listed, fall back to
22
22
  \`pica_discover\` (mode: list_categories → list_tools) → \`pica_tool_details\`.
23
23
 
@@ -42,6 +42,7 @@ cover most of the surface; for anything not listed, fall back to
42
42
  transcribes lyrics via whisper.
43
43
  5. \`pica_audio_inspect\` (sections: ["analysis", "status"]) — poll for
44
44
  analysis results when you called step 4.
45
+ - see \`pica://schemas/audio-upload-required\`.
45
46
 
46
47
  ### add recording credits
47
48
  - \`pica_recording_credits_update\` — batch. role enum is DISTINCT from
@@ -56,32 +57,59 @@ cover most of the surface; for anything not listed, fall back to
56
57
  as proposals.
57
58
  2. \`pica_enrichment_proposals_list\` — view pending proposals.
58
59
  3. \`pica_enrichment_proposal_apply\` — commit a proposal you've reviewed.
60
+ \`pica_enrichment_proposal_reject\` — dismiss with content-hash suppression.
61
+ - see \`pica://schemas/enrichment-resolve-required\`.
62
+
63
+ ### create an agreement
64
+ 1. \`pica_agreements_create\` — title + agreement_type + other_party_name
65
+ required. prefer counterparty_org_id (FK) over free-text other_party_name.
66
+ 2. \`pica_agreements_link_work\` — attach works (optional royalty_split per work).
67
+ 3. \`pica_agreement_templates_render\` — template-driven alternative.
68
+ - see \`pica://schemas/agreement-required\`.
69
+
70
+ ### add multimedia
71
+ - \`pica_multimedia_create\` — title + content_type required.
72
+ - \`pica_multimedia_link_youtube\` — YouTube videos (auto-enriched).
73
+ - \`pica_multimedia_import_url\` — external image / video URL (downloads
74
+ into PICA storage).
75
+ - \`pica_multimedia_link_work\` — attach to a work (relationship_type required).
76
+ - see \`pica://schemas/multimedia-required\`.
77
+
78
+ ### export the catalog
79
+ - one of: \`pica_export_catalog_csv\` (broadest, ungated) /
80
+ \`pica_export_song_registration\` (CWR for PRO/CMO) /
81
+ \`pica_export_industry_ready\` (publisher / label / sync) /
82
+ \`pica_export_catalog_asset_report\` (CAR — finance / insurance / diligence) /
83
+ \`pica_export_ai_consent\` (AI-consent matrix).
84
+ - see \`pica://schemas/export-required\` for which export matches which destination.
85
+
86
+ ### claim a discovery
87
+ 1. \`pica_discoveries_query\` — list pending; row carries
88
+ \`type: 'credit' | 'custody' | 'artist'\`.
89
+ 2. typed claim: \`pica_claim_credit\` / \`pica_claim_custody\` /
90
+ \`pica_claim_artist\`. or \`pica_discoveries_review\` for generic accept/reject.
91
+ - see \`pica://schemas/claim-required\`.
59
92
 
60
93
  ## common gotchas
61
94
 
62
95
  - **duration units differ.** \`works.duration_seconds\` (integer seconds);
63
96
  \`recordings.duration_ms\` (integer milliseconds);
64
97
  \`audio_files.duration_seconds\` (seconds again).
65
- - **no standalone identifier-assign tool.** iswc on works, isrc on
66
- recordings, ipi/pro/ppl/mcps numbers on peopleall inline at create
67
- or update. there is no separate identifier tool family; don't search
68
- for one.
69
- - **two write surfaces for work collaborators.** \`pica_credits_update\`
70
- is canonical (writer/publisher splits + attestation). \`work_collaborators\`
71
- is a simpler legacy surface still used by some flows.
72
- - **recording credits are a separate surface** with a different role
73
- enum. use \`pica_recording_credits_update\`, not \`pica_credits_update\`.
74
- - **people identifier sprawl.** inline columns: \`cae_ipi_number\`,
75
- \`ipn_number\`, \`prs_number\`, \`ppl_number\`, \`pro_member_number\`,
76
- \`mcps_member_number\`. satellite (settable through the same create/update
77
- call): \`isni\`, \`musicbrainz_id\`, \`wikidata_id\`, \`discogs_artist_id\`,
78
- \`imdb_id\`, \`viaf_id\`, \`deezer_artist_id\`. treat as one inline surface.
98
+ - **no standalone identifier-assign tool.** iswc, isrc, ipi/pro/etc.
99
+ are all inline on the entity create/update no separate tool family.
100
+ - **two write surfaces for collaborators.** \`pica_credits_update\` is
101
+ canonical for work splits; \`pica_recording_credits_update\` is the
102
+ recording-side variant with a different role enum (MainArtist /
103
+ FeaturedArtist / Producer / etc.). don't cross them.
104
+ - **people identifiers treat as one inline surface.** see
105
+ \`pica://schemas/person-required\` for the full set (ipi / ipn / prs / ppl /
106
+ pro / mcps / isni / musicbrainz / wikidata / discogs / imdb / viaf / deezer).
79
107
  - **audio analysis is async + explicit.** \`pica_audio_complete_upload\`
80
108
  does NOT auto-trigger analysis. call \`pica_audio_analyze\` and poll.
81
109
  - **lyrics from analysis don't auto-write back to \`works.lyrics\`.**
82
110
  whisper transcripts land on the analysis row; copy is a separate step.
83
- - **org scoping + duplicate prevention.** every write is scoped to the
84
- caller's organisation. iswc and isrc duplicates are blocked at write.
111
+ - **org scoping + duplicate prevention.** writes are org-scoped; iswc
112
+ and isrc duplicates are blocked at write.
85
113
 
86
114
  ## schema resources (pre-flight before each workflow)
87
115
 
@@ -90,6 +118,12 @@ cover most of the surface; for anything not listed, fall back to
90
118
  - \`pica://schemas/work-credits-required\` — backs \`pica_credits_update\`.
91
119
  - \`pica://schemas/recording-credits-required\` — backs \`pica_recording_credits_update\`.
92
120
  - \`pica://schemas/person-required\` — backs \`pica_people_create\`.
121
+ - \`pica://schemas/audio-upload-required\` — 3-step audio chain.
122
+ - \`pica://schemas/enrichment-resolve-required\` — resolve → proposals chain.
123
+ - \`pica://schemas/agreement-required\` — backs \`pica_agreements_create\`.
124
+ - \`pica://schemas/multimedia-required\` — backs \`pica_multimedia_create\`.
125
+ - \`pica://schemas/export-required\` — five export destinations.
126
+ - \`pica://schemas/claim-required\` — three discovery claim verbs.
93
127
 
94
128
  each schema returns a json contract: required fields, recommended fields,
95
129
  CHECK enum values, companion-call orchestration, and an example payload.
@@ -112,9 +146,9 @@ sign-in.
112
146
  surface unlocks automatically — no config to refresh.
113
147
 
114
148
  ## what unlocks after sign-in
115
- ~227 tools across catalog (works, recordings, people, credits),
116
- enrichment, exports, agreements, multimedia, analytics, and audio. five
117
- required-fields schema resources at \`pica://schemas/<workflow>-required\`.
149
+ ~231 tools across catalog (works, recordings, people, credits),
150
+ enrichment, exports, agreements, multimedia, analytics, and audio.
151
+ eleven required-fields schema resources at \`pica://schemas/<workflow>-required\`.
118
152
  the full agent-guide replaces this lobby content.
119
153
  `;
120
154
  //# sourceMappingURL=agent-guide.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-guide.js","sourceRoot":"","sources":["../../src/resources/agent-guide.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFxC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBhC,CAAC"}
1
+ {"version":3,"file":"agent-guide.js","sourceRoot":"","sources":["../../src/resources/agent-guide.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHxC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAY/C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAM5C,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;CACJ;AAED,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC;AAEjC,qBAAa,gBAAgB;IA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AI,kBAAkB,EAAE;IAyLrC;;OAEG;IACG,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAsJ7C;;OAEG;IACH,OAAO,CAAC,cAAc;IA6BtB;;OAEG;YACW,YAAY;IA4B1B;;OAEG;YACW,aAAa;IA4B3B;;OAEG;YACW,iBAAiB;IA2B/B;;OAEG;YACW,eAAe;IAoD7B;;OAEG;YACW,gBAAgB;IAc9B;;OAEG;YACW,mBAAmB;IAcjC;;OAEG;YACW,eAAe;CAa9B"}
@@ -3,7 +3,8 @@ import { ResourceError } from "@withpica/mcp-utils";
3
3
  import { readFileSync } from "fs";
4
4
  import { join } from "path";
5
5
  import { WITHPICA_PRIMER } from "./llms-primer.js";
6
- import { AGENT_GUIDE_AUTHENTICATED, AGENT_GUIDE_LOBBY, } from "./agent-guide.js";
6
+ import { WELCOME_MARKDOWN } from "./welcome.js";
7
+ import { AGENT_GUIDE_AUTHENTICATED, AGENT_GUIDE_LOBBY } from "./agent-guide.js";
7
8
  import { REQUIRED_SCHEMAS } from "./required-schemas.generated.js";
8
9
  import { UPLOAD_HTML } from "../apps/upload.js";
9
10
  import { DOWNLOAD_HTML } from "../apps/download.js";
@@ -122,6 +123,36 @@ export class ResourceRegistry {
122
123
  name: "Required Fields — Register a Person",
123
124
  description: "Required + recommended fields for pica_people_create (writers, performers, publishers; identifiers settable inline).",
124
125
  mimeType: "application/json",
126
+ }, {
127
+ uri: "pica://schemas/audio-upload-required",
128
+ name: "Required Fields — Upload Audio (3-Step Chain)",
129
+ description: "Required fields per step of the audio-upload chain (pica_audio_presigned_upload → pica_audio_complete_upload → pica_audio_analyze + poll), plus audio_files file_type / classification CHECK enums.",
130
+ mimeType: "application/json",
131
+ }, {
132
+ uri: "pica://schemas/enrichment-resolve-required",
133
+ name: "Required Fields — Run Enrichment",
134
+ description: "Required fields for pica_resolve_work / _person / _recording and the proposals review chain (list → apply / reject). Includes enrichment_proposals entity_type / status / proposal_action enums.",
135
+ mimeType: "application/json",
136
+ }, {
137
+ uri: "pica://schemas/agreement-required",
138
+ name: "Required Fields — Create an Agreement",
139
+ description: "Required + recommended fields for pica_agreements_create plus link-work and template-render companions. Includes agreements agreement_type / status / other_party_type CHECK enums.",
140
+ mimeType: "application/json",
141
+ }, {
142
+ uri: "pica://schemas/multimedia-required",
143
+ name: "Required Fields — Add Multimedia",
144
+ description: "Required fields for pica_multimedia_create and the import / YouTube / link-work companions. Includes multimedia_items content_type / classification CHECK enums.",
145
+ mimeType: "application/json",
146
+ }, {
147
+ uri: "pica://schemas/export-required",
148
+ name: "Required Fields — Export the Catalog",
149
+ description: "Five export destinations (CSV, song-registration, industry-ready, CAR, AI-consent) with destination guidance.",
150
+ mimeType: "application/json",
151
+ }, {
152
+ uri: "pica://schemas/claim-required",
153
+ name: "Required Fields — Claim a Discovery",
154
+ description: "Required fields for pica_discoveries_query and the typed claim verbs (credit / custody / artist), plus the generic discoveries_review surface. Includes discovered_credits / _custody / _artists status + match_basis + custody_type CHECK enums.",
155
+ mimeType: "application/json",
125
156
  });
126
157
  return resources;
127
158
  }
@@ -136,18 +167,7 @@ export class ResourceRegistry {
136
167
  {
137
168
  uri: "pica://welcome",
138
169
  mimeType: "text/markdown",
139
- text: "# welcome to PICA\n\n" +
140
- "PICA manages your music catalog — works, recordings, credits, agreements, and more.\n\n" +
141
- "## get started\n\n" +
142
- 'Say **"sign me in"** and provide your email address. ' +
143
- "You'll receive a magic link — click it, and all tools unlock automatically.\n\n" +
144
- "No API key needed. No config files. Just talk.\n\n" +
145
- "## what you can do after signing in\n\n" +
146
- "- Add and manage works, recordings, and credits\n" +
147
- "- Enrich metadata from Spotify, MusicBrainz, MLC, and more\n" +
148
- "- Generate exports (CSV, NRO, CAR reports)\n" +
149
- "- Track agreements and splits\n" +
150
- "- Search your catalog and get health reports\n",
170
+ text: WELCOME_MARKDOWN,
151
171
  },
152
172
  ],
153
173
  };
@@ -244,7 +264,13 @@ export class ResourceRegistry {
244
264
  case "pica://schemas/recording-required":
245
265
  case "pica://schemas/work-credits-required":
246
266
  case "pica://schemas/recording-credits-required":
247
- case "pica://schemas/person-required": {
267
+ case "pica://schemas/person-required":
268
+ case "pica://schemas/audio-upload-required":
269
+ case "pica://schemas/enrichment-resolve-required":
270
+ case "pica://schemas/agreement-required":
271
+ case "pica://schemas/multimedia-required":
272
+ case "pica://schemas/export-required":
273
+ case "pica://schemas/claim-required": {
248
274
  const key = uri.replace("pica://schemas/", "");
249
275
  const body = REQUIRED_SCHEMAS[key];
250
276
  if (!body)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAS7D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,IAAI,EAAW,MAAM,MAAM,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAmBjE,MAAM,OAAO,gBAAgB;IACnB,IAAI,CAAoB;IACxB,MAAM,CAAgB;IAE9B,YAAY,IAAuB,EAAE,MAAqB;QACxD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,aAAa;QACX,MAAM,SAAS,GAAyB;YACtC;gBACE,GAAG,EAAE,gBAA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