We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jalpp/chessagine-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { KING, QUEEN, BISHOP, KNIGHT, ROOK, PAWN } from "chess.js";
export function getPiecePlacement(chess, side) {
return {
kingplacement: chess.findPiece({ type: KING, color: side }),
queenplacement: chess.findPiece({ type: QUEEN, color: side }),
bishopplacement: chess.findPiece({ type: BISHOP, color: side }),
knightplacement: chess.findPiece({ type: KNIGHT, color: side }),
rookplacement: chess.findPiece({ type: ROOK, color: side }),
pawnplacement: chess.findPiece({ type: PAWN, color: side }),
};
}