loading…
Search for a command to run...
loading…
Provides an interactive blackjack game with standard rules via MCP tools and a web UI, enabling actions like hit, stand, and double down.
Provides an interactive blackjack game with standard rules via MCP tools and a web UI, enabling actions like hit, stand, and double down.
A Model Context Protocol (MCP) server that provides an interactive blackjack game experience using MCP-UI. This server exposes blackjack game functionality through MCP tools and provides a web-based UI for playing the game.
This MCP server is built using a full-stack React Router application with integrated MCP capabilities:
src/tools/): Game actions exposed as MCP tools for external clientssrc/ui/routes/): React Router components for the web interfacesrc/lib/game.ts): Core blackjack game logic and state managementsrc/framework/): Custom MCP server implementation with Express integrationblackjack-new-game: Start a new blackjack gameblackjack-hit: Hit (take another card)blackjack-stand: Stand (end turn)blackjack-double: Double downblackjack-split: Split pairsblackjack-surrender: Surrender handblackjack-take-insurance: Take insurance betblackjack-decline-insurance: Decline insuranceInstall the dependencies:
npm install
Start the development server:
npm run dev
The server will be available at:
http://localhost:5173/game/:idhttp://localhost:5173/mcpCreate a production build:
npm run build
Start the production server:
npm run start
npm run dev - Start development server with HMRnpm run build - Create production buildnpm run start - Run production servernpm run typecheck - Run TypeScript type checkingnpm run lint - Run ESLint and Prettier checksnpm run format - Format code with Prettierhttp://localhost:5173The server exposes MCP tools that can be consumed by MCP clients:
// Example MCP tool call
{
"method": "tools/call",
"params": {
"name": "blackjack-new-game",
"arguments": {
"bet": 10
}
}
}
src/
├── framework/ # Custom MCP framework
│ ├── mcp-server.ts # MCP server implementation
│ └── middleware.ts # Express middleware integration
├── lib/ # Utility libraries
│ ├── game.ts # Core blackjack game logic
│ ├── db.ts # Game state persistence
│ └── shell.ts # Shell execution utilities
├── tools/ # MCP tools definitions
│ ├── index.ts # Tool exports
│ └── blackjack.ts # Blackjack game tools
└── ui/ # React Router frontend
├── routes/ # Route components
│ └── blackjack.tsx # Main game interface
└── welcome/ # Welcome page assets
Build and run using Docker:
docker build -t blackjack-mcp .
docker run -p 3000:3000 blackjack-mcp
The containerized application can be deployed to any platform supporting Docker:
PORT - Server port (default: 3000 in production, 5173 in development)NODE_ENV - Environment modenpm run lint && npm run typecheckApache 2.0 License - see LICENSE file for details.
Built with ❤️ using React Router, MCP, and the engine-blackjack library.
Выполни в терминале:
claude mcp add blackjack-mcp-server -- npx Extract design specs and assets
автор: FigmaSearch and retrieve company logos by brand or domain. Customize size, format, and theme to match your design needs. Accelerate design, prototyping, and content
автор: NOVA-3951An Open-Sourced UI to install and manage MCP servers for Windows, Linux and macOS.
Build, validate, and deploy multi-agent AI solutions on the ADAS platform. Design skills with tools, manage solution lifecycle, and connect from any AI environm
автор: ariekoganНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории design