@withpica/mcp-server 2.57.0 → 2.58.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.
@@ -1 +1 @@
1
- {"version":3,"file":"changelog.generated.js","sourceRoot":"","sources":["../../src/lib/changelog.generated.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,yDAAyD;AAEzD,MAAM,CAAC,MAAM,YAAY,GAAG,64rIAA64rI,CAAC;AAC16rI,MAAM,CAAC,MAAM,YAAY,GAAG,sBAAsB,CAAC;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"changelog.generated.js","sourceRoot":"","sources":["../../src/lib/changelog.generated.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,yDAAyD;AAEzD,MAAM,CAAC,MAAM,YAAY,GAAG,sstIAAsstI,CAAC;AACnutI,MAAM,CAAC,MAAM,YAAY,GAAG,sBAAsB,CAAC;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC"}
@@ -43,7 +43,7 @@ export const SKILLS = {
43
43
  audience: "any agent connecting to PICA via MCP, especially on the first message of a session",
44
44
  tools_required: ["pica_get_agent_activity", "pica_dashboard_briefing", "pica_dashboard_attention", "pica_skill_list", "pica_report_issue"],
45
45
  output: "One-line identity announcement, then a standing reporting-discipline reminder, then ranked top-3 priorities with the named specialist skill per priority and one suggested next action.",
46
- body: "# first-session\n\nYour first move per session. Where `set-up-workspace` is the user-side counterpart that shapes the user's first move per account, `first-session` is the agent-side counterpart — it shapes how you orient yourself before doing any work for the user. Five phases: recognize who you are, set the reporting discipline, load the briefing + attention queue, rank the top priorities and route each to a specialist skill, then sweep tool errors on close-out.\n\nThis skill does NOT do the actual work (audit credits, register a work, prepare for sync). It names the right specialist skill per priority class and hands the steering wheel over. The user picks. This is the route, not the trip.\n\nRun this when the user's first message is an orientation phrase (`morning`, `where do I start`, `what should I do`, `open my workspace`) — not when they name a single concrete action like \"register work X\" or \"log a session for yesterday\". Task-specific prompts bypass orientation.\n\n## Phase 1 — Identity recognition\n\nCall `pica_get_agent_activity` once. Branch on the auth shape it returns:\n\n- **Grant-token caller** (`pica_grant_*` bearer) — agent identity is known. Announce in one line:\n > _\"I am [label], scopes: [scope_list], last active [Y], [N] tool calls in last 7d.\"_\n- **Cookie or raw API key** — the user is acting directly as themselves; no delegated agent. Announce:\n > _\"You're acting directly as [user]. If you'd like to delegate to a named agent later, `pica_create_agent_identity` is the path — session-auth only, done from the web.\"_\n- **OAuth gateway client** — identified by `clientInfo` (`client_name` + `client_version`) per the connector handshake. Announce:\n > _\"I am the [client_name] connector for [user].\"_\n\nOne line. No verbose intro. The point is the user knows who's at the keyboard before any work starts.\n\n## Phase 2 — Reporting-discipline opening note\n\nOne standing paragraph, read at the top of every first session:\n\n> Throughout this session, if a tool errors, returns inconsistent data, or you cannot find an affordance you expect — file via `pica_report_issue`. The team treats agent-filed issues as P0 signal and dedupes by signature. Worth filing: tool errors with stable repro, schema gaps (e.g. _\"no first-class studio field on recordings\"_), missing skills, surprising defaults. Include request IDs where available.\n\nThis sets the contract early. The agent doing the work is the user reporting the gap — surface that loop at the start, not at the end.\n\n## Phase 3 — Context load\n\nSequential reads, in this order:\n\n1. `pica_dashboard_briefing` — counts, critical-issues figure, recent activity, top priorities\n2. `pica_dashboard_attention` — actionable rows with entity IDs you can drill into\n\nThat's it for the default load. Do NOT call `pica_count_explain` unless the briefing totals look surprising — it's an on-demand drill-down, not a default first-call. If the briefing returns zero counts (fresh org, no works, no people), skip ranking and route directly to `set-up-workspace` instead.\n\n## Phase 4 — Priority ranking and routing\n\nThe skill body carries a static issue-class → specialist-skill mapping. Match it against live briefing data at runtime:\n\n| Briefing signal | Specialist skill |\n| ------------------------------------------- | ------------------------------------------------------- |\n| Works without credits | `audit-credits` |\n| Audio pending analysis | `prepare-for-sync` |\n| Unenriched or unverified writers | `close-the-loop` |\n| Works without registrations | `register-my-works` |\n| Recordings without splits | `set-recording-splits` |\n| Pending PRO statement to reconcile | `reconcile-pro-statement` (ADR-240) |\n| Unregistered co-write in recent email | `register-from-email` (ADR-240) |\n| Pre-staging tomorrow's sessions | `pre-stage-from-calendar` (ADR-240) |\n| Sync brief in Notion to match | `match-brief-from-notion` (ADR-240) |\n| Notion session log to capture | `log-from-notion` (ADR-240) |\n| Unconnected collaborators or stale contacts | _deferred — separate spec_ |\n| AI-disclosure or provenance gaps | _deferred — separate spec_ |\n\nRank by `count × value`. A 1,200-row \"works without credits\" beats a 3-row \"pending PRO statement\" on count alone — but a high-value statement (large royalty cheque) can outrank a long tail of low-value gaps. Use your judgement; explain the ranking briefly.\n\nPresent the top 3 with the specialist skill named verbatim:\n\n> _\"Top 3 priorities are [a], [b], [c]. Recommend starting with [a] — shall I run `[skill]` next?\"_\n\n**Filter the routing against currently-shipped skills.** Call `pica_skill_list` once after Phase 3. The ADR-240 skills (`reconcile-pro-statement`, `register-from-email`, `log-from-notion`, `pre-stage-from-calendar`, `match-brief-from-notion`) ship in sequence over multiple cycles; at any moment only some are live. If a priority matches an ADR-240 skill that `pica_skill_list` does NOT yet return, surface the priority anyway with the fallback line:\n\n> _\"this is on the roadmap (ADR-240); for now, the manual path is to [one-line summary of the workflow].\"_\n\nNo silent skips — surface the planned skill name so the user sees the trajectory.\n\nThe skill does NOT invoke the specialist itself. The user picks the next move; you wait.\n\n## Phase 5 — Close-out\n\nWhen the user signals end-of-session (\"that's it for today\", \"I'm done\", \"good night\", etc):\n\n> Before we close, sweep tool errors from this session not already in the queue. File via `pica_report_issue` with request IDs and the parameters shape. Anything you noticed that surprised you — surface it now.\n\nThis bookends Phase 2. The opening note told the agent what to file; the close-out makes the sweep deliberate.\n\n## What not to do\n\n- Don't run all phases as a wall of text. Phase 1 is one line. Phase 2 is one paragraph. Phase 3 is two tool calls. Phase 4 is three named priorities. Phase 5 is a single sweep at close-out.\n- Don't invoke the specialist skill automatically after Phase 4. Name it, offer it, wait for the user.\n- Don't call `pica_count_explain` by default. Only when briefing totals look surprising.\n- Don't route to ADR-240 skills that aren't in `pica_skill_list` yet without the fallback prose — silent skips break the discoverability contract.\n\n## Follow-on skills\n\nOrder depends on the top-ranked priority:\n\n- `audit-credits` — when \"works without credits\" tops the list\n- `prepare-for-sync` — when \"audio pending analysis\" tops the list\n- `close-the-loop` — when \"unenriched or unverified writers\" or per-work cleanup tops the list\n- `register-my-works` — when \"works without registrations\" tops the list\n- `set-recording-splits` — when \"recordings without splits\" tops the list\n- `set-up-workspace` — when the briefing is empty (fresh org, no catalog yet)\n- ADR-240 composition skills (`reconcile-pro-statement`, `register-from-email`, `log-from-notion`, `pre-stage-from-calendar`, `match-brief-from-notion`) — as they ship; check `pica_skill_list` first\n",
46
+ body: "# first-session\n\nYour first move per session. Where `set-up-workspace` is the user-side counterpart that shapes the user's first move per account, `first-session` is the agent-side counterpart — it shapes how you orient yourself before doing any work for the user. Five phases: recognize who you are, set the reporting discipline, load the briefing + attention queue, rank the top priorities and route each to a specialist skill, then sweep tool errors on close-out.\n\nThis skill does NOT do the actual work (audit credits, register a work, prepare for sync). It names the right specialist skill per priority class and hands the steering wheel over. The user picks. This is the route, not the trip.\n\nRun this when the user's first message is an orientation phrase (`morning`, `where do I start`, `what should I do`, `open my workspace`) — not when they name a single concrete action like \"register work X\" or \"log a session for yesterday\". Task-specific prompts bypass orientation.\n\n## Phase 1 — Identity recognition\n\nCall `pica_get_agent_activity` once. Branch on the auth shape it returns:\n\n- **Grant-token caller** (`pica_grant_*` bearer) — agent identity is known. Announce in one line:\n > _\"I am [label], scopes: [scope_list], last active [Y], [N] tool calls in last 7d.\"_\n- **Cookie or raw API key** — the user is acting directly as themselves; no delegated agent. Announce:\n > _\"You're acting directly as [user]. If you'd like to delegate to a named agent later, `pica_create_agent_identity` is the path — session-auth only, done from the web.\"_\n- **OAuth gateway client** — identified by `clientInfo` (`client_name` + `client_version`) per the connector handshake. Announce:\n > _\"I am the [client_name] connector for [user].\"_\n\nOne line. No verbose intro. The point is the user knows who's at the keyboard before any work starts.\n\n## Phase 2 — Reporting-discipline opening note\n\nOne standing paragraph, read at the top of every first session:\n\n> Throughout this session, if a tool errors, returns inconsistent data, or you cannot find an affordance you expect — file via `pica_report_issue`. The team treats agent-filed issues as P0 signal and dedupes by signature. Worth filing: tool errors with stable repro, schema gaps (e.g. _\"no first-class studio field on recordings\"_), missing skills, surprising defaults. Include request IDs where available.\n\nThis sets the contract early. The agent doing the work is the user reporting the gap — surface that loop at the start, not at the end.\n\n## Phase 3 — Context load\n\nSequential reads, in this order:\n\n1. `pica_dashboard_briefing` — counts, critical-issues figure, recent activity, top priorities\n2. `pica_dashboard_attention` — actionable rows with entity IDs you can drill into\n\nThat's it for the default load. Do NOT call `pica_count_explain` unless the briefing totals look surprising — it's an on-demand drill-down, not a default first-call. If the briefing returns zero counts (fresh org, no works, no people), skip ranking and route directly to `set-up-workspace` instead.\n\n## Phase 4 — Priority ranking and routing\n\nThe skill body carries a static issue-class → specialist-skill mapping. Match it against live briefing data at runtime:\n\n| Briefing signal | Specialist skill |\n| ------------------------------------------- | ------------------------------------------------------- |\n| Works without credits | `audit-credits` |\n| Audio pending analysis | `prepare-for-sync` |\n| Unenriched or unverified writers | `close-the-loop` |\n| Works without registrations | `register-my-works` |\n| Recordings without splits | `set-recording-splits` |\n| Pending PRO statement to reconcile | `reconcile-pro-statement` (ADR-240) |\n| Unregistered co-write in a recent source | `register-co-write` (ADR-240) |\n| Session to log or pre-stage | `log-session` (ADR-240) |\n| Sync brief to match | `match-sync-brief` (ADR-240) |\n| Unconnected collaborators or stale contacts | _deferred — separate spec_ |\n| AI-disclosure or provenance gaps | _deferred — separate spec_ |\n\nRank by `count × value`. A 1,200-row \"works without credits\" beats a 3-row \"pending PRO statement\" on count alone — but a high-value statement (large royalty cheque) can outrank a long tail of low-value gaps. Use your judgement; explain the ranking briefly.\n\nPresent the top 3 with the specialist skill named verbatim:\n\n> _\"Top 3 priorities are [a], [b], [c]. Recommend starting with [a] — shall I run `[skill]` next?\"_\n\n**Filter the routing against currently-shipped skills.** Call `pica_skill_list` once after Phase 3. The ADR-240 skills (`reconcile-pro-statement`, `register-co-write`, `log-session`, `match-sync-brief`) ship in sequence over multiple cycles; at any moment only some are live. If a priority matches an ADR-240 skill that `pica_skill_list` does NOT yet return, surface the priority anyway with the fallback line:\n\n> _\"this is on the roadmap (ADR-240); for now, the manual path is to [one-line summary of the workflow].\"_\n\nNo silent skips — surface the planned skill name so the user sees the trajectory.\n\nThe skill does NOT invoke the specialist itself. The user picks the next move; you wait.\n\n## Phase 5 — Close-out\n\nWhen the user signals end-of-session (\"that's it for today\", \"I'm done\", \"good night\", etc):\n\n> Before we close, sweep tool errors from this session not already in the queue. File via `pica_report_issue` with request IDs and the parameters shape. Anything you noticed that surprised you — surface it now.\n\nThis bookends Phase 2. The opening note told the agent what to file; the close-out makes the sweep deliberate.\n\n## What not to do\n\n- Don't run all phases as a wall of text. Phase 1 is one line. Phase 2 is one paragraph. Phase 3 is two tool calls. Phase 4 is three named priorities. Phase 5 is a single sweep at close-out.\n- Don't invoke the specialist skill automatically after Phase 4. Name it, offer it, wait for the user.\n- Don't call `pica_count_explain` by default. Only when briefing totals look surprising.\n- Don't route to ADR-240 skills that aren't in `pica_skill_list` yet without the fallback prose — silent skips break the discoverability contract.\n\n## Follow-on skills\n\nOrder depends on the top-ranked priority:\n\n- `audit-credits` — when \"works without credits\" tops the list\n- `prepare-for-sync` — when \"audio pending analysis\" tops the list\n- `close-the-loop` — when \"unenriched or unverified writers\" or per-work cleanup tops the list\n- `register-my-works` — when \"works without registrations\" tops the list\n- `set-recording-splits` — when \"recordings without splits\" tops the list\n- `set-up-workspace` — when the briefing is empty (fresh org, no catalog yet)\n- ADR-240 composition skills (`reconcile-pro-statement`, `register-co-write`, `log-session`, `match-sync-brief`) — as they ship; check `pica_skill_list` first\n",
47
47
  },
48
48
  "log-a-session": {
49
49
  name: "log-a-session",
@@ -1 +1 @@
1
- {"version":3,"file":"skills.generated.js","s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,8BAA8B,EAAC,uBAAuB,EAAC,mBAAmB,EAAC,2BAA2B,EAAC,2BAA2B,EAAC,uBAAuB,CAAC;QACxO,MAAM,EAAE,mIAAmI;QAC3I,IAAI,EAAE,i5HAAi5H;KACx5H;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,6PAA6P;QAC1Q,QAAQ,EAAE,CAAC,qBAAqB,EAAC,wBAAwB,EAAC,yBAAyB,EAAC,2CAA2C,EAAC,oBAAoB,EAAC,wBAAwB,EAAC,mBAAmB,CAAC;QAClM,QAAQ,EAAE,mEAAmE;QAC7E,cAAc,EAAE,CAAC,2BAA2B,EAAC,mBAAmB,EAAC,kCAAkC,EAAC,yBAAyB,EAAC,2BAA2B,EAAC,qBAAqB,EAAC,8BAA8B,EAAC,0BAA0B,EAAC,gBAAgB,EAAC,kBAAkB,EAAC,6BAA6B,CAAC;QAC5S,MAAM,EAAE,yQAAyQ;QACjR,IAAI,EAAE,+pPAA+pP;KACtqP;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA0B,CAAC,eAAe,EAAC,eAAe,EAAC,gBAAgB,EAAC,uBAAuB,EAAC,eAAe,EAAC,eAAe,EAAC,kBAAkB,EAAC,mBAAmB,EAAC,sBAAsB,EAAC,kBAAkB,CAAC,CAAC"}
@@ -17,5 +17,6 @@ export declare class ReportIssueTools {
17
17
  executor: ToolExecutor;
18
18
  }>;
19
19
  private reportIssue;
20
+ private formatRegressionLine;
20
21
  }
21
22
  //# sourceMappingURL=report-issue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"report-issue.d.ts","sourceRoot":"","sources":["../../src/tools/report-issue.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAWtE,qBAAa,gBAAgB;IAC3B,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;YAkC3D,WAAW;CAkE1B"}
1
+ {"version":3,"file":"report-issue.d.ts","sourceRoot":"","sources":["../../src/tools/report-issue.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAWtE,qBAAa,gBAAgB;IAC3B,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;YAkC3D,WAAW;IA0FzB,OAAO,CAAC,oBAAoB;CAiB7B"}
@@ -82,24 +82,54 @@ export class ReportIssueTools {
82
82
  // no longer typechecks. `result` IS the unwrapped payload; use directly.
83
83
  const data = result;
84
84
  const firstReport = (data.occurrence_count ?? 1) === 1;
85
- const narrative = firstReport
85
+ const baseNarrative = firstReport
86
86
  ? `Issue filed (${kind}). Signature ${data.signature?.slice(0, 8) ?? "unknown"}, severity ${data.severity ?? "info"}. Operators will see it in the intelligence feed.`
87
87
  : `Deduped into existing issue (${data.signature?.slice(0, 8) ?? "unknown"}). Now seen ${data.occurrence_count}× — severity ${data.severity ?? "info"}. Operators already notified.`;
88
+ // Surface regression context: the upsert RPC flips a resolved issue back
89
+ // to open and stamps regressed_at — let the agent tell the user this is
90
+ // a re-occurrence of a previously-fixed bug.
91
+ const regressionLine = data.is_regression
92
+ ? this.formatRegressionLine({
93
+ previously_resolved_at: data.previously_resolved_at,
94
+ previous_resolution_note: data.previous_resolution_note,
95
+ occurrence_count: data.occurrence_count,
96
+ })
97
+ : null;
98
+ const narrative = regressionLine
99
+ ? `${baseNarrative}\n\n${regressionLine}`
100
+ : baseNarrative;
101
+ const structuredData = {
102
+ id: data.id,
103
+ signature: data.signature,
104
+ status: data.status,
105
+ severity: data.severity,
106
+ occurrence_count: data.occurrence_count,
107
+ reported_kind: kind,
108
+ };
109
+ if (data.is_regression) {
110
+ structuredData.is_regression = true;
111
+ structuredData.previously_resolved_at = data.previously_resolved_at;
112
+ structuredData.previous_resolution_note = data.previous_resolution_note;
113
+ }
88
114
  return {
89
115
  content: [{ type: "text", text: narrative }],
90
116
  structuredContent: {
91
117
  kind: "pica.card.ops_issue_reported",
92
118
  version: 1,
93
- data: {
94
- id: data.id,
95
- signature: data.signature,
96
- status: data.status,
97
- severity: data.severity,
98
- occurrence_count: data.occurrence_count,
99
- reported_kind: kind,
100
- },
119
+ data: structuredData,
101
120
  },
102
121
  };
103
122
  }
123
+ formatRegressionLine(input) {
124
+ const resolvedDate = input.previously_resolved_at
125
+ ? input.previously_resolved_at.slice(0, 10)
126
+ : "unknown date";
127
+ const note = input.previous_resolution_note
128
+ ? `: ${input.previous_resolution_note}`
129
+ : "";
130
+ return (`Note: this is a regression of a previously-resolved issue ` +
131
+ `(fixed on ${resolvedDate}${note}). ` +
132
+ `Total occurrences now ${input.occurrence_count}.`);
133
+ }
104
134
  }
105
135
  //# sourceMappingURL=report-issue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"report-issue.js","sourceRoot":"","sources":["../../src/tools/report-issue.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAa7D,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,WAAW,GAAG;IAClB,cAAc;IACd,qBAAqB;IACrB,cAAc;IACd,YAAY;IACZ,cAAc;IACd,cAAc;CACf,CAAC;AAEF,MAAM,OAAO,gBAAgB;IACnB,IAAI,CAAa;IAEzB,YAAY,IAAgB;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAA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AK,CAAC,wBAAwB,EAAE;YACvC,CAAC,CAAC,EAAE,CAAC;QACP,OAAO,CACL,4DAA4D;YAC5D,aAAa,YAAY,GAAG,IAAI,KAAK;YACrC,yBAAyB,KAAK,CAAC,gBAAgB,GAAG,CACnD,CAAC;IACJ,CAAC;CACF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@withpica/mcp-server",
3
3
  "mcpName": "io.github.withpica/pica",
4
- "version": "2.57.0",
4
+ "version": "2.58.0",
5
5
  "description": "MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/withpica/pica",
7
7
  "source": "github"
8
8
  },
9
- "version": "2.57.0",
9
+ "version": "2.58.0",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@withpica/mcp-server",
14
- "version": "2.57.0",
14
+ "version": "2.58.0",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  }