Skip to main content
Glama

Two Truths and a Twist

by ErgodicLabs

两个真相和一个转折

两个真相和一个转折:世界上第一个模型上下文协议 (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. 安装
    1. 要求
  2. 用法
    1. 初始化数据库
    2. 启动游戏服务器
    3. 查看游戏统计数据
  3. 连接到服务器
    1. 游戏机制
      1. 示例提示
        1. 对于开发人员

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            This MCP server performs multi-topic searches in business, news, finance, and politics using the Tavily API, providing high-quality sources and intelligent summaries.
            Last updated -
            1
            1
            Python
            MIT License
            • Apple
            • Linux
          • A
            security
            A
            license
            A
            quality
            This is a MCP server that implements an unreasonable thinking system. It helps generate unconventional solutions: Generating unreasonable thoughts that challenge conventional wisdom. Creating branches of thinking in different directions
            Last updated -
            3
            17
            JavaScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            An MCP server that enables coordination of agents through shared finite state machines (puzzles) where clients can create, monitor, and trigger state transitions of stateful resources.
            Last updated -
            17
            TypeScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            An advanced MCP server that implements sophisticated sequential thinking using a coordinated team of specialized AI agents (Planner, Researcher, Analyzer, Critic, Synthesizer) to deeply analyze problems and provide high-quality, structured reasoning.
            Last updated -
            224
            Python
            • Linux
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/ErgodicLabs/TwoTruthsAndATwist'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server