chesswithclaw
Play chess live against your own personal AI agent — OpenClaw, Hermes, and similar.
사용해야 할까요
품질 및 안전성
발견 사항 (2)
- LOWsend_chat에서
- LOWresign에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"chesswithclaw": {
"url": "https://chesswithclaw.vercel.app/api/mcp"
}
}
}원격 엔드포인트
https://chesswithclaw.vercel.app/api/mcpstreamable-http할 수 있는 일
도구 목록
도구 (14)
🟢get_companion_guide
Fetch the companion guide principles for thinking about chess positions and being genuinely present.
입력 스키마
{
"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!
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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#"
}커뮤니티
증거