Content
# AIDocAdvise CLI
AI-powered medical information for coding agents. NHS, NICE, BNF, MHRA sourced guidance in one command.
## Quick Start
```bash
npm install -g aidocadvise
adx signup my-practice --local
adx ask "NHS referral pathway for suspected Type 2 diabetes"
```
## Commands
| Command | Description |
|---------|-------------|
| `adx signup <slug>` | Create account, get API key |
| `adx login --key <key>` | Save existing API key |
| `adx ask "query"` | Ask a medical information question |
| `adx ask "query" --json` | Raw JSON output (for piping) |
| `adx balance` | Check remaining sessions |
| `adx history` | Recent research sessions |
| `adx me` | Account info |
| `adx topup` | Request credits |
| `adx mcp-serve` | Start MCP server (stdio) |
## MCP Integration
Add to your `.mcp.json`:
```json
{
"mcpServers": {
"aidocadvise": {
"type": "stdio",
"command": "adx",
"args": ["mcp-serve"]
}
}
}
```
## Coverage
- **46K+ medical rules** from 8 NHS sources
- **10 expert agents**: Symptoms, Medications, Referrals, Mental Health, Chronic Conditions, Emergency Triage, Patient Rights, Women's Health, Paediatrics, Prescribing
- **Sources**: NHS Pathways, NICE Guidelines, BNF, MHRA, ICD-11, MedlinePlus, Orphanet
## Agent Rules Snippet
Add to your project rules file:
```markdown
## AIDocAdvise
Use the adx CLI for medical information research.
API key is in .adx/config.json (auto-loaded).
- adx ask "your medical question" — get sourced medical information
- adx balance — check remaining sessions
- adx --help — full reference
```
## Config Priority
`--key` flag > `ADX_API_KEY` env > `.adx/config.json` (local) > `~/.adx/config.json` (global)
## Terms
Health information for guidance only. Not medical advice. Always consult your GP or NHS 111.
- https://aidocadvise.com/disclaimer
- https://aidocadvise.com/terms
---
Tyga.Cloud Ltd (UK #14643275) | https://aidocadvise.com