tic-tac-toe

rakeshranjandas/tic-tac-toe

3.1

If you are the rightful owner of tic-tac-toe and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Model Context Protocol (MCP) server is a framework that allows developers to integrate AI models into various applications seamlessly, providing a structured way to manage and interact with these models.

tic-tac-toe

Play tic-tac-toe with AI.

Step 1: Build jar file

In Intellij, Build > Build Artifact > Build    

Step 2: Add MCP server in vs code

- Install "CoPilot MCP" extension
- View > Command Palette > type "MCP: Add Server"
- Command: java -jar "/full/path/to/jar/file"
- ID: "my-tic-tac-toe"
- Set as "Global"

Step 3: Run

- Ctrl+P > type "mcp.json". You should be having "my-tic-tac-toe" server listed.
- Start the server from the link displayed over the key.
- Open Github Copilot Chat panel and type the prompt
    Prompt 1: Lets start a new game of tic tac toe. But everytime I make a move, print the board and tell if the player won
    Prompt 2: Let's start a new game of tic-tac-toe. I want to play with you. I start the game and then we alternate taking moves. Eveytime one of us makes a move, please print the board and check if the player wins.