Whagons MCP
OfficialREADME.md
# Whagons CLI & MCP
The unified Rust command-line interface and Model Context Protocol (MCP) server for Whagons.
One binary (`whagons`, with a `whagons-mcp` compatibility alias) covers everyday tasks, workspaces, reference data, the 1,000+ function catalog, customer verticals, live collection policies, safe batched migrations, and embedded engineering skills.
This repository also hosts the Cloudflare Worker remote MCP server (`remote-mcp/`, deployed at `https://mcp.whagons.com/mcp` for staging) and official connector listing manifests (`listings/`).
> Targets the Gonvex v2 **staging** stack (`https://api.staging.whagons.com`) and isolated Cloudflare Workers Gonvex stacks by default. Legacy production (`--env production`) remains supported via API keys (`--with-token`).
## Install
### npm (macOS, Linux, Windows)
```sh
npm install -g whagons
```
### Homebrew (macOS & Linux)
```sh
brew install whagons-international/tap/whagons
```
### Standalone installer (no Node.js required)
macOS / Linux:
```sh
curl -fsSL https://docs.staging.whagons.com/install.sh | sh
```
Windows (PowerShell):
```powershell
irm https://docs.staging.whagons.com/install.ps1 | iex
```
All install methods provide the same native Rust binary (`whagons`) plus a `whagons-mcp` compatibility alias.
## Connect an AI App
### Local MCP (Claude Code, Codex, Cursor, Windsurf, Gemini CLI)
```json
{
"mcpServers": {
"whagons": {
"command": "whagons",
"args": ["mcp"]
}
}
}
```
### Remote MCP (Claude.ai, ChatGPT, Cursor)
Connect to the hosted Streamable HTTP MCP server with OAuth 2.1:
```text
https://mcp.whagons.com/mcp
```
## Log in
```sh
# 8-letter browser code approval (/cli/authorize)
whagons auth login
# Agents without a browser
whagons auth login --no-wait --json
whagons auth wait
# With an existing API key
printf '%s' "$KEY" | whagons auth login --with-token --tenant whagons
# Direct Cloudflare Workers Gonvex stack
printf '%s' "$PASSWORD" | whagons auth login \
--gonvex-url https://<worker>.workers.dev \
--project <project-id> \
--tenant <tenant-id> \
--email admin@example.com \
--password-stdin
```
`whagons whoami` shows who you act as. `whagons auth logout` removes the local profile and revokes the gateway API key.
## Common Commands
```sh
# Tasks
whagons tasks list --mine
whagons tasks list --workspace Desarrollo --status "en revisión"
whagons tasks create --name "Inspect chiller" --workspace Operations --assign me --due tomorrow
whagons tasks update 3465 --status "en revisión"
whagons tasks comment 3465 "Checked on site"
whagons tasks logs 3465
# Reference data & function catalog
whagons workspaces
whagons functions search approval
whagons functions describe tasks.updateByNumericId
whagons call tasks.updateByNumericId -a numericId:=3465 -a updates:='{"name":"Updated"}'
whagons api GET tasks -Q assignedToMe=true
# Customer verticals & embedded engineering skills
whagons vertical check .
whagons vertical config --plugin vertical-acme
whagons vertical set-policies --plugin vertical-acme --collections '{"history-*":{"write":"managers"}}'
whagons vertical stats --plugin vertical-acme
whagons vertical migrate --plugin vertical-acme --source old --target new --operation copy
whagons skill list
whagons skill show data-oriented
# Documentation & offline agent guide
whagons guide
whagons docs search "api keys"
```
## Development
```sh
cargo test --all-targets
cargo run -- --help
(cd remote-mcp && npm ci && npx tsc --noEmit && npm test)
```
## License
MIT — see [LICENSE](LICENSE). Covers this repository, not the hosted Whagons service.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues