@anouar-bm/bayane
v1.0.0
Published
CLI and MCP server for hospital satisfaction survey data
Readme
bayane
CLI and MCP server for hospital satisfaction survey data.
Install
npm install -g @anouar-bm/bayaneOr run without installing:
npx @anouar-bm/bayane setupQuick start
bayane setup # enter your API URL and key
bayane stats # satisfaction stats for the last 7 daysCommands
bayane setup # configure API URL and key (~/.health-survey-rc)
bayane whoami # show current config
bayane stats # stats for last 7 days
bayane stats --period 30d # stats for last 30 days
bayane stats --period all # all-time stats
bayane alerts # critical alerts from last 7 days
bayane report --latest # download latest PDF report
bayane report --date 2026-03-21 # download report for a specific date
bayane report --output ~/out.pdf # save to a custom pathAuth
bayane setup stores an API key (sk_*) in ~/.health-survey-rc (mode 0600). Keys are created from the admin dashboard and never expire.
MCP server
bayane also ships as an MCP server so Claude Code and claude.ai can query hospital data directly.
Add to ~/.claude/mcp.json:
{
"health-survey": {
"command": "node",
"args": ["<path-to>/node_modules/@anouar-bm/bayane/dist/mcp/index.js"]
}
}Available MCP tools: get_stats, get_alerts, download_report, display_report.
Claude Code skill
Install the companion skill for natural-language queries inside Claude Code:
npx skills add https://github.com/anouar-bm/bayaneThen use /bayane inside any Claude Code session to ask questions like "show me NPS for the last 30 days".
Requirements
- Node.js >= 18
- Access to a running 1337 hospital survey API
