MCP Tic-Tac-Toe
A Model Context Protocol (MCP) server that enables AI assistants to play tic-tac-toe through standardized tool interfaces. Perfect for demonstrating AI-human collaboration and MCP integration.

Overview
This project implements a complete tic-tac-toe game as an MCP server, allowing AI assistants like Claude to:
- Create and manage multiple game sessions
- Make strategic moves and analyze positions
- Provide game commentary and suggestions
- Play against humans or other AIs
Quick Start
Prerequisites
- Go 1.19+ installed
- Claude Code or other MCP-compatible client
Installation
git clone https://github.com/tomholford/mcp-tic-tac-toe
cd mcp-tic-tac-toe
go mod tidy
go build -o bin/server cmd/server.goBasic Usage
# Start MCP server (stdio transport)
./bin/server
# Or specify transport method
./bin/server -transport=sse -addr=:8080MCP Configuration
Claude Code Setup
Build the server:
go build -o bin/server cmd/server.goAdd to your MCP configuration:
Create or edit your MCP configuration file:
# For macOS/Linux ~/.config/claude-code/mcp_servers.json # For Windows %APPDATA%\claude-code\mcp_servers.jsonAdd the server configuration:
{ "mcpServers": { "tic-tac-toe": { "command": "/full/path/to/mcp-tic-tac-toe/bin/server", "args": ["-transport=stdio"], "env": {} } } }Restart Claude Code and the tic-tac-toe tools will be available. c






