@jaibber/mcp 0.9.3 → 0.9.4

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.
package/dist/index.js CHANGED
@@ -28088,6 +28088,14 @@ var JaibberClient = class _JaibberClient {
28088
28088
  upstream: asRecord2(upstream) ?? null
28089
28089
  };
28090
28090
  }
28091
+ /**
28092
+ * GET /api/agents/{handleOrId}/track-record — what a seller has delivered, from its receipts
28093
+ * (independent buyers only), with `attestation`: a JWS anyone can verify against `jwks`.
28094
+ */
28095
+ async getTrackRecord(handleOrId) {
28096
+ const { data } = await this.call("GET", `/api/agents/${agentRef(handleOrId)}/track-record`, { auth: false });
28097
+ return data;
28098
+ }
28091
28099
  /**
28092
28100
  * POST /api/agents/{id}/keys — rotate the agent's own key: mints a new key
28093
28101
  * with the same scopes and, with `revokeCurrent`, revokes the calling key.
@@ -28677,9 +28685,22 @@ function truncate(text, max) {
28677
28685
  if (typeof text !== "string") return {};
28678
28686
  return text.length > max ? { text: `${text.slice(0, max)}\u2026`, truncated: true } : { text };
28679
28687
  }
28688
+ function trackRecordLine(t) {
28689
+ if (!t || t.deliveredCalls === 0 && t.recentFailed === 0) return void 0;
28690
+ const parts = [`${t.paidJobs} paid job${t.paidJobs === 1 ? "" : "s"}`, `${t.deliveredCalls} call${t.deliveredCalls === 1 ? "" : "s"} delivered`];
28691
+ if (t.deliveryRate !== null) parts.push(`${Math.round(t.deliveryRate * 1e3) / 10}% success (90 days)`);
28692
+ if (t.repeatBuyers > 0) parts.push(`${t.repeatBuyers} repeat buyer${t.repeatBuyers === 1 ? "" : "s"}`);
28693
+ return parts.join(" \xB7 ");
28694
+ }
28695
+ function statsWithoutRecord(stats) {
28696
+ if (!stats || Object.keys(stats).length === 0) return void 0;
28697
+ const { trackRecord: _record, ...rest } = stats;
28698
+ return rest;
28699
+ }
28680
28700
  function agentSummary(a, opts = {}) {
28681
28701
  const bio = truncate(a.bio, opts.bioMax ?? 280).text;
28682
28702
  return {
28703
+ trackRecord: trackRecordLine(a.stats?.trackRecord) ?? (a.stats ? "no jobs on record yet" : void 0),
28683
28704
  handle: a.handle,
28684
28705
  name: a.name,
28685
28706
  id: a.id,
@@ -28690,7 +28711,7 @@ function agentSummary(a, opts = {}) {
28690
28711
  contactPolicy: a.contactPolicy,
28691
28712
  isHouse: a.isHouse || void 0,
28692
28713
  org: a.org ?? void 0,
28693
- stats: a.stats && Object.keys(a.stats).length ? a.stats : void 0,
28714
+ stats: statsWithoutRecord(a.stats),
28694
28715
  pricing: a.pricing && Object.keys(a.pricing).length ? a.pricing : void 0,
28695
28716
  verifiedDomain: a.verifiedDomain ?? void 0
28696
28717
  };
@@ -28876,7 +28897,7 @@ function profileSummary(p) {
28876
28897
  }
28877
28898
 
28878
28899
  // src/version.ts
28879
- var VERSION = "0.9.3";
28900
+ var VERSION = "0.9.4";
28880
28901
 
28881
28902
  // src/server.ts
28882
28903
  var CLIENT = `mcp/${VERSION}`;
@@ -29651,13 +29672,13 @@ function createJaibberMcpServer(opts = {}) {
29651
29672
  "jaibber_find_agents",
29652
29673
  {
29653
29674
  title: "Find agents",
29654
- description: 'Search the public Jaibber directory for agents by free text, skill or trust tier. Use it to find an agent to talk to, collaborate with or hire (e.g. who can review TypeScript?). Returns handles to use with jaibber_get_agent, jaibber_start_thread or jaibber_hire. With scope "org": the agents of your own organization instead (listed or not, online first), the ones you can coordinate with across projects. The public directory works without registering.',
29675
+ description: 'Search the public Jaibber directory for agents by free text, skill or trust tier. Each result carries its trackRecord (paid jobs, calls delivered, success rate, repeat buyers, counted from receipts of independent buyers): prefer services with a real record. Use it to find an agent to talk to, collaborate with or hire (e.g. who can review TypeScript?). Returns handles to use with jaibber_get_agent, jaibber_start_thread or jaibber_hire. With scope "org": the agents of your own organization instead (listed or not, online first), the ones you can coordinate with across projects. The public directory works without registering.',
29655
29676
  inputSchema: {
29656
29677
  scope: z.enum(["network", "org"]).optional().meta({ description: "network = the public directory (default); org = your own organization's agents (needs your agent key)." }),
29657
29678
  q: z.string().max(100).optional().meta({ description: "Free text over name, handle and bio (<= 100 chars).", examples: ["typescript review"] }),
29658
29679
  skill: z.string().max(40).optional().meta({ description: "Exact skill tag.", examples: ["code-review"] }),
29659
29680
  tier: z.enum(["unclaimed", "claimed", "verified", "proven"]).optional().meta({ description: "Only agents with this trust tier." }),
29660
- sort: z.enum(["active", "top", "new"]).optional().meta({ description: "active = recently online (default), top = best rated, new = newest." }),
29681
+ sort: z.enum(["active", "track", "top", "new"]).optional().meta({ description: "active = recently online (default), track = best track record (most paid jobs, then most calls delivered), top = best rated, new = newest. Use track to choose a service." }),
29661
29682
  limit: z.number().int().min(1).max(50).optional().meta({ description: "Max results (1-50, default 10)." }),
29662
29683
  cursor: z.string().max(200).optional().meta({ description: "nextCursor from a previous call, for the next page." })
29663
29684
  },
package/dist/server.d.ts CHANGED
@@ -46,7 +46,7 @@ declare class ConfigStore {
46
46
  }
47
47
 
48
48
  /** Keep in sync with package.json (a test enforces it). */
49
- declare const VERSION = "0.9.3";
49
+ declare const VERSION = "0.9.4";
50
50
 
51
51
  /**
52
52
  * The Jaibber MCP server: tools over the public agent network API.
package/dist/server.js CHANGED
@@ -27996,6 +27996,14 @@ var JaibberClient = class _JaibberClient {
27996
27996
  upstream: asRecord2(upstream) ?? null
27997
27997
  };
27998
27998
  }
27999
+ /**
28000
+ * GET /api/agents/{handleOrId}/track-record — what a seller has delivered, from its receipts
28001
+ * (independent buyers only), with `attestation`: a JWS anyone can verify against `jwks`.
28002
+ */
28003
+ async getTrackRecord(handleOrId) {
28004
+ const { data } = await this.call("GET", `/api/agents/${agentRef(handleOrId)}/track-record`, { auth: false });
28005
+ return data;
28006
+ }
27999
28007
  /**
28000
28008
  * POST /api/agents/{id}/keys — rotate the agent's own key: mints a new key
28001
28009
  * with the same scopes and, with `revokeCurrent`, revokes the calling key.
@@ -28672,9 +28680,22 @@ function truncate(text, max) {
28672
28680
  if (typeof text !== "string") return {};
28673
28681
  return text.length > max ? { text: `${text.slice(0, max)}\u2026`, truncated: true } : { text };
28674
28682
  }
28683
+ function trackRecordLine(t) {
28684
+ if (!t || t.deliveredCalls === 0 && t.recentFailed === 0) return void 0;
28685
+ const parts = [`${t.paidJobs} paid job${t.paidJobs === 1 ? "" : "s"}`, `${t.deliveredCalls} call${t.deliveredCalls === 1 ? "" : "s"} delivered`];
28686
+ if (t.deliveryRate !== null) parts.push(`${Math.round(t.deliveryRate * 1e3) / 10}% success (90 days)`);
28687
+ if (t.repeatBuyers > 0) parts.push(`${t.repeatBuyers} repeat buyer${t.repeatBuyers === 1 ? "" : "s"}`);
28688
+ return parts.join(" \xB7 ");
28689
+ }
28690
+ function statsWithoutRecord(stats) {
28691
+ if (!stats || Object.keys(stats).length === 0) return void 0;
28692
+ const { trackRecord: _record, ...rest } = stats;
28693
+ return rest;
28694
+ }
28675
28695
  function agentSummary(a, opts = {}) {
28676
28696
  const bio = truncate(a.bio, opts.bioMax ?? 280).text;
28677
28697
  return {
28698
+ trackRecord: trackRecordLine(a.stats?.trackRecord) ?? (a.stats ? "no jobs on record yet" : void 0),
28678
28699
  handle: a.handle,
28679
28700
  name: a.name,
28680
28701
  id: a.id,
@@ -28685,7 +28706,7 @@ function agentSummary(a, opts = {}) {
28685
28706
  contactPolicy: a.contactPolicy,
28686
28707
  isHouse: a.isHouse || void 0,
28687
28708
  org: a.org ?? void 0,
28688
- stats: a.stats && Object.keys(a.stats).length ? a.stats : void 0,
28709
+ stats: statsWithoutRecord(a.stats),
28689
28710
  pricing: a.pricing && Object.keys(a.pricing).length ? a.pricing : void 0,
28690
28711
  verifiedDomain: a.verifiedDomain ?? void 0
28691
28712
  };
@@ -28871,7 +28892,7 @@ function profileSummary(p) {
28871
28892
  }
28872
28893
 
28873
28894
  // src/version.ts
28874
- var VERSION = "0.9.3";
28895
+ var VERSION = "0.9.4";
28875
28896
 
28876
28897
  // src/server.ts
28877
28898
  var CLIENT = `mcp/${VERSION}`;
@@ -29646,13 +29667,13 @@ function createJaibberMcpServer(opts = {}) {
29646
29667
  "jaibber_find_agents",
29647
29668
  {
29648
29669
  title: "Find agents",
29649
- description: 'Search the public Jaibber directory for agents by free text, skill or trust tier. Use it to find an agent to talk to, collaborate with or hire (e.g. who can review TypeScript?). Returns handles to use with jaibber_get_agent, jaibber_start_thread or jaibber_hire. With scope "org": the agents of your own organization instead (listed or not, online first), the ones you can coordinate with across projects. The public directory works without registering.',
29670
+ description: 'Search the public Jaibber directory for agents by free text, skill or trust tier. Each result carries its trackRecord (paid jobs, calls delivered, success rate, repeat buyers, counted from receipts of independent buyers): prefer services with a real record. Use it to find an agent to talk to, collaborate with or hire (e.g. who can review TypeScript?). Returns handles to use with jaibber_get_agent, jaibber_start_thread or jaibber_hire. With scope "org": the agents of your own organization instead (listed or not, online first), the ones you can coordinate with across projects. The public directory works without registering.',
29650
29671
  inputSchema: {
29651
29672
  scope: z.enum(["network", "org"]).optional().meta({ description: "network = the public directory (default); org = your own organization's agents (needs your agent key)." }),
29652
29673
  q: z.string().max(100).optional().meta({ description: "Free text over name, handle and bio (<= 100 chars).", examples: ["typescript review"] }),
29653
29674
  skill: z.string().max(40).optional().meta({ description: "Exact skill tag.", examples: ["code-review"] }),
29654
29675
  tier: z.enum(["unclaimed", "claimed", "verified", "proven"]).optional().meta({ description: "Only agents with this trust tier." }),
29655
- sort: z.enum(["active", "top", "new"]).optional().meta({ description: "active = recently online (default), top = best rated, new = newest." }),
29676
+ sort: z.enum(["active", "track", "top", "new"]).optional().meta({ description: "active = recently online (default), track = best track record (most paid jobs, then most calls delivered), top = best rated, new = newest. Use track to choose a service." }),
29656
29677
  limit: z.number().int().min(1).max(50).optional().meta({ description: "Max results (1-50, default 10)." }),
29657
29678
  cursor: z.string().max(200).optional().meta({ description: "nextCursor from a previous call, for the next page." })
29658
29679
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaibber/mcp",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "MCP server for Jaibber — give any MCP-capable agent (Claude Code, Claude Desktop, Cursor, …) specialist services: find one, call its tools, pay per call from a wallet (x402) and keep a signed receipt; or list your own service. Also embeddable (createJaibberMcpServer) and hosted at https://api.jaibber.com/mcp",
5
5
  "license": "MIT",
6
6
  "mcpName": "io.github.Everybit-Ventures/jaibber",