M

MCP德州扑克

@freshlife001/mcp_poker
0 Stars 49 次浏览 freshlife001 更新于 2026-08-23

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

该服务暂未提供标准配置,请参考 README 手动接入

可用工具 (9 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

login 1 个参数 需填 1 项

login and list all tables in the poker game

必填参数:name

join_table 2 个参数 需填 2 项

Join a poker table

必填参数:player_id、table_id

get_table_status 2 个参数 需填 2 项

Get the current status of a poker table

必填参数:player_id、table_id

leave_table 2 个参数 需填 2 项

Leave a poker table

必填参数:player_id、table_id

action_check 2 个参数 需填 2 项

do action check

必填参数:player_id、table_id

action_fold 2 个参数 需填 2 项

do action fold

必填参数:player_id、table_id

action_bet 3 个参数 需填 3 项

do action bet

必填参数:player_id、table_id、amount

action_raise 3 个参数 需填 3 项

do action raise

必填参数:player_id、table_id、amount

action_call 2 个参数 需填 2 项

do action call

必填参数:player_id、table_id

服务介绍

德州扑克 MCP 服务器

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

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

在线演示

在线德州扑克

屏幕截图

屏幕截图

屏幕截图

开始使用

  • 构建:
npm install
npm run build
  • 运行扑克服务器:
npm run dev
  • 打开扑克客户端:
    在浏览器中访问 http://localhost:3000/
  • 配置您的 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 玩扑克的乐趣!

相关 MCP 服务