CLI Commands¶
The Aha! MCP server can also be used as a command-line tool for testing and scripting.
Global Flags¶
| Flag | Environment Variable | Description |
|---|---|---|
--subdomain |
AHA_DOMAIN |
Aha! subdomain |
--api-key |
AHA_API_TOKEN |
Aha! API key |
--vault |
OMNITOKEN_VAULT_URI |
Vault URI for credentials |
--credentials-name |
OMNITOKEN_CREDENTIALS_NAME |
Name of credentials in vault |
-o, --output |
- | Output format: json (default) or pretty |
Server Commands¶
serve¶
Start the MCP server (default when no command specified).
version¶
Print version information.
Aha! Commands¶
search-documents¶
Search for documents.
aha-mcp-server search-documents "product roadmap"
aha-mcp-server search-documents "auth" --type Page --limit 5
| Flag | Description |
|---|---|
--type |
Document type (e.g., Page) |
--limit |
Maximum results |
get-idea¶
Get an idea by ID.
list-ideas¶
List ideas with filtering.
aha-mcp-server list-ideas
aha-mcp-server list-ideas --query "mobile" --workflow-status "Under consideration"
aha-mcp-server list-ideas --tag "priority" --sort recent --per-page 20
| Flag | Description |
|---|---|
-q, --query |
Search term |
--spam |
Show spam ideas |
--workflow-status |
Filter by status |
--sort |
Sort by: recent, trending, popular |
--created-before |
Created before date (ISO8601) |
--created-since |
Created after date (ISO8601) |
--updated-since |
Updated after date (ISO8601) |
--tag |
Filter by tag |
--user-id |
Filter by creator |
--page |
Page number |
--per-page |
Results per page |
get-feature¶
Get a feature by ID.
get-epic¶
Get an epic by ID.
get-release¶
Get a release by ID.
get-goal¶
Get a goal by ID.
get-initiative¶
Get an initiative by ID.
get-key-result¶
Get a key result by ID.
get-persona¶
Get a persona by ID.
get-requirement¶
Get a requirement by ID.
get-team¶
Get a team by ID.
get-user¶
Get a user by ID.
get-workflow¶
Get a workflow by ID.
get-comment¶
Get a comment by ID.
Examples¶
Scripting with JSON¶
# Get feature and extract name with jq
aha-mcp-server get-feature FEAT-123 | jq '.feature.name'
# List ideas and count them
aha-mcp-server list-ideas --query "mobile" | jq '.ideas | length'
# Search and format results
aha-mcp-server search-documents "roadmap" | jq -r '.results[].title'