Two Truths and a Twist

MIT License
2
  • Apple
  • Linux

Integrations

  • Supports deployment on Linux systems with specific configuration file paths for Claude Desktop integration.

  • Supports deployment on macOS systems with specific configuration file paths for Claude Desktop integration.

  • Allows installation of the game server directly from the PyPI repository.

两个真相和一个转折

两个真相和一个转折:世界上第一个模型上下文协议 (MCP) 游戏

游戏设计文档

安装

要求

  • Python 3.13 或更高版本
  • 与 MCP 兼容的 LLM(如 Claude 3)

您可以直接从 PyPI 安装游戏:

pip install ttaat

或者如果你更喜欢使用uv

uv pip install ttaat

用法

初始化数据库

首先初始化游戏数据库:

ttaat db upgrade

启动游戏服务器

要启动 MCP 服务器:

ttaat serve

这将启动 Two Truths 和 Twist MCP 服务器,LLM 可以连接到该服务器来玩游戏。

查看游戏统计数据

查看游戏统计数据:

ttaat db stats

连接到服务器

要将兼容 MCP 的 LLM 连接到游戏服务器,您需要配置 MCP 连接。创建一个包含以下内容的配置文件(例如claude_desktop_config.json ):

{ "mcpServers": { "TwoTruthsAndATwist": { "command": "ttaat", "args": ["serve"] } } }

对于 Claude Desktop,将此文件放在:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

游戏机制

《两个真相和一个转折》是一款问答游戏,其中:

  1. 人工智能会针对某个主题创建一轮包含三个陈述的回合 - 两个事实和一个“扭曲”(一个有趣的错误陈述)
  2. 玩家尝试找出哪个语句是转折点
  3. 人工智能用有趣的解释揭示了答案

该游戏利用 MCP 协议提供有趣的互动琐事体验,其中 AI 模型既可以生成内容,又可以促进游戏玩法。

示例提示

一旦连接到支持 MCP 的 LLM,您就可以开始游戏并出现如下提示:

Let's play Two Truths and a Twist! Create a round about space exploration.
Create a game round about ancient civilizations.

对于开发人员

该软件包实现了一个提供自定义游戏工具的 MCP 服务器:

  • create_round :创建一个包含一个问题和三个语句的新游戏回合
  • submit_guess :让玩家提交对哪个语句是转折的猜测
  • reveal_twist :揭示答案并解释每个语句
  • get_round :检索特定回合的详细信息
  • get_last_round :获取最近一轮的详细信息
  • get_stats :检索游戏统计数据
-
security - not tested
A
license - permissive license
-
quality - not tested

基于 MCP 的琐事游戏服务器,其中 AI 创建有关各种主题的两个真实陈述和一个错误“扭曲”的回合,让玩家猜测哪个陈述是错误的。

  1. Installation
    1. Requirements
  2. Usage
    1. Initialize the Database
    2. Start the Game Server
    3. View Game Statistics
  3. Connecting to the Server
    1. Game Mechanics
      1. Example Prompts
        1. For Developers
          ID: 57liekhbxt