@withpica/mcp-server 2.11.0 → 2.23.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 (96) hide show
  1. package/CHANGELOG.md +639 -1
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js +3 -2
  4. package/dist/config.js.map +1 -1
  5. package/dist/prompts/index.d.ts +48 -16
  6. package/dist/prompts/index.d.ts.map +1 -1
  7. package/dist/prompts/index.js +320 -607
  8. package/dist/prompts/index.js.map +1 -1
  9. package/dist/tools/agreement-types.d.ts.map +1 -1
  10. package/dist/tools/agreement-types.js +14 -129
  11. package/dist/tools/agreement-types.js.map +1 -1
  12. package/dist/tools/agreements.d.ts.map +1 -1
  13. package/dist/tools/agreements.js +11 -109
  14. package/dist/tools/agreements.js.map +1 -1
  15. package/dist/tools/assets.d.ts.map +1 -1
  16. package/dist/tools/assets.js +17 -257
  17. package/dist/tools/assets.js.map +1 -1
  18. package/dist/tools/audit.d.ts +19 -0
  19. package/dist/tools/audit.d.ts.map +1 -0
  20. package/dist/tools/audit.js +57 -0
  21. package/dist/tools/audit.js.map +1 -0
  22. package/dist/tools/bulk.d.ts +7 -1
  23. package/dist/tools/bulk.d.ts.map +1 -1
  24. package/dist/tools/bulk.js +24 -2
  25. package/dist/tools/bulk.js.map +1 -1
  26. package/dist/tools/credits.d.ts.map +1 -1
  27. package/dist/tools/credits.js +27 -13
  28. package/dist/tools/credits.js.map +1 -1
  29. package/dist/tools/discovery.d.ts.map +1 -1
  30. package/dist/tools/discovery.js +25 -0
  31. package/dist/tools/discovery.js.map +1 -1
  32. package/dist/tools/enrichment.d.ts +47 -0
  33. package/dist/tools/enrichment.d.ts.map +1 -1
  34. package/dist/tools/enrichment.js +416 -19
  35. package/dist/tools/enrichment.js.map +1 -1
  36. package/dist/tools/index.d.ts.map +1 -1
  37. package/dist/tools/index.js +17 -0
  38. package/dist/tools/index.js.map +1 -1
  39. package/dist/tools/labels.d.ts +20 -0
  40. package/dist/tools/labels.d.ts.map +1 -0
  41. package/dist/tools/labels.js +47 -0
  42. package/dist/tools/labels.js.map +1 -0
  43. package/dist/tools/metadata.d.ts.map +1 -1
  44. package/dist/tools/metadata.js +93 -0
  45. package/dist/tools/metadata.js.map +1 -1
  46. package/dist/tools/multimedia.d.ts.map +1 -1
  47. package/dist/tools/multimedia.js +86 -11
  48. package/dist/tools/multimedia.js.map +1 -1
  49. package/dist/tools/notes.d.ts.map +1 -1
  50. package/dist/tools/notes.js +4 -1
  51. package/dist/tools/notes.js.map +1 -1
  52. package/dist/tools/people.d.ts +228 -4
  53. package/dist/tools/people.d.ts.map +1 -1
  54. package/dist/tools/people.js +238 -262
  55. package/dist/tools/people.js.map +1 -1
  56. package/dist/tools/projects.d.ts +1 -0
  57. package/dist/tools/projects.d.ts.map +1 -1
  58. package/dist/tools/projects.js +188 -17
  59. package/dist/tools/projects.js.map +1 -1
  60. package/dist/tools/publishers.d.ts +15 -1
  61. package/dist/tools/publishers.d.ts.map +1 -1
  62. package/dist/tools/publishers.js +43 -9
  63. package/dist/tools/publishers.js.map +1 -1
  64. package/dist/tools/recordings.d.ts +53 -2
  65. package/dist/tools/recordings.d.ts.map +1 -1
  66. package/dist/tools/recordings.js +185 -122
  67. package/dist/tools/recordings.js.map +1 -1
  68. package/dist/tools/recovery-hints.d.ts.map +1 -1
  69. package/dist/tools/recovery-hints.js +49 -0
  70. package/dist/tools/recovery-hints.js.map +1 -1
  71. package/dist/tools/releases.d.ts +19 -1
  72. package/dist/tools/releases.d.ts.map +1 -1
  73. package/dist/tools/releases.js +538 -32
  74. package/dist/tools/releases.js.map +1 -1
  75. package/dist/tools/sessions.d.ts.map +1 -1
  76. package/dist/tools/sessions.js +42 -8
  77. package/dist/tools/sessions.js.map +1 -1
  78. package/dist/tools/settings.d.ts +4 -0
  79. package/dist/tools/settings.d.ts.map +1 -1
  80. package/dist/tools/settings.js +155 -1
  81. package/dist/tools/settings.js.map +1 -1
  82. package/dist/tools/share-links.d.ts.map +1 -1
  83. package/dist/tools/share-links.js +19 -53
  84. package/dist/tools/share-links.js.map +1 -1
  85. package/dist/tools/split-sheets.d.ts.map +1 -1
  86. package/dist/tools/split-sheets.js +3 -42
  87. package/dist/tools/split-sheets.js.map +1 -1
  88. package/dist/tools/team.d.ts.map +1 -1
  89. package/dist/tools/team.js +9 -4
  90. package/dist/tools/team.js.map +1 -1
  91. package/dist/tools/works.d.ts +27 -1
  92. package/dist/tools/works.d.ts.map +1 -1
  93. package/dist/tools/works.js +119 -219
  94. package/dist/tools/works.js.map +1 -1
  95. package/package.json +3 -2
  96. package/server.json +2 -2
@@ -1,6 +1,184 @@
1
1
  // Copyright (c) 2024-2026 Withpica Ltd. All rights reserved.
2
2
  import { formatSuccess, formatStructuredList, } from "@withpica/mcp-utils";
3
- import { formatEnrichmentResult } from "@withpica/mcp-utils";
3
+ // `formatEnrichmentResult` was used by the two person enrich executors
4
+ // before ADR-179 Phase 2 folded them into `pica_resolve_person`. The
5
+ // deprecated executors now return a structured `TOOL_DEPRECATED`
6
+ // response via `buildPersonDeprecationResponse` (see bottom of file)
7
+ // rather than calling the SDK enrich methods, so the import is gone.
8
+ /**
9
+ * Canonical source for the pica_people_create / pica_people_update input
10
+ * shape. Mirror of PEOPLE_CORE_WRITE_FIELDS + PEOPLE_SATELLITE_ROUTED_FIELDS
11
+ * in lib/services/people-admin/write-constants.ts. Keep these two in sync:
12
+ * if a property is added here it must be added to the allow-list (so the
13
+ * HTTP route lets it through) and — if it's a satellite field — to
14
+ * ENRICHMENT_SATELLITE_FIELDS (so the service routes it to person_enrichment).
15
+ *
16
+ * Exported for future bulk-tool reuse.
17
+ */
18
+ export const PEOPLE_WRITE_PROPERTIES = {
19
+ // names + identity
20
+ first_name: { type: "string", description: "First name" },
21
+ last_name: { type: "string", description: "Last name" },
22
+ middle_name: { type: "string", description: "Middle name" },
23
+ name: {
24
+ type: "string",
25
+ description: "Full name. Normally derived from first_name + last_name; set explicitly only for imports where the parts aren't separable.",
26
+ },
27
+ stage_name: {
28
+ type: "string",
29
+ description: "Primary stage / artist name (legacy singular)",
30
+ },
31
+ stage_names: {
32
+ type: "array",
33
+ items: { type: "string" },
34
+ description: "All stage / artist names (canonical plural)",
35
+ },
36
+ person_type: {
37
+ type: "array",
38
+ items: { type: "string" },
39
+ description: "Person classification array (e.g. ['individual'], ['business']). Canonical column — `type` is a deprecated duplicate and will be rejected.",
40
+ },
41
+ biography: { type: "string", description: "Biography text" },
42
+ // contact
43
+ email: { type: "string", description: "Primary email address" },
44
+ emails: {
45
+ type: "array",
46
+ items: {
47
+ type: "object",
48
+ properties: {
49
+ email: { type: "string" },
50
+ label: { type: "string" },
51
+ primary: { type: "boolean" },
52
+ },
53
+ },
54
+ description: "Additional emails with label/primary metadata",
55
+ },
56
+ phone: { type: "string", description: "Phone number" },
57
+ website: { type: "string", description: "Website URL" },
58
+ social_media: {
59
+ type: "object",
60
+ description: "Social handles keyed by platform, e.g. { twitter: '@ada', instagram: 'ada_lovelace' }",
61
+ },
62
+ // roles + tags
63
+ roles: {
64
+ type: "array",
65
+ items: { type: "string" },
66
+ description: "Roles (e.g. ['artist', 'songwriter', 'producer']). Canonical column — `role` singular is a deprecated duplicate and will be rejected. Defaults to ['collaborator'] on create if omitted.",
67
+ },
68
+ tags: {
69
+ type: "array",
70
+ items: { type: "string" },
71
+ description: "Tags for categorisation",
72
+ },
73
+ // PRO / industry identifiers on people itself
74
+ cae_ipi_number: {
75
+ type: "string",
76
+ description: "CAE/IPI number (songwriter/publisher identifier, 9-11 digits)",
77
+ },
78
+ ipn_number: {
79
+ type: "string",
80
+ description: "IPN number (performer identifier)",
81
+ },
82
+ prs_number: { type: "string", description: "PRS member number" },
83
+ ppl_number: { type: "string", description: "PPL member number" },
84
+ mcps_member_number: {
85
+ type: "string",
86
+ description: "MCPS member number",
87
+ },
88
+ pro_name: {
89
+ type: "string",
90
+ description: "Performing rights organisation name (e.g. PRS, ASCAP, BMI, SACEM)",
91
+ },
92
+ pro_member_number: {
93
+ type: "string",
94
+ description: "Member number at the PRO named in pro_name",
95
+ },
96
+ default_publisher: {
97
+ type: "string",
98
+ description: "Default publisher name for this person",
99
+ },
100
+ default_publisher_ipi: {
101
+ type: "string",
102
+ description: "Default publisher's IPI number",
103
+ },
104
+ // business-contact fields
105
+ company: { type: "string", description: "Company / organisation name" },
106
+ position: {
107
+ type: "string",
108
+ description: "Job title / position at the company",
109
+ },
110
+ territory: {
111
+ type: "string",
112
+ description: "Primary territory / market (e.g. 'UK', 'US East Coast')",
113
+ },
114
+ relationship_strength: {
115
+ type: "integer",
116
+ description: "Relationship strength score (caller-defined scale)",
117
+ },
118
+ // contact prefs
119
+ email_preferences: {
120
+ type: "object",
121
+ description: "Email opt-in preferences, e.g. { monthly_digest: true, news_announcements: false }",
122
+ },
123
+ // presence
124
+ profile_image_url: {
125
+ type: "string",
126
+ description: "URL to profile image",
127
+ },
128
+ // notes
129
+ notes: { type: "string", description: "Internal notes" },
130
+ // ---- Satellite-routed (person_enrichment) ----
131
+ // These are real columns on public.person_enrichment, not on public.people.
132
+ // The service layer (lib/services/people-admin/enrichment-satellite.ts)
133
+ // fans them out via syncPersonEnrichmentSatellite. Reads surface them
134
+ // back on the person record via a PostgREST join (see person-admin/
135
+ // constants.ts PERSON_ALL_COLUMNS -> person_enrichment(*)).
136
+ isni: {
137
+ type: "string",
138
+ description: "ISNI identifier (16 digits). Stored on person_enrichment satellite.",
139
+ },
140
+ musicbrainz_id: {
141
+ type: "string",
142
+ description: "MusicBrainz artist ID (UUID). Stored on person_enrichment satellite.",
143
+ },
144
+ wikidata_id: {
145
+ type: "string",
146
+ description: "Wikidata entity ID (e.g. Q7259). Stored on person_enrichment satellite.",
147
+ },
148
+ discogs_artist_id: {
149
+ type: "string",
150
+ description: "Discogs artist ID. Stored on person_enrichment satellite.",
151
+ },
152
+ deezer_artist_id: {
153
+ type: "string",
154
+ description: "Deezer artist ID. Stored on person_enrichment satellite.",
155
+ },
156
+ date_of_birth: {
157
+ type: "string",
158
+ description: "Date of birth (ISO 8601, YYYY-MM-DD). Stored on person_enrichment satellite.",
159
+ },
160
+ gender: {
161
+ type: "string",
162
+ description: "Gender (free text; commonly 'male' / 'female' / 'non_binary'). Stored on person_enrichment satellite.",
163
+ },
164
+ nationality: {
165
+ type: "string",
166
+ description: "Nationality (free text; ISO country name preferred). Stored on person_enrichment satellite.",
167
+ },
168
+ birth_place: {
169
+ type: "string",
170
+ description: "Place of birth (free text). Stored on person_enrichment satellite.",
171
+ },
172
+ instruments: {
173
+ type: "array",
174
+ items: { type: "string" },
175
+ description: "Instruments played. Stored on person_enrichment satellite.",
176
+ },
177
+ career_start_year: {
178
+ type: "integer",
179
+ description: "Year career started (4-digit). Stored on person_enrichment satellite.",
180
+ },
181
+ };
4
182
  export class PeopleTools {
5
183
  pica;
6
184
  constructor(pica) {
@@ -76,139 +254,14 @@ export class PeopleTools {
76
254
  {
77
255
  definition: {
78
256
  name: "pica_people_create",
79
- description: "Create a new person record. IMPORTANT: Always call pica_people_query first to check for existing records — duplicate people cause credit and notification issues. " +
80
- "Any field from the Person schema can be passed — " +
81
- "the most commonly used fields are listed below. Additional fields " +
82
- "(e.g. pro_name, pro_member_number, mcps_member_number, " +
83
- "company, position, territory, social_media) " +
84
- "are also accepted. " +
257
+ description: "Create a new person record. IMPORTANT: always call pica_people_query first to check for an existing record — duplicate people break credits and notifications. " +
258
+ "External identifiers (isni, musicbrainz_id, wikidata_id, discogs_artist_id, deezer_artist_id) and biographical fields (date_of_birth, gender, nationality, birth_place, instruments, career_start_year) are stored on the person_enrichment satellite table set them here and the service fans them out. " +
259
+ "Deprecated duplicates that will be rejected: `type` (use `person_type`), `role` (use `roles`). " +
85
260
  "→ before: pica_people_query (check duplicates) → then: pica_people_enrich_isni (fill identifiers), pica_credits_update (add to work)",
86
261
  inputSchema: {
87
262
  type: "object",
88
- properties: {
89
- first_name: {
90
- type: "string",
91
- description: "First name (required)",
92
- },
93
- last_name: {
94
- type: "string",
95
- description: "Last name (required)",
96
- },
97
- roles: {
98
- type: "array",
99
- items: { type: "string" },
100
- description: "Roles (e.g. ['artist', 'songwriter', 'producer']). Defaults to ['collaborator'] if omitted.",
101
- },
102
- email: {
103
- type: "string",
104
- description: "Email address",
105
- },
106
- phone: {
107
- type: "string",
108
- description: "Phone number",
109
- },
110
- biography: {
111
- type: "string",
112
- description: "Biography text",
113
- },
114
- stage_name: {
115
- type: "string",
116
- description: "Primary stage/artist name",
117
- },
118
- stage_names: {
119
- type: "array",
120
- items: { type: "string" },
121
- description: "All stage/artist names",
122
- },
123
- isni: {
124
- type: "string",
125
- description: "ISNI identifier (16-digit)",
126
- },
127
- cae_ipi_number: {
128
- type: "string",
129
- description: "CAE/IPI number (songwriter/publisher identifier)",
130
- },
131
- ipn_number: {
132
- type: "string",
133
- description: "IPN number (performer identifier)",
134
- },
135
- prs_number: {
136
- type: "string",
137
- description: "PRS member number",
138
- },
139
- ppl_number: {
140
- type: "string",
141
- description: "PPL member number",
142
- },
143
- musicbrainz_id: {
144
- type: "string",
145
- description: "MusicBrainz artist ID",
146
- },
147
- wikidata_id: {
148
- type: "string",
149
- description: "Wikidata entity ID (e.g. Q12345)",
150
- },
151
- discogs_artist_id: {
152
- type: "string",
153
- description: "Discogs artist ID",
154
- },
155
- deezer_artist_id: {
156
- type: "string",
157
- description: "Deezer artist ID",
158
- },
159
- website: {
160
- type: "string",
161
- description: "Website URL",
162
- },
163
- date_of_birth: {
164
- type: "string",
165
- description: "Date of birth (ISO 8601)",
166
- },
167
- nationality: {
168
- type: "string",
169
- description: "Nationality",
170
- },
171
- gender: {
172
- type: "string",
173
- description: "Gender",
174
- },
175
- birth_place: {
176
- type: "string",
177
- description: "Place of birth",
178
- },
179
- instruments: {
180
- type: "array",
181
- items: { type: "string" },
182
- description: "Instruments played",
183
- },
184
- career_start_year: {
185
- type: "number",
186
- description: "Year career started",
187
- },
188
- tags: {
189
- type: "array",
190
- items: { type: "string" },
191
- description: "Tags for categorisation",
192
- },
193
- notes: {
194
- type: "string",
195
- description: "Internal notes",
196
- },
197
- profile_image_url: {
198
- type: "string",
199
- description: "URL to profile image",
200
- },
201
- default_publisher: {
202
- type: "string",
203
- description: "Default publisher name for this person",
204
- },
205
- default_publisher_ipi: {
206
- type: "string",
207
- description: "Default publisher's IPI number",
208
- },
209
- },
263
+ properties: PEOPLE_WRITE_PROPERTIES,
210
264
  required: ["first_name", "last_name"],
211
- additionalProperties: true,
212
265
  },
213
266
  },
214
267
  executor: this.createPerson.bind(this),
@@ -216,9 +269,10 @@ export class PeopleTools {
216
269
  {
217
270
  definition: {
218
271
  name: "pica_people_update",
219
- description: "Update an existing person record. Any field from the Person schema can be passed — " +
220
- "the most commonly used fields are listed below. Additional fields are also accepted. " +
221
- "If setting email, a 500 may mean the email already exists on another person record (check for duplicates). " +
272
+ description: "Update an existing person record. Pass only the fields to change. " +
273
+ "External identifiers (isni, musicbrainz_id, wikidata_id, discogs_artist_id, deezer_artist_id) and biographical fields (date_of_birth, gender, nationality, birth_place, instruments, career_start_year) are stored on the person_enrichment satellite — updating them here fans out through the service. " +
274
+ "Deprecated duplicates that will be rejected: `type` (use `person_type`), `role` (use `roles`). " +
275
+ "If setting email, a 500 may mean the email already exists on another person record (check via pica_people_query). " +
222
276
  "→ then: pica_people_inspect (verify changes persisted)",
223
277
  inputSchema: {
224
278
  type: "object",
@@ -227,129 +281,9 @@ export class PeopleTools {
227
281
  type: "string",
228
282
  description: "Person ID (required)",
229
283
  },
230
- first_name: {
231
- type: "string",
232
- description: "First name",
233
- },
234
- last_name: {
235
- type: "string",
236
- description: "Last name",
237
- },
238
- roles: {
239
- type: "array",
240
- items: { type: "string" },
241
- description: "Roles (e.g. ['artist', 'songwriter', 'producer'])",
242
- },
243
- email: {
244
- type: "string",
245
- description: "Email address",
246
- },
247
- phone: {
248
- type: "string",
249
- description: "Phone number",
250
- },
251
- biography: {
252
- type: "string",
253
- description: "Biography text",
254
- },
255
- stage_name: {
256
- type: "string",
257
- description: "Primary stage/artist name",
258
- },
259
- stage_names: {
260
- type: "array",
261
- items: { type: "string" },
262
- description: "All stage/artist names",
263
- },
264
- isni: {
265
- type: "string",
266
- description: "ISNI identifier (16-digit)",
267
- },
268
- cae_ipi_number: {
269
- type: "string",
270
- description: "CAE/IPI number (songwriter/publisher identifier)",
271
- },
272
- ipn_number: {
273
- type: "string",
274
- description: "IPN number (performer identifier)",
275
- },
276
- prs_number: {
277
- type: "string",
278
- description: "PRS member number",
279
- },
280
- ppl_number: {
281
- type: "string",
282
- description: "PPL member number",
283
- },
284
- musicbrainz_id: {
285
- type: "string",
286
- description: "MusicBrainz artist ID",
287
- },
288
- wikidata_id: {
289
- type: "string",
290
- description: "Wikidata entity ID (e.g. Q12345)",
291
- },
292
- discogs_artist_id: {
293
- type: "string",
294
- description: "Discogs artist ID",
295
- },
296
- deezer_artist_id: {
297
- type: "string",
298
- description: "Deezer artist ID",
299
- },
300
- website: {
301
- type: "string",
302
- description: "Website URL",
303
- },
304
- date_of_birth: {
305
- type: "string",
306
- description: "Date of birth (ISO 8601)",
307
- },
308
- nationality: {
309
- type: "string",
310
- description: "Nationality",
311
- },
312
- gender: {
313
- type: "string",
314
- description: "Gender",
315
- },
316
- birth_place: {
317
- type: "string",
318
- description: "Place of birth",
319
- },
320
- instruments: {
321
- type: "array",
322
- items: { type: "string" },
323
- description: "Instruments played",
324
- },
325
- career_start_year: {
326
- type: "number",
327
- description: "Year career started",
328
- },
329
- tags: {
330
- type: "array",
331
- items: { type: "string" },
332
- description: "Tags for categorisation",
333
- },
334
- notes: {
335
- type: "string",
336
- description: "Internal notes",
337
- },
338
- profile_image_url: {
339
- type: "string",
340
- description: "URL to profile image",
341
- },
342
- default_publisher: {
343
- type: "string",
344
- description: "Default publisher name for this person",
345
- },
346
- default_publisher_ipi: {
347
- type: "string",
348
- description: "Default publisher's IPI number",
349
- },
284
+ ...PEOPLE_WRITE_PROPERTIES,
350
285
  },
351
286
  required: ["id"],
352
- additionalProperties: true,
353
287
  },
354
288
  },
355
289
  executor: this.updatePerson.bind(this),
@@ -561,18 +495,60 @@ export class PeopleTools {
561
495
  return formatSuccess(`Person ${args.id} deleted successfully`);
562
496
  }
563
497
  /**
564
- * Enrich from ISNI
498
+ * ADR-179 Phase 2 deprecation path for the two per-source person
499
+ * enrichment tools. The tool definitions stay registered (so
500
+ * `tools/list` responses still surface them) but every call returns
501
+ * a structured `TOOL_DEPRECATED` error pointing at
502
+ * `pica_resolve_person`. This is the one-minor-version window
503
+ * described in ADR-179 Decision 2 — downstream clients with
504
+ * hardcoded names get a typed error and a suggested replacement
505
+ * call, not silent removal.
506
+ *
507
+ * Removal is scheduled for the next `@withpica/mcp-server` minor
508
+ * after Phase 4's publish; see the ADR's Phase 4 entry.
565
509
  */
566
510
  async enrichFromISNI(args) {
567
- const person = await this.pica.people.enrichFromISNI(args.id, args.isni);
568
- return formatEnrichmentResult("person", args.id, "ISNI", person);
511
+ return buildPersonDeprecationResponse("pica_people_enrich_isni", "isni", args.id);
569
512
  }
570
- /**
571
- * Enrich from MusicBrainz
572
- */
573
513
  async enrichFromMusicBrainz(args) {
574
- const person = await this.pica.people.enrichFromMusicBrainz(args.id, args.musicbrainz_id);
575
- return formatEnrichmentResult("person", args.id, "MusicBrainz", person);
514
+ return buildPersonDeprecationResponse("pica_people_enrich_musicbrainz", "musicbrainz", args.id);
576
515
  }
577
516
  }
517
+ /**
518
+ * ADR-179 Phase 2 deprecation envelope. Mirrors the work-side
519
+ * `buildDeprecationResponse` in enrichment.ts so both deprecation
520
+ * paths return the same shape:
521
+ * - `code`: "TOOL_DEPRECATED"
522
+ * - `jsonrpc_code`: -32070
523
+ * - `replacement`: tool name the agent should call instead
524
+ * - `suggested_call`: a concrete `{ tool, args }` payload the agent
525
+ * can execute via `pica_execute` without further thought
526
+ */
527
+ function buildPersonDeprecationResponse(deprecatedTool, source, personId) {
528
+ const suggested_call = {
529
+ tool: "pica_resolve_person",
530
+ args: {
531
+ person_id: personId ?? "<person_id>",
532
+ sources: [source],
533
+ },
534
+ };
535
+ return {
536
+ content: [
537
+ {
538
+ type: "text",
539
+ text: `TOOL_DEPRECATED: ${deprecatedTool} is deprecated. ` +
540
+ `Use pica_resolve_person(sources: ["${source}"]) instead. ` +
541
+ `This tool will be removed in the next @withpica/mcp-server minor version.`,
542
+ },
543
+ ],
544
+ structuredContent: {
545
+ code: "TOOL_DEPRECATED",
546
+ jsonrpc_code: -32070,
547
+ deprecated_tool: deprecatedTool,
548
+ replacement: "pica_resolve_person",
549
+ suggested_call,
550
+ },
551
+ isError: true,
552
+ };
553
+ }
578
554
  //# sourceMappingURL=people.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"people.js","sourceRoot":"","sources":["../../src/tools/people.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAQ7D,OAAO,EAEL,aAAa,EACb,oBAAoB,GAErB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,OAAO,WAAW;IACd,IAAI,CAAa;IAEzB,YAAY,IAAgB;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO;YACL;gBACE,UAAU,EAAE;oBACV,IAAI,EAAE,mBAAmB;oBACzB,WAAW,EACT,gDAAgD;wBAChD,6DAA6D;oBAC/D,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,KAAK,EAAE;gCACL,IAAI,EAAE,QAAQ;gCACd,WAAW,EAAE,+BAA+B;6BAC7C;4BACD,IAAI,EAAE;gCACJ,IAAI,EAAE,QAAQ;gCACd,WAAW,EACT,oDAAoD;6BACvD;4BACD,KAAK,EAAE;gCACL,IAAI,EAAE,QAAQ;gCACd,WAAW,EAAE,2BAA2B;6BACzC;4BACD,MAAM,EAAE;gCACN,IAAI,EAAE,QAAQ;gCACd,WAAW,EAAE,mBAAmB;6BACjC;yBACF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,CAAC,EAAE,CACR,CAAC;IACJ,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,SAAS,8BAA8B,CACrC,cAAsB,EACtB,MAA8B,EAC9B,QAA4B;IAE5B,MAAM,cAAc,GAAG;QACrB,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE;YACJ,SAAS,EAAE,QAAQ,IAAI,aAAa;YACpC,OAAO,EAAE,CAAC,MAAM,CAAC;SAClB;KACF,CAAC;IACF,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EACF,oBAAoB,cAAc,kBAAkB;oBACpD,sCAAsC,MAAM,eAAe;oBAC3D,2EAA2E;aAC9E;SACF;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE,iBAAiB;YACvB,YAAY,EAAE,CAAC,KAAK;YACpB,eAAe,EAAE,cAAc;YAC/B,WAAW,EAAE,qBAAqB;YAClC,cAAc;SACf;QACD,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"}
@@ -15,5 +15,6 @@ export declare class ProjectsTools {
15
15
  private createProject;
16
16
  private updateProject;
17
17
  private deleteProject;
18
+ private attachWorks;
18
19
  }
19
20
  //# sourceMappingURL=projects.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/tools/projects.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAGtE,qBAAa,aAAa;IACxB,OAAO,CAAC,IAAI,CAAa;gBAEb,IAAI,EAAE,UAAU;IAI5B,QAAQ,IAAI,KAAK,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;YA+G3D,YAAY;YAQZ,UAAU;YAKV,aAAa;YAMb,aAAa;YAMb,aAAa;CAI5B"}
1
+ {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/tools/projects.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAGtE,qBAAa,aAAa;IACxB,OAAO,CAAC,IAAI,CAAa;gBAEb,IAAI,EAAE,UAAU;IAI5B,QAAQ,IAAI,KAAK,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;YAwQ3D,YAAY;YAQZ,UAAU;YAKV,aAAa;YAMb,aAAa;YAMb,aAAa;YAKb,WAAW;CAyC1B"}