@chessceo/mcp 0.3.1 → 0.4.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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.js +31 -0
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 chess.ceo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to grant persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -121,6 +121,29 @@ const TOOLS = [
121
121
  required: ["fen"],
122
122
  },
123
123
  },
124
+ {
125
+ name: "analyse",
126
+ description: "Short Stockfish evaluation at a position. Returns the top-N candidate moves with score (centipawns from side-to-move POV, positive = advantage; or mate distance) and the principal variation for each. Defaults: 2s think time, top-3 lines. PV moves come back in UCI notation (e2e4, not e4). Use this to sanity-check candidate lines from get_position_stats or get_player_preparation — human game frequency tells you what people play, engine evaluation tells you what's actually good.",
127
+ inputSchema: {
128
+ type: "object",
129
+ properties: {
130
+ fen: { type: "string", description: "FEN of the position to analyse." },
131
+ movetime_ms: {
132
+ type: "integer",
133
+ minimum: 100,
134
+ maximum: 10000,
135
+ description: "Think time in milliseconds (default 2000).",
136
+ },
137
+ multipv: {
138
+ type: "integer",
139
+ minimum: 1,
140
+ maximum: 10,
141
+ description: "Number of candidate lines to return (default 3).",
142
+ },
143
+ },
144
+ required: ["fen"],
145
+ },
146
+ },
124
147
  {
125
148
  name: "get_head_to_head",
126
149
  description: "Complete head-to-head record between two players. Includes overall and per-colour W/D/L (from player A's perspective), splits by time control, most-played openings between them, first / last meeting, average game length, and the game list.",
@@ -212,6 +235,14 @@ async function callTool(name, args) {
212
235
  limit: typeof args.limit === "number" ? args.limit : 20,
213
236
  sort: "relevance",
214
237
  });
238
+ case "analyse": {
239
+ const params = { fen: String(args.fen) };
240
+ if (typeof args.movetime_ms === "number")
241
+ params.movetime_ms = args.movetime_ms;
242
+ if (typeof args.multipv === "number")
243
+ params.multipv = args.multipv;
244
+ return get("/api/chess/database/analyse", params);
245
+ }
215
246
  case "get_head_to_head":
216
247
  return get("/api/chess/players/h2h", {
217
248
  a: Number(args.fide_id_a),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chessceo/mcp",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Model Context Protocol server for chess.ceo — 11.7M+ games, ~1.5M FIDE player profiles, opening preparation, live broadcasts.",
5
5
  "type": "module",
6
6
  "bin": {