0

Tic-Tac-Toe MCP Server

An MCP server that lets you play tic-tac-toe against Mistral directly from Vibe. The server exposes game tools over SSE that Vibe discovers and calls automatically.

Example · مثالmcp

Content

Tic-Tac-Toe MCP Server

An MCP server that lets you play tic-tac-toe against Mistral directly from Vibe. The server exposes game tools over SSE that Vibe discovers and calls automatically.

For the full step-by-step tutorial on how to build this project, see the [Custom MCP Server cookbook](../custom-mcp-server.md).

Prerequisites

Quick start

Install dependencies:

pip install -r requirements.txt

Set your API key:

export MISTRAL_API_KEY=your_api_key_here

Run the MCP server:

python mcp_server.py

The server starts on port 7860 with SSE transport.

Project structure

| File | Description | |------|-------------| | app.py | Game logic (Room class, AI functions) and Flask REST endpoints | | mcp_server.py | MCP server wrapping game logic as six callable tools | | requirements.txt | Python dependencies | | Dockerfile | Container config for Hugging Face Spaces deployment |

Deployment

See the [cookbook tutorial](../custom-mcp-server.md) for deploying to Hugging Face Spaces and connecting to Vibe.

Source and license

Source
Mistral Cookbook
Original
mistralai/cookbook/mistral/lechat_custom_mcp_server/tic-tac-toe
License
MIT