Install
$ agentstack add mcp-dataknifeai-high-command-ui ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
High Command UI
A modern, interactive web-based user interface for the High Command MCP Server. This React + TypeScript application provides a chat-like prompt interface for interacting with the High Command strategic management system.
Features
- 💬 Interactive Chat Interface - Send commands and receive real-time responses
- 📊 Campaign Data Display - View war status and campaign statistics
- 🎖️ Strategic Prompt - Query the High Command system with natural language
- ⚡ Real-time Updates - Live data from the High Command MCP Server
- 🎨 Modern UI - Dark theme with military aesthetic
Available Commands
War Status- Get current campaign statusList Planets- View all planets in the campaignShow Factions- Display faction informationGet Biomes- Information about planetary biomesGet Statistics- Global game statistics
Project Structure
src/
├── components/
│ ├── ChatInterface.tsx # Main chat UI component
│ ├── ChatInterface.css # Chat styling
│ ├── DataDisplay.tsx # Campaign data viewer
│ └── DataDisplay.css # Data display styling
├── services/
│ └── api.ts # High Command API client
├── App.tsx # Main application component
├── App.css # App styling
├── index.css # Global styles
└── main.tsx # Entry point
Setup & Installation
Using Make (Recommended)
make install # Install dependencies
make dev # Start development server (port 3000)
make build # Build for production
make preview # Preview production build
make clean # Clean build artifacts
make info # Show project info
Using npm
- Install dependencies:
npm install
- Start the development server:
npm run dev
The application will open at http://localhost:3000
Building for Production
npm run build
npm run preview
Docker Support
Using Make Commands
make docker-build # Build Docker image
make docker-run # Run production container on port 3000
make docker-stop # Stop and remove container
make docker-clean # Remove Docker image
make docker-dev # Run development container with hot reload
Using Docker Directly
Production Build:
docker build -t high-command-ui:latest .
docker run -d -p 3000:3000 -e API_URL=http://localhost:3001/api high-command-ui:latest
Development with Hot Reload:
docker build -t high-command-ui:dev -f Dockerfile.dev .
docker run -it -v $(pwd):/app -p 3000:3000 -e NODE_ENV=development high-command-ui:dev npm run dev
Using Docker Compose
Production Stack:
docker-compose up -d
Development Stack:
docker-compose -f docker-compose.dev.yml up
Docker Files
- Dockerfile - Multi-stage production build using Alpine Linux
- Dockerfile.dev - Development environment with hot module replacement
- docker-compose.yml - Production compose stack with High Command API
- .dockerignore - Exclude unnecessary files from Docker builds
Configuration
The application uses environment variables for configuration. Create a .env file in the project root with your settings:
cp .env.example .env
Environment Variables
VITE_API_URL- High Command API server base URL (default:http://localhost:5000)VITE_MCP_URL- MCP server endpoint (default:http://localhost:8000)
Example .env file:
VITE_API_URL=http://localhost:5000
VITE_MCP_URL=http://localhost:8000
For Docker deployments, you can pass environment variables:
docker run -e VITE_API_URL=http://api-server:5000 -p 3000:3000 high-command-ui:latest
API Integration
The UI communicates with the High Command MCP Server via REST endpoints:
Available Endpoints
POST /api/command- Execute a strategic commandGET /api/war-status- Fetch current war statusGET /api/campaign- Get campaign informationGET /api/planets- List all planetsGET /api/factions- Get faction dataGET /api/biomes- Get biome informationGET /api/statistics- Get game statisticsGET /api/planets/:index- Get specific planet status
Testing
High Command UI includes comprehensive unit and E2E test coverage.
Unit Testing
Unit tests are powered by Vitest with React Testing Library for component testing.
Run unit tests:
npm run test # Run all unit tests
npm run test:ui # Open Vitest UI dashboard
npm run test:coverage # Generate coverage report
Test files:
src/test/api.test.ts- High Command API service testssrc/test/claude.test.ts- Claude AI service testssrc/test/ChatInterface.test.tsx- Chat component testssrc/test/DataDisplay.test.tsx- Data display component tests
Test coverage includes:
- ✅ API service methods and error handling
- ✅ Claude service integration and tool management
- ✅ Component rendering and user interactions
- ✅ Message submission and keyboard handling
- ✅ Loading states and error boundaries
- ✅ Data formatting and display
UI/E2E Testing
End-to-end tests are powered by Playwright for full browser automation testing.
Run E2E tests:
npm run test:e2e # Run all E2E tests
npx playwright test --ui # Interactive test mode
npx playwright show-report # View HTML test report
Test files:
e2e/chat.spec.ts- Chat interface integration tests
E2E test coverage includes:
- ✅ Welcome message display on load
- ✅ Message sending and response display
- ✅ Quick action button execution
- ✅ Tab navigation (Console, Galactic, News, etc.)
- ✅ Loading state display
- ✅ Keyboard input and Enter key submission
- ✅ Error handling and API unavailability
- ✅ Markdown rendering in responses
- ✅ Multiple sequential messages
- ✅ Rapid message submission handling
Test Configuration
- Vitest Config:
vitest.config.ts- Unit test runner configuration - Playwright Config:
playwright.config.ts- E2E test runner configuration - Test Setup:
src/test/setup.ts- Global test setup, mocks, and fixtures
Running Tests in CI/CD
# Run all tests
npm run test && npm run test:e2e
# Generate coverage report
npm run test:coverage
Tests are configured to run on Chromium, Firefox, and WebKit browsers via Playwright.
Technologies
- React 18 - UI framework
- TypeScript - Type-safe development
- Vite - Fast build tool and dev server
- CSS3 - Modern styling with animations
- Vitest - Unit test framework
- Playwright - E2E test automation
- React Testing Library - Component testing utilities
AI Integration
Claude Haiku 4.5
High Command UI integrates Claude Haiku 4.5 for advanced natural language processing and tactical decision support. Claude analyzes user queries and leverages MCP (Model Context Protocol) tools to:
- Query Intelligence - Understand complex strategic queries and commands
- Context Awareness - Maintain conversation history for multi-turn interactions
- Tool Integration - Automatically select and execute appropriate MCP tools:
get_war_status- Retrieve current campaign statusget_planets- Query planetary dataget_campaign_info- Fetch campaign detailsget_factions- Get faction informationget_biomes- Retrieve biome dataget_statistics- Obtain game statistics
Configuration:
- Set
VITE_CLAUDE_API_KEYenvironment variable with your Anthropic API key - Claude is automatically enabled when the API key is present
- Falls back to keyword matching if no API key is configured
System Prompt Features:
- ✨ Formatted responses using Markdown (no table pipes)
- 📊 Clear data presentation with headers and bullet points
- 🎯 Tactical decision support for Hell Divers 2 command
- 🚀 Optimized for fast inference with Haiku model
License
Licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for the full text.
Copyright 2026 DataKnifeAI
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: DataKnifeAI
- Source: DataKnifeAI/high-command-ui
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.