Add MCP server:
$ claude mcp add ccapproval --scope user \
-e "SLACK_BOT_TOKEN=xoxb-..." \
-e "SLACK_APP_TOKEN=xapp-..." \
-e "SLACK_CHANNEL=channel for communication" \
-e "SLACK_MENTION=username for mention (optional)" \
-- npx ccapproval@0.0.7Or use MCP config file:
$ claude --mcp-config ~/.config/ccapproval/mcp.json ...Example: ./examples/mcp-config/
$ claude --permission-prompt-tool mcp__ccapproval__tool-approval -p [prompt]- The
--permission-prompt-tooloption only works in non-interactive mode in combination with the-pflag. It does not work in interactive mode. - Hooks are available in interactive mode, but they cannot selectively react only when permission prompts are displayed during pre-use tool events, so this tool does not currently support it.
alias claude-p='claude --permission-mode acceptEdits --mcp-config ~/.config/ccapproval/mcp.json --permission-prompt-tool mcp__ccapproval__tool-approval -p'| Issue | Solution |
|---|---|
| Auth errors | Check token format and whitespace |
| Reactions not working | Verify bot is in channel |
| Channel not found | Remove # from channel name |
$ claude --debug --mcp-config ~/.config/ccapproval/mcp-debug.json --permission-prompt-tool mcp__ccapproval__tool-approval -p [prompt]~/.config/ccapproval/mcp-debug.json:
{
"mcpServers": {
"ccapproval": {
"command": "bash",
"args": [
"-c",
"npx ccapproval@0.0.7 2> >(systemd-cat -p err -t ccapproval)"
],
"env": {
"CCAPPROVAL_DEBUG": "true",
"SLACK_BOT_TOKEN": "xoxb-****",
"SLACK_APP_TOKEN": "xapp-****",
"SLACK_CHANNEL": "channel for communication",
"SLACK_MENTION": "username for mention (optional)"
}
}
}
}See debug logs:
$ journalctl -u ccapproval.service -f- Create App: https://api.slack.com/apps → New App → From scratch → Name:
ccapproval - Socket Mode: Settings → Socket Mode → Enable
- App Token: Basic Information → App-Level Tokens → Add
connections:writescope → Savexapp-... - Bot Token: OAuth & Permissions → Add scopes (
channels:read,chat:write,chat:write.public,reactions:write) → Install → Savexoxb-... - Interactivity: Interactivity & Shortcuts → Enable
/invite @ccapprovalin the channel
