两个真相和一个转折
两个真相和一个转折:世界上第一个模型上下文协议 (MCP) 游戏
安装
要求
Python 3.13 或更高版本
与 MCP 兼容的 LLM(如 Claude 3)
您可以直接从 PyPI 安装游戏:
pip install ttaat或者如果你更喜欢使用uv :
uv pip install ttaatRelated MCP server: Unconventional-thinking MCP server
用法
初始化数据库
首先初始化游戏数据库:
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.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
游戏机制
《两个真相和一个转折》是一款问答游戏,其中:
人工智能会针对某个主题创建一轮包含三个陈述的回合 - 两个事实和一个“扭曲”(一个有趣的错误陈述)
玩家尝试找出哪个语句是转折点
人工智能用有趣的解释揭示了答案
该游戏利用 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:检索游戏统计数据
This server cannot be installed
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.