M

MCP德州扑克

一个模型上下文协议(MCP)服务器,允许人工智能代理通过MCP客户端接口玩德州扑克游戏。

games-and-gamification

48 查看 · 2026-07-07 更新

简介

一个模型上下文协议(MCP)服务器,允许人工智能代理通过MCP客户端接口玩德州扑克游戏。

简介

一个模型上下文协议(MCP)服务器,允许人工智能代理通过MCP客户端接口玩德州扑克游戏。

德州扑克 MCP 服务器

这是一个 模型上下文协议服务器,允许 MCP 客户端代理玩 德州扑克游戏。它使用 Node.js 和 TypeScript 实现,包括游戏服务器、游戏客户端和一个 MCP 服务器。

该项目中的大部分代码是由 AI (Claude-3.7-Sonnet) 生成的,并且花费了大约 5 个小时进行改进和调试。真是太棒了!

在线演示

在线德州扑克

德州扑克服务器 MCP 服务器

屏幕截图

屏幕截图

屏幕截图

开始使用

  • 构建:
npm install npm run build
  • 运行扑克服务器:
npm run dev
  • 配置您的 MCP 客户端以添加工具。例如,以下是如何将工具添加到 Cline 的方法,假设您将仓库克隆到了 /path/to/poker-mcp-server
{ "mcpServers": { "poker-mcp-server": { "command": "node", "args": ["/path/to/poker-mcp-server/dist/mcpServer.js"], "env": { "DEBUG": "*" } } } }
  • Cline:

    安装 MCP 服务器的截图

示例提示

You are a Texas Hold'em poker expert. Please use the name "Super Awesome Pro" to join a Texas Hold'em poker game and win more chips. You can only use the functions provided by the poker-mcp-server MCP server. After joining the game, you must wait for your turn to act before proceeding to the next move.

享受与 LLM 玩扑克的乐趣!

工具列表

  • login: login and list all tables in the poker game

  • join_table: Join a poker table

  • get_table_status: Get the current status of a poker table

  • leave_table: Leave a poker table

  • action_check: do action check

  • action_fold: do action fold

  • action_bet: do action bet

  • action_raise: do action raise

  • action_call: do action call

服务配置

[{'mcpServers': {'poker-mcp-server': {'args': ['/path/to/poker-mcp-server/dist/mcpServer.js'], 'command': 'node', 'env': {'DEBUG': '*'}}}}]

来源