CLI & MCP Server
One static binary that lets both AI Agents and humans operate Flash Warehouse WMS from the command line. macOS, Linux, Windows. Zero runtime dependencies.
What is MCP?
The Model Context Protocol (MCP) is an open protocol that allows AI Agents to call external tools in a standardized way. fwh implements a complete MCP Server — an AI Agent can query inventory, create bills, manage products — like a digital employee who understands your business.
// AI Agent → MCP Protocol → fwh → WMS Backend
Agent: "What beverages do we have in stock?"
fwh: goods_list → API → response
Agent: "Found 4 beverages. Highest stock: Dongpeng Energy (102 units)"
Supported AI Agents
~/.claude/mcp.json~/.cursor/mcp.json~/.codeium/windsurf/mcp_config.jsonSafety Model
fwh is the security boundary the backend lacks. Triple protection ensures Agents cannot exceed their authority.
All operations require terminal login first. Agents cannot bypass authentication. Passwords never appear in conversation history.
Data scope is locked to the current account at login time, stored in an unexported Go struct field. No parameter can override it.
Write operations are disabled by default. Requires explicit --enable-writes flag. All write tool descriptions start with WARNING:.
110 MCP Tools
Covering purchasing, sales, inventory, finance, staff, BI, and every business module
Get Started in 3 Steps
Install fwh
Download the binary for your platform, or build from source
chmod +x fwh-darwin-arm64
mv fwh-darwin-arm64 /usr/local/bin/fwhLogin
Log in with your phone number to establish a secure session
fwh login --user 13800138000
# Password: ********
# logged in as 13800138000 (user_id=1)Configure AI Agent
Add the MCP Server config to your Agent settings
# ~/.claude/mcp.json
{
"mcpServers": {
"flash-warehouse": {
"command": "/usr/local/bin/fwh",
"args": ["mcp", "--enable-writes"]
}
}
}Download
Single static binary. No runtime dependencies. Works out of the box.
Build from source: go build -o fwh ./cmd/fwh
Real-world Workflows
Agent monitors stock alerts, generates purchase suggestions, and after confirmation creates purchase orders and tracks receipts.
Scan or voice-input barcodes. Agent checks stock, creates shipment bills, and approves — all in one flow.
Query sales trends, inventory turnover, and receivables/payables in natural language. Agent calls BI tools to generate reports.
Agent creates stocktake tasks, assigns by warehouse, aggregates discrepancies in real-time, and auto-generates adjustment bills.
Let AI Be Your Warehouse Assistant
Download fwh CLI. Connect your AI Agent in 3 minutes.
$Try Flash Warehouse Free>>>