两个真相和一个转折
两个真相和一个转折:世界上第一个模型上下文协议 (MCP) 游戏
安装
要求
Python 3.13 或更高版本
与 MCP 兼容的 LLM(如 Claude 3)
您可以直接从 PyPI 安装游戏:
或者如果你更喜欢使用uv
:
用法
初始化数据库
首先初始化游戏数据库:
启动游戏服务器
要启动 MCP 服务器:
这将启动 Two Truths 和 Twist MCP 服务器,LLM 可以连接到该服务器来玩游戏。
查看游戏统计数据
查看游戏统计数据:
连接到服务器
要将兼容 MCP 的 LLM 连接到游戏服务器,您需要配置 MCP 连接。创建一个包含以下内容的配置文件(例如claude_desktop_config.json
):
对于 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
游戏机制
《两个真相和一个转折》是一款问答游戏,其中:
人工智能会针对某个主题创建一轮包含三个陈述的回合 - 两个事实和一个“扭曲”(一个有趣的错误陈述)
玩家尝试找出哪个语句是转折点
人工智能用有趣的解释揭示了答案
该游戏利用 MCP 协议提供有趣的互动琐事体验,其中 AI 模型既可以生成内容,又可以促进游戏玩法。
示例提示
一旦连接到支持 MCP 的 LLM,您就可以开始游戏并出现如下提示:
对于开发人员
该软件包实现了一个提供自定义游戏工具的 MCP 服务器:
create_round
:创建一个包含一个问题和三个语句的新游戏回合submit_guess
:让玩家提交对哪个语句是转折的猜测reveal_twist
:揭示答案并解释每个语句get_round
:检索特定回合的详细信息get_last_round
:获取最近一轮的详细信息get_stats
:检索游戏统计数据
Related MCP Servers
- -securityAlicense-qualityThis 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 -1MIT License
- AsecurityAlicenseAqualityThis 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 directionsLast updated -322MIT License
- -securityFlicense-qualityAn 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 -246
- AsecurityFlicenseAqualityAn MCP server that allows users to play the 'Turtle Soup' puzzle game with LLMs acting as game hosts, providing tools to access game rules, puzzles, and comprehensive puzzle information.Last updated -36