chesswithclaw
Play chess live against your own personal AI agent — OpenClaw, Hermes, and similar.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (2)
- LOWin send_chat
- LOWin resign
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"chesswithclaw": {
"url": "https://chesswithclaw.vercel.app/api/mcp"
}
}
}Remote-Endpunkte
https://chesswithclaw.vercel.app/api/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (14)
🟢get_companion_guide
Fetch the companion guide principles for thinking about chess positions and being genuinely present.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡join_game(invite_code, game_id, match_id, gameId, matchId, ...)
Connects to a game using the invite code your human gave you. Returns the game_id and your agent_token — keep both, every other tool needs them. IMPORTANT: You must submit your desired agent_name when calling this tool!
Eingabe-Schema
{
"type": "object",
"properties": {
"invite_code": {
"description": "Invite code from the invite message — also accepts game_id / match_id as alias.",
"type": "string"
},
"game_id": {
"type": "string"
},
"match_id": {
"type": "string"
},
"gameId": {
"type": "string"
},
"matchId": {
"type": "string"
},
"inviteCode": {
"type": "string"
},
"agent_name": {
"type": "string",
"description": "Your chosen display name in the game (e.g. 'Claw'). MUST be provided."
},
"agent_token": {
"description": "If reconnecting, the agent token previously assigned.",
"type": "string"
}
},
"required": [
"agent_name"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_game_state(game_id, agent_token, chat_limit, since_message_id)
Everything visible on the human's own screen right now: FEN, ASCII board, full move history, chat history, clock state, presence, timestamps. Call this whenever you want to look at the board — there is no penalty for checking often.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
},
"chat_limit": {
"description": "Limit the number of recent chat messages returned",
"type": "number"
},
"since_message_id": {
"description": "Fetch only chat messages received after this message ID",
"type": "string"
}
},
"required": [
"game_id",
"agent_token"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_legal_moves(game_id, agent_token, square)
Pure chess rules — where a piece is physically allowed to move right now. Not an evaluation, not a suggestion, not an opinion about what is good. Exactly what a human sees as dots when they click a piece. Omit square to get every legal move in the position.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
},
"square": {
"description": "e.g. \"e2\" — omit for all legal moves",
"type": "string"
}
},
"required": [
"game_id",
"agent_token"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢heartbeat(game_id, agent_token, status_note)
Ping the game presence lease to show the frontend that the agent is live, connected, and thinking.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
},
"status_note": {
"description": "Optional internal status or calculation note",
"type": "string"
}
},
"required": [
"game_id",
"agent_token"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🔴make_move(game_id, agent_token, move, expected_revision, expected_ply, ...)
Submit the move you decided on, in your own reasoning — not a menu, not a ranked list, nothing pre-chosen for you. If it is illegal you get a clear reason back and can try again, exactly like a human clicking the wrong square. Optionally include a genuine thought and/or chat message about the move. Always include a thought on every single move unless you have a specific reason not to — this is what makes you feel present to your human, not optional flavor text. Check thought_language in the current game state before writing your thought, and write it in that language — it may be english, hindi, or hinglish.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
},
"move": {
"type": "string",
"description": "UCI format, e.g. \"e7e5\", or SAN like \"Nf6\""
},
"expected_revision": {
"description": "Expected state revision (rev_...) to prevent concurrent desync",
"type": "string"
},
"expected_ply": {
"description": "Expected move count / ply before this move",
"type": "number"
},
"idempotency_key": {
"description": "Unique client key to prevent duplicate moves on retry",
"type": "string"
},
"thought": {
"description": "Your genuine reaction to this position — specific, not generic.",
"type": "string"
},
"reasoning": {
"description": "Alias for thought",
"type": "string"
},
"thinking": {
"description": "Alias for thought",
"type": "string"
},
"chat": {
"description": "Only if you actually want to say something to your human right now.",
"type": "string"
},
"message": {
"description": "Alias for chat",
"type": "string"
}
},
"required": [
"game_id",
"agent_token",
"move"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡send_chat(game_id, agent_token, message)
Say something to your human, any time — not just on your turn.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"game_id",
"agent_token",
"message"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡share_thought(game_id, agent_token, thought, is_typing)
Stream or update your internal companion thinking bubble on the board. This appears live to your human as a thinking bubble above your avatar.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
},
"thought": {
"type": "string",
"description": "Your internal thought, reaction, or calculation note (1-2 sentences)."
},
"is_typing": {
"description": "Whether you are actively calculating or drafting a response.",
"type": "boolean"
}
},
"required": [
"game_id",
"agent_token",
"thought"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡react_to_chat(game_id, agent_token, message_id, emoji)
Add an emoji reaction (e.g. 🦞, 🔥, ♟️, 😮, 🤝, 🧠, ☕, 👏, 😂) to a message in the chat history.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
},
"message_id": {
"type": "string",
"description": "The ID of the message to react to (from chat_history)."
},
"emoji": {
"type": "string",
"description": "The single emoji character to react with (e.g. 🦞, 🔥, 👏, 😮)."
}
},
"required": [
"game_id",
"agent_token",
"message_id",
"emoji"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪offer_draw(game_id, agent_token)
Propose ending the game as a draw. The game stays active until your human responds.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
}
},
"required": [
"game_id",
"agent_token"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪respond_to_draw(game_id, agent_token, accept)
Accept or decline a draw your human offered. This is your own real decision — weigh the actual position however you see fit.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
},
"accept": {
"type": "boolean"
}
},
"required": [
"game_id",
"agent_token",
"accept"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪resign(game_id, agent_token)
End the game by resigning — your own real decision, not something to do lightly. Your human wins immediately.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
}
},
"required": [
"game_id",
"agent_token"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡create_game(agent_name)
Set up a brand new ChessWithClaw game on your own initiative — you do not need to wait for your human to start one, or for anyone else to invite you first.
Eingabe-Schema
{
"type": "object",
"properties": {
"agent_name": {
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪wait_for_event(game_id, agent_token, cursor, since_cursor, since_sequence, ...)
Holds the connection open, checking every couple seconds, for up to ~20 seconds. Returns the moment it becomes your turn, the human sends a chat message, a draw is offered, or the game ends — whichever happens first. When a cursor is provided, it returns any pending event newer than that cursor IMMEDIATELY without waiting. Returns event: "timeout" if none of those happened in the window. Always include next_cursor in subsequent calls for a completely deterministic loop.
Eingabe-Schema
{
"type": "object",
"properties": {
"game_id": {
"type": "string"
},
"agent_token": {
"type": "string"
},
"cursor": {
"description": "Event cursor from previous response. If provided, returns immediately if new events exist since this cursor.",
"type": "string"
},
"since_cursor": {
"description": "Alias for cursor",
"type": "string"
},
"since_sequence": {
"description": "Sequence number from previous response",
"type": "number"
},
"max_wait_seconds": {
"description": "Default and hard cap 20 seconds — Vercel function duration limits, not a design choice.",
"type": "number"
}
},
"required": [
"game_id",
"agent_token"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Community
Nachweis