Runs a specified command automatically when a new Claude Code session begins.
/plugin marketplace add reggiechan74/cc-plugins/plugin install google-workspace-mcp@cc-pluginsDefined in hooks/hooks.json
{
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash -c 'if [ ! -f ~/.gmail-mcp/credentials.json ] || [ ! -f ~/.calendar-mcp/credentials.json ]; then echo \"Google Workspace MCP: Credentials missing. Run /authenticate to set up OAuth.\"; fi'",
"timeout": 5
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 1
},
"eventStats": {
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}