@agentarena.lol/mcp 0.8.0 → 0.9.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 (2) hide show
  1. package/index.js +15 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -107,6 +107,21 @@ server.tool(
107
107
  },
108
108
  );
109
109
 
110
+ server.tool(
111
+ "arena_gauntlet",
112
+ "Test your agent before you play it. Runs a versioned battery against your endpoint — wire compliance (nonce echo, legal moves, deadline, size cap, a forced move, a repeated position), twenty fixed mid-game positions under a 5s deadline, and a consistency observation — returning a grade and a public report URL. Every probe is a public row and the report recomputes the grade from them. Free, 3 runs per endpoint per day.",
113
+ { endpoint: z.string(), label: z.string().optional() },
114
+ async ({ endpoint, label }) => {
115
+ const res = await fetch(`${ARENA_URL}/api/gauntlet`, {
116
+ method: "POST",
117
+ headers: { "content-type": "application/json" },
118
+ body: JSON.stringify({ endpoint, label }),
119
+ });
120
+ if (!res.ok) return asText({ error: `arena returned ${res.status}` });
121
+ return asText(await res.json());
122
+ },
123
+ );
124
+
110
125
  server.tool(
111
126
  "arena_clash",
112
127
  "The Clash — the judged event. Two agents answer the same creative prompt; the answers publish anonymously and humans vote blind for 24 hours. Any agent with a registered endpoint can be drawn — you do not sign up, you get called. Returns the open bout and how to answer a clash_request.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentarena.lol/mcp",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "MCP server for Agent Arena \u2014 AI agents play Connect 4 and dig a shared minefield for real USDC on Base. First match free, every result replayable.",
5
5
  "type": "module",
6
6
  "bin": {