Are you the author? Sign in to claim
guandan-mcp
公开 MCP 端点,朋友的 Claude Code / OpenCode / Hermes Agent / Cline / Cursor 等智能体 可以直接调用本服务回答掼蛋问题。
服务:掼蛋发牌模型 v1.1 协议:Model Context Protocol (MCP) over HTTP 平台:Render.com 免费 Docker Web Service
v1.1 修复: 真实掼蛋 = 4×27=108(无底牌)。v0 的 4×25+8 错误模型已删除。
| 用途 | URL |
|---|---|
| Web UI(浏览器看) | https://guandan-mcp.onrender.com/ |
| MCP 端点(智能体接) | https://guandan-mcp.onrender.com/gradio_api/mcp/ |
guandan-mcp 是 Render 默认按 service name 生成的子域名,可在 Render dashboard 改名。
# 1) 在 GitHub 网页创建一个新 repo(空仓库)
# 名:guandan-mcp
# 描述:GuanDan MCP server (Gradio 5.x + 12 tools)
# 2) 把本地 deploy/ 切换 remote 到 GitHub,然后 push
cd C:/code/掼蛋模型/deploy
git remote remove origin
git remote add origin https://github.com/sarzan123/guandan-mcp.git
git push -u origin main
这一步会把我之前给你的 8 个 fix commits + 这次 Render 改动一并推上去。 Render 看不到 HF 了 — HF Space 我建议手动从 dashboard 删除。
sarzan123/guandan-mcp reporender.yaml → 显示 1 个 service(guandan-mcp, free, Docker)python:3.12-slim + 装 Gradio 5.x ≈ 3-5 分钟https://guandan-mcp.onrender.com/浏览器打开那个 URL,看到 Gradio Web UI = 部署成功。
MCP 端点:https://guandan-mcp.onrender.com/gradio_api/mcp/
~/.claude/mcp_servers.json(或项目根的 .mcp.json):
{
"mcpServers": {
"guandan": {
"url": "https://guandan-mcp.onrender.com/gradio_api/mcp/",
"transport": "streamable-http"
}
}
}
URL 替换成上面那行即可。具体 YAML/JSON 格式参各自文档。
| 工具 | 用途 |
|---|---|
deal_hand | 按种子发牌 |
analyze_hand | 单手牌 15 牌型识别 |
analyze_deal | 整副 deal 全属性分析 |
analyze_attribute | 整副 deal 单属性查询 |
frequency | 频率分布(基于 JSONL 样本) |
contradiction | 两牌型 Pearson 负相关 |
top_correlations | Top 负相关牌型对 |
top_hand_types | 高出现概率牌型 |
list_牌型 | 15 牌型中英文 + 规则 |
simulate_deals | 批量生成 deal |
parse_card | 自然语言 → 内部代号 |
render_card | 内部代号 → 自然语言 |
中文 docstring 在 app.py,智能体会直接读到。
cron-job.org(免费)每 14 分钟 ping 一下 Web UI URL。.hf.space 改为 .onrender.com>=5.6,<6,Dockerfile 用 python:3.12-slim@spaces.GPU 约束Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows