Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:28:32 +08:00
commit ccd65b7f43
4 changed files with 97 additions and 0 deletions

37
hooks/hooks.json Normal file
View File

@@ -0,0 +1,37 @@
{
"hooks": {
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "curl -s -X POST \"http://localhost:${MCP_VOICE_HOOKS_PORT:-5111}/api/hooks/stop\" || echo '{}'"
}
]
}
],
"PreToolUse": [
{
"matcher": "_voice-hooks__speak$",
"hooks": [
{
"type": "command",
"command": "curl -s -X POST \"http://localhost:${MCP_VOICE_HOOKS_PORT:-5111}/api/hooks/pre-speak\" || echo '{}'"
}
]
}
],
"PostToolUse": [
{
"matcher": "^(?!.*_voice-hooks__)",
"hooks": [
{
"type": "command",
"command": "curl -s -X POST \"http://localhost:${MCP_VOICE_HOOKS_PORT:-5111}/api/hooks/post-tool\" || echo '{}'"
}
]
}
]
}
}