Claude Code
Two scopes: global (all projects) or project (this repo only).
Auto-install — global scope
npm install -g @betterness/cli
betterness auth login
betterness mcp install claude-code
Writes to ~/.claude/settings.json. Available in every Claude Code session.
Auto-install — project scope
betterness mcp install claude-code --scope project
Writes to .mcp.json in the current directory. Only available when Claude Code runs from this project.
Manual configuration
| Scope | File |
|---|---|
| Global | ~/.claude/settings.json |
| Project | .mcp.json (project root) |
{
"mcpServers": {
"betterness": {
"url": "https://api.betterness.ai/mcp",
"headers": {
"Authorization": "Bearer bk_your_api_key_here"
}
}
}
}
Test it
In a Claude Code session, ask: "Show my last 7 days of activity from Betterness."
Uninstall
betterness mcp uninstall claude-code # global
betterness mcp uninstall claude-code --scope project

