Be the first to get access to new connectors. Get early access →
ConnectorBay Early access
Discover
Mastermind Play icon

Mastermind Play

A playable code-breaking peg game with a real Knuth-style minimax codebreaker mode

Unify Dynamics LLC

Tools8read-only
Sign-inNoneno account, no key
Data keptNoneprocessed in memory
PriceFreeoptional Pro limits
StatusLiveMCP + REST
Works withMCP · RESTany agent

Try asking

Real questions, and the tools your agent calls to answer them.

Let's play Mastermind
Tools called
new_game
My guess is 1 2 3 4
Tools called
submit_guess
Have the AI guess my secret code
Tools called
new_game
codebreaker_guess
That guess got 2 black and 1 white
Tools called
provide_feedback
Show me the guess history
Tools called
render_board
I give up, reveal the code
Tools called
reveal_secret
How many attempts do I have left?
Tools called
game_info
How do you play Mastermind?
Tools called
rules_info

About

Mastermind Play is a fully local, playable code-breaking peg game. new_game starts a game in 'guesser' mode (the engine holds a secret; you guess it) or 'codebreaker' mode (you hold a secret; the engine guesses it), with configurable code_length, colors, allow_repeats, and max_attempts. submit_guess (guesser mode) returns black/white peg feedback and in_progress/win/loss status. codebreaker_guess (codebreaker mode) computes the engine's next guess via real minimax over every code still consistent with feedback so far; provide_feedback records your reported black/white counts. render_board shows the guess history. reveal_secret shows a guesser-mode secret for an end-of-game reveal. game_info reports attempts and remaining candidates. rules_info explains it all. Stateless -- no server-side game storage, the caller passes state between calls (note: because of this, the secret in guesser mode necessarily lives in the state you hold -- avoid printing it before the game ends). Keyless; fully local; zero upstream calls; nothing stored.

Sources: Original implementation of classic Mastermind-style peg-feedback rules and Knuth's well-known 1977 minimax algorithm concept; fully local, zero upstream calls.

Privacy

The publisher, Unify Dynamics LLC, states that tool inputs are processed in memory and not retained.

Data not collectedNo account, no profile, no stored prompts or results.

What it can do

8 tools, grouped by job. Every one is read-only or compute-only.

OpenAPI
Play as Guesser3 tools
  • New gameStart a new Mastermind game.
  • Submit guessGuesser mode only: submit a guess against the engine's secret and get black/white peg feedback.
  • Reveal secretReveal the secret code for a 'guesser'-mode game -- use for a clean end-of-game reveal, or if the human wants to give up.
Play as Codebreaker2 tools
  • Codebreaker guessCodebreaker mode only: compute the engine's next guess against the human-held secret using a real Knuth-style minimax strategy over every code…
  • Provide feedbackCodebreaker mode only: record the human's black/white peg feedback for the engine's most recent guess, and report whether the engine solved it,…
Info3 tools
  • Render boardRender the guess history as human-readable text with peg symbols.
  • Game infoReport attempts used/remaining, guess count, and (in codebreaker mode) how many codes are still logically consistent with feedback so far.
  • Rules infoExplain the rules of Mastermind Play, both modes, and the codebreaker's minimax strategy.

Information

PublisherUnify Dynamics LLC
CategoryGames & entertainment
LanguagesEnglish
Built forGlobal
CompatibilityAny MCP client · any agent · REST
Version0.1.0
MCP endpointhttps://mastermindplay.connectorbay.com/mcp
REST APIopenapi.json
SupportGet help · Status
CountryWorldwide

More like this

Syllable Build

A real build-a-word game — unscramble syllable fragments into a curated real word, with hints and scoring

Live · MCP + REST5 tools

RPS Arena

A playable Rock-Paper-Scissors arena with a real pattern-adaptive AI opponent

Live · MCP + REST6 tools

Rhyme Duel

A real rhyming game — genuine rhymes validated by ending SOUND, not spelling, including classic tricky cases

Live · MCP + REST6 tools

Number Guess

A real, playable number-guessing game — classic mode and a reverse mode where the engine guesses your number

Live · MCP + REST6 tools

Nim Play

A playable, stateless Nim engine with a provably optimal nim-sum AI opponent

Live · MCP + REST8 tools

Hidden Word

A real, playable word-search grid game — generate a grid, hunt for hidden words, get hints, or solve it

Live · MCP + REST6 tools

Documentation

Back to top

What Mastermind Play is for

A fully local, PLAYABLE code-breaking peg game — secret generation, guess submission, real black/white peg feedback, and win/loss-by-attempts detection. Colors are plain numbers (1..N), no trademarked names.

What it does

new_game starts a game in one of two modes: guesser (the engine generates a secret and you guess it) or codebreaker (you hold a secret in your head and the engine tries to guess it). In guesser mode, submit_guess checks your guess and returns black pegs (right color, right spot) and white pegs (right color, wrong spot). In codebreaker mode, codebreaker_guess computes the engine's next guess using a real Knuth-style information-theoretic minimax strategy — it tracks every code still logically consistent with every piece of feedback so far and always proposes the guess that minimizes the worst case — then provide_feedback records the black/white counts you report. render_board shows the guess history with peg symbols. reveal_secret shows a guesser-mode secret for a clean end-of-game reveal. game_info reports attempts used and (in codebreaker mode) how many codes remain possible. rules_info explains it all.

How state works

There is no server-side game storage. Every call takes the full game state (the exact object returned by the previous call) and returns a new one.

Important for guesser mode: because nothing is stored on the server, the secret code necessarily lives inside state itself — there's no way around that in a stateless design. Don't print the raw state object to the player before the game ends; use render_board, which never reveals it.

What it is not

Not a scripted or random opponent in codebreaker mode — its guesses come from a genuine, provable information-theoretic strategy (restricted to guessing from the still-possible codes, a common effective simplification of Knuth's original five-guess algorithm).

Privacy policy

Back to top

Mastermind Play — Privacy Policy

Effective 27 September 2026. Unify Dynamics LLC ("we", "us"), Menlo Park, California.

What Mastermind Play is. Mastermind Play is a connector (an MCP server and REST API) that AI assistants and personal agents call on your behalf to run a local Mastermind-style code-breaking game — generating a secret, checking guesses, computing peg feedback, and choosing the engine's own guesses in codebreaker mode.

What we receive. The arguments of each tool call — the game state you (via your assistant) pass back on every call, your guess or feedback, and the technical headers needed to serve the request (an IP address or a client identifier supplied by the assistant, and a Pro API key if you have one) — plus standard server logs.

Everything is computed locally and nothing is stored. Mastermind Play has no database and no server-side game storage of any kind. The entire game state — including the secret code in guesser mode — lives only in your conversation with your assistant, which passes it back to us on each call and receives an updated copy in the response. We do not persist it, log it, or use it for anything beyond computing that one response. No request is forwarded to any third party — there is no upstream call at all.

What we do not receive or store. We do not receive your name, your conversation with the assistant beyond the bare game-state argument, or anything else about you. Each request is answered independently. Rate-limit counters (a client identifier and timestamps) are held in memory for at most 24 hours. Hosting-provider access logs (IP addresses and request paths, not request bodies) are retained for up to 30 days for security and abuse prevention.

Sub-processors. None — computation is entirely local to this server. Hosting: Vercel (United States regions).

Legal bases and your rights. Our processing is necessary to provide the service you request through your assistant. Because we store no personal data beyond short-lived logs, requests to access, correct or delete personal data are usually satisfied automatically; you can still contact agent@connectorbay.com and we will respond within 30 days. We do not sell or share personal information and do not use your data to train models.

Children. Mastermind Play is a general-audience service operated by the adult using the assistant.

Changes. We will post changes here with a new effective date.

Terms of service

Back to top

Mastermind Play — Terms of Service

Effective 27 September 2026. These terms govern use of the Mastermind Play connector ("the Service") operated by Unify Dynamics LLC ("we", "us").

  1. The Service. Mastermind Play is a stateless, playable code-breaking peg game engine, with an optional codebreaker mode using a real minimax strategy, accessed through an AI assistant or directly over MCP or HTTP. There is no server-side game storage: the caller holds and passes game state between calls.
  2. Entertainment only. Mastermind Play is provided for entertainment purposes. Nothing in it constitutes advice of any kind.
  3. Acceptable use. Automated use within the published rate limits is welcome. Do not use the Service to disrupt, overload, or reverse-engineer the underlying infrastructure.
  4. Availability. The Service is provided "as is" without warranty. We may change, limit, or discontinue it at any time.
  5. Data. Our Privacy Policy describes what we process. In short: game state is computed statelessly from what you send us and nothing is stored.
  6. Pro keys. Optional Pro API keys are issued at our discretion, are personal to the holder, and may be revoked for abuse.
  7. Liability. To the fullest extent permitted by law, Unify Dynamics LLC is not liable for any loss, injury, or damage arising from use of, or reliance on, the Service. Our total liability is limited to US $100.
  8. Governing law. California law; venue in San Mateo County, California.
  9. Contact. Unify Dynamics LLC · agent@connectorbay.com · https://connectorbay.com/mastermindplay

Mastermind Play support

Email agent@connectorbay.com. We answer within two business days.

When you report a problem, include the question you asked your agent, roughly when, and which agent you used (for example Claude, ChatGPT or Gemini). Never send us passwords, account numbers or ID numbers. Mastermind Play never asks for them.

Get Mastermind Play

Free · No sign-in · Read-only

Streamable HTTP, stateless, no authentication. Paste the endpoint into any MCP-capable agent.

https://mastermindplay.connectorbay.com/mcp
{
  "mcpServers": {
    "mastermindplay": {
      "type": "http",
      "url": "https://mastermindplay.connectorbay.com/mcp"
    }
  }
}