@withpica/mcp-server 2.56.0 → 2.56.1

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 (79) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +9 -9
  3. package/dist/lib/changelog.generated.d.ts +2 -2
  4. package/dist/lib/changelog.generated.d.ts.map +1 -1
  5. package/dist/lib/changelog.generated.js +2 -2
  6. package/dist/lib/changelog.generated.js.map +1 -1
  7. package/dist/prompts/index.js +1 -1
  8. package/dist/prompts/index.js.map +1 -1
  9. package/dist/resources/required-schemas.generated.d.ts +13 -1
  10. package/dist/resources/required-schemas.generated.d.ts.map +1 -1
  11. package/dist/resources/required-schemas.generated.js +23 -1
  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 +17 -1
  15. package/dist/resources/required-schemas.source.js.map +1 -1
  16. package/dist/server.js +2 -2
  17. package/dist/skills/skills.generated.js +1 -1
  18. package/dist/skills/skills.generated.js.map +1 -1
  19. package/dist/tools/agreement-types.d.ts.map +1 -1
  20. package/dist/tools/agreement-types.js +5 -1
  21. package/dist/tools/agreement-types.js.map +1 -1
  22. package/dist/tools/analytics.d.ts.map +1 -1
  23. package/dist/tools/analytics.js +6 -7
  24. package/dist/tools/analytics.js.map +1 -1
  25. package/dist/tools/assets.d.ts.map +1 -1
  26. package/dist/tools/assets.js +34 -2
  27. package/dist/tools/assets.js.map +1 -1
  28. package/dist/tools/collaborations.d.ts +19 -0
  29. package/dist/tools/collaborations.d.ts.map +1 -0
  30. package/dist/tools/collaborations.js +45 -0
  31. package/dist/tools/collaborations.js.map +1 -0
  32. package/dist/tools/collaborators.d.ts +8 -0
  33. package/dist/tools/collaborators.d.ts.map +1 -1
  34. package/dist/tools/collaborators.js +345 -8
  35. package/dist/tools/collaborators.js.map +1 -1
  36. package/dist/tools/credits.d.ts +1 -0
  37. package/dist/tools/credits.d.ts.map +1 -1
  38. package/dist/tools/credits.js +110 -1
  39. package/dist/tools/credits.js.map +1 -1
  40. package/dist/tools/dashboard.d.ts.map +1 -1
  41. package/dist/tools/dashboard.js +6 -1
  42. package/dist/tools/dashboard.js.map +1 -1
  43. package/dist/tools/discovery.d.ts.map +1 -1
  44. package/dist/tools/discovery.js +26 -1
  45. package/dist/tools/discovery.js.map +1 -1
  46. package/dist/tools/exports.d.ts.map +1 -1
  47. package/dist/tools/exports.js +14 -4
  48. package/dist/tools/exports.js.map +1 -1
  49. package/dist/tools/feedback.d.ts.map +1 -1
  50. package/dist/tools/feedback.js +58 -26
  51. package/dist/tools/feedback.js.map +1 -1
  52. package/dist/tools/index.d.ts.map +1 -1
  53. package/dist/tools/index.js +46 -2
  54. package/dist/tools/index.js.map +1 -1
  55. package/dist/tools/metadata.d.ts.map +1 -1
  56. package/dist/tools/metadata.js +115 -0
  57. package/dist/tools/metadata.js.map +1 -1
  58. package/dist/tools/onboarding.js +2 -2
  59. package/dist/tools/onboarding.js.map +1 -1
  60. package/dist/tools/recovery-hints.d.ts.map +1 -1
  61. package/dist/tools/recovery-hints.js +164 -0
  62. package/dist/tools/recovery-hints.js.map +1 -1
  63. package/dist/tools/report-issue.d.ts.map +1 -1
  64. package/dist/tools/report-issue.js +1 -0
  65. package/dist/tools/report-issue.js.map +1 -1
  66. package/dist/tools/settings.js +3 -3
  67. package/dist/tools/settings.js.map +1 -1
  68. package/dist/tools/telegram.js +1 -1
  69. package/dist/tools/telegram.js.map +1 -1
  70. package/dist/tools/users.d.ts +38 -0
  71. package/dist/tools/users.d.ts.map +1 -0
  72. package/dist/tools/users.js +192 -0
  73. package/dist/tools/users.js.map +1 -0
  74. package/dist/tools/works.d.ts +6 -0
  75. package/dist/tools/works.d.ts.map +1 -1
  76. package/dist/tools/works.js +108 -1
  77. package/dist/tools/works.js.map +1 -1
  78. package/package.json +8 -5
  79. package/server.json +2 -2
package/CHANGELOG.md CHANGED
@@ -11,6 +11,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  ## [Unreleased]
13
13
 
14
+ ## [2.56.1] - 2026-05-17
15
+
16
+ ### Changed
17
+
18
+ - Brand consistency: "PICA" → "withPICA" in package metadata, keywords (added `"withpica"`, `"music-catalog"`, `"music-rights"`), README, JSDoc headers, and customer-visible tool descriptions: `pica_delete_my_account`, `pica_gdpr_export_my_data` (description + completion message), `pica_telegram_connect`, `pica_onboarding_complete` (description + `intent_notes` field), and the `new-catalog-setup` prompt.
19
+ - Registered `pica_works_attest` and `pica_credits_send_for_attestation` in `REQUIRED_SCHEMAS_SOURCE` companion_calls (both tools declared workflow membership but weren't referenced — pre-existing drift caught by `lint:required-schemas`).
20
+
21
+ ### Fixed
22
+
23
+ - **`pica_submit_feedback` + `pica_physical_assets_create` no longer leak SDK errors to the user (PRs #453 + #457, 2026-05-15).**
24
+ Both executors had naked SDK calls — when the upstream API errored, the
25
+ framework's outer catch in `tools/index.ts` JSON-stringified the error
26
+ body straight to the conversation (`{error: "UNKNOWN_ERROR", message: "..."}`).
27
+ Wrap each SDK call in `try/catch`: on throw, fire-and-forget
28
+ `pica.opsIssues.reportIssue({ kind: "tool_failure", ... })` with the
29
+ underlying message + status + parameter shape in `context`, return
30
+ neutral text (`"couldn't <verb> right now — the team has been alerted."`).
31
+ Input-validation early-returns are preserved — those carry actionable
32
+ text and aren't server failures. PR #457 added `tool_failure` to the
33
+ `OpsIssueExplicitKind` taxonomy and retagged both wrappers (PR #453
34
+ shipped as `kind: "data_issue"` because `tool_failure` didn't exist
35
+ yet). 12 new unit tests across `feedback.test.ts` (new file) +
36
+ `assets.test.ts`. **Note:** the auto-audit upsert path is bypassed
37
+ because returning `isError: true` logs as `result_status: "success"`
38
+ (`tools/index.ts:1859`) — the executor reports manually instead.
39
+
40
+ ### Added
41
+
42
+ - **`pica_report_issue` accepts `kind: "tool_failure"` (PR #457, 2026-05-15).**
43
+ Sixth value in the agent-explicit kinds enum. Lets agents file SDK /
44
+ upstream-tool failures directly via the report-issue tool, mirroring
45
+ the new fail-quiet wrappers.
46
+
14
47
  ## [2.56.0] - 2026-05-14
15
48
 
16
49
  ### Added
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # PICA MCP Server
1
+ # withPICA MCP Server
2
2
 
3
- Model Context Protocol (MCP) server for the PICA Platform. Enables **any MCP-compatible AI assistant** to interact with your PICA music catalog.
3
+ Model Context Protocol (MCP) server for withPICA. Enables **any MCP-compatible AI assistant** to interact with your withPICA music catalog.
4
4
 
5
5
  ## What is MCP?
6
6
 
7
- The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely access external data and functionality. With this MCP server, any MCP-compatible AI can interact with your PICA catalog.
7
+ The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely access external data and functionality. With this MCP server, any MCP-compatible AI can interact with your withPICA catalog.
8
8
 
9
9
  ## Compatible AI Assistants
10
10
 
@@ -89,9 +89,9 @@ npm link
89
89
 
90
90
  ## Configuration
91
91
 
92
- ### Get Your PICA API Key
92
+ ### Get Your withPICA API Key
93
93
 
94
- 1. Log into PICA at https://withpica.com
94
+ 1. Log into withPICA at https://withpica.com
95
95
  2. Go to Settings → API Keys
96
96
  3. Generate a new API key
97
97
  4. Copy the key for use below
@@ -123,7 +123,7 @@ The setup process is similar for any MCP-compatible tool:
123
123
 
124
124
  1. Configure the MCP server command: `npx -y @withpica/mcp-server`
125
125
  2. Set the `PICA_API_KEY` environment variable
126
- 3. The AI can now access all PICA tools and resources
126
+ 3. The AI can now access all withPICA tools and resources
127
127
 
128
128
  ## Usage Examples
129
129
 
@@ -267,7 +267,7 @@ Make sure you've set the API key in your MCP server configuration:
267
267
  ## Architecture
268
268
 
269
269
  ```
270
- MCP Server for PICA
270
+ MCP Server for withPICA
271
271
  ├── Protocol Handler (MCP standard)
272
272
  ├── Authentication (API key)
273
273
  ├── Tools (24 AI-callable functions)
@@ -281,7 +281,7 @@ MCP Server for PICA
281
281
 
282
282
  ## Security
283
283
 
284
- - All requests require a valid PICA API key
284
+ - All requests require a valid withPICA API key
285
285
  - API keys are transmitted securely over HTTPS
286
286
  - Data access is scoped to your organization
287
287
  - No data is stored by the MCP server
@@ -301,4 +301,4 @@ MIT
301
301
  Built with:
302
302
 
303
303
  - [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/sdk) - MCP SDK
304
- - [@withpica/sdk](https://www.npmjs.com/package/@withpica/sdk) - PICA TypeScript SDK
304
+ - [@withpica/sdk](https://www.npmjs.com/package/@withpica/sdk) - withPICA TypeScript SDK