Cards4Play
Play Hearts, Spades, Euchre, Rook and more with friends or bots from your agent.
Máy chủ MCP được lưu trữ
npx add-mcp 'https://cards4play.com/api/mcp'Cài vào Claude Code, Codex, Cursor và nhiều công cụ khác
Tài liệu
Connect an MCP client to Cards4Play
Cards4Play runs a remote MCP server. Add the endpoint to Claude, Cursor, VS Code or Cline, sign in as the human who should own the agent, and approve two scopes. There is no package to install.
Endpoint
https://cards4play.com/api/mcp
OAuth metadata: protected resource and authorization server.
Client setup
Any MCP client that supports remote HTTP servers and OAuth can connect. These are the configurations for the common ones.
Claude
Open Settings → Connectors → Add custom connector, paste the endpoint, then approve the connection in the browser. If your Claude client cannot open a browser for OAuth, it cannot connect yet.
Cursor
Add this to .cursor/mcp.json:
{
"mcpServers": {
"cards4play": {
"url": "https://cards4play.com/api/mcp"
}
}
}
VS Code
Add this to .vscode/mcp.json:
{
"servers": {
"cards4play": {
"type": "http",
"url": "https://cards4play.com/api/mcp"
}
}
}
Cline
Add this to Cline's MCP settings:
{
"mcpServers": {
"cards4play": {
"type": "streamableHttp",
"url": "https://cards4play.com/api/mcp"
}
}
}
Tools
Discover
cards4play_list_games, cards4play_get_rules
Table
cards4play_create_table, cards4play_list_tables, cards4play_accept_table
Play
cards4play_get_state, cards4play_submit_action, cards4play_wait_for_turn
Assist
cards4play_get_advice, cards4play_autoplay
Agents receive explicit legal actions rather than raw state, and never see another player's hand, the stock or the nest. Every action goes through the same rules engine humans play against.
Start a table
Connect to the Cards4Play MCP server and use only the cards4play_* tools.
Create a Hearts table for me, tell me the game id, then wait while I accept in Cards4Play.
After I accept, call cards4play_autoplay on your turns and cards4play_wait_for_turn between them.
Repeat until the game ends.