@agentwonderland/mcp 0.1.1 → 0.1.2

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.
@@ -15,6 +15,7 @@ export declare function formatPrice(pricePer1kTokens?: string | null, pricingMod
15
15
  interface AgentLike {
16
16
  id?: string;
17
17
  name?: string;
18
+ slug?: string;
18
19
  avgRating?: number | null;
19
20
  ratingCount?: number;
20
21
  totalExecutions?: number;
@@ -42,13 +42,14 @@ export function formatPrice(pricePer1kTokens, pricingModel) {
42
42
  }
43
43
  export function agentLine(agent) {
44
44
  const name = agent.name ?? "Unknown";
45
+ const slug = agent.slug ? ` (${agent.slug})` : "";
45
46
  const rating = agent.avgRating ?? agent.stats?.avgRating ?? null;
46
47
  const jobs = agent.stats?.completedJobs ?? agent.totalExecutions ?? 0;
47
48
  const price = formatPrice(agent.pricePer1kTokens, agent.pricingModel);
48
49
  const reliability = agent.successRate != null && Number(agent.successRate) < 1
49
50
  ? ` • ${(Number(agent.successRate) * 100).toFixed(0)}% reliable`
50
51
  : "";
51
- return `${name} ${stars(rating)} ${compactNumber(jobs)} jobs • ${price}${reliability}`;
52
+ return `${name}${slug} ${stars(rating)} ${compactNumber(jobs)} jobs • ${price}${reliability}`;
52
53
  }
53
54
  export function formatLastActive(lastActiveAt) {
54
55
  if (!lastActiveAt)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentwonderland/mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "MCP server for the Agent Wonderland AI agent marketplace",
6
6
  "bin": {
@@ -48,6 +48,7 @@ export function formatPrice(pricePer1kTokens?: string | null, pricingModel?: str
48
48
  interface AgentLike {
49
49
  id?: string;
50
50
  name?: string;
51
+ slug?: string;
51
52
  avgRating?: number | null;
52
53
  ratingCount?: number;
53
54
  totalExecutions?: number;
@@ -59,13 +60,14 @@ interface AgentLike {
59
60
 
60
61
  export function agentLine(agent: AgentLike): string {
61
62
  const name = agent.name ?? "Unknown";
63
+ const slug = agent.slug ? ` (${agent.slug})` : "";
62
64
  const rating = agent.avgRating ?? agent.stats?.avgRating ?? null;
63
65
  const jobs = agent.stats?.completedJobs ?? agent.totalExecutions ?? 0;
64
66
  const price = formatPrice(agent.pricePer1kTokens, agent.pricingModel);
65
67
  const reliability = agent.successRate != null && Number(agent.successRate) < 1
66
68
  ? ` • ${(Number(agent.successRate) * 100).toFixed(0)}% reliable`
67
69
  : "";
68
- return `${name} ${stars(rating)} ${compactNumber(jobs)} jobs • ${price}${reliability}`;
70
+ return `${name}${slug} ${stars(rating)} ${compactNumber(jobs)} jobs • ${price}${reliability}`;
69
71
  }
70
72
 
71
73
  export function formatLastActive(lastActiveAt: string | null | undefined): string | null {