settings.local.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "permissions": {
  3. "allow": [
  4. "Bash(*)",
  5. "mcp__ide__getDiagnostics",
  6. "Read(//mnt/e/QtwCode/foodie/**)",
  7. "Bash(cat .gitignore)",
  8. "mcp__zai-mcp-server__extract_text_from_screenshot",
  9. "mcp__zai-mcp-server__analyze_image",
  10. "mcp__chrome_mcp_server__chrome_navigate",
  11. "Bash(xargs grep *)",
  12. "Bash(bash *)",
  13. "Bash(echo \".superpowers/\")",
  14. "Bash(sort -u -o \"E:\\\\QtwCode\\\\foodie\\\\foodie_server\\\\.gitignore\" \"E:\\\\QtwCode\\\\foodie\\\\foodie_server\\\\.gitignore\")",
  15. "mcp__chrome_mcp_server__chrome_screenshot",
  16. "mcp__chrome_mcp_server__chrome_computer",
  17. "WebSearch",
  18. "mcp__web-search-prime__web_search_prime",
  19. "mcp__zread__read_file",
  20. "mcp__web-reader__webReader",
  21. "Read(//c/Users/qmj/.claude/**)",
  22. "Bash(npm view *)",
  23. "Bash(npx playwright *)",
  24. "Bash(powershell -ExecutionPolicy Bypass -File \".specify/scripts/powershell/setup-plan.ps1\" -Json)",
  25. "Bash(grep -E \"\\\\.\\(json|js|ts|jsx|tsx|sql|py|java|go\\)$\")",
  26. "Bash(powershell -ExecutionPolicy Bypass -File \".specify/scripts/powershell/check-prerequisites.ps1\" -Json)",
  27. "Bash(powershell -ExecutionPolicy Bypass -File \".specify/scripts/powershell/check-prerequisites.ps1\" -Json -RequireTasks -IncludeTasks)",
  28. "Bash(mvn compile *)",
  29. "mcp__zread__get_repo_structure"
  30. ]
  31. },
  32. "hooks": {
  33. "PreToolUse": [
  34. {
  35. "matcher": "Edit|Write",
  36. "hooks": [
  37. {
  38. "type": "command",
  39. "command": "bash -c 'FILE=\"$CLAUDE_FILE_PATH\"; if echo \"$FILE\" | grep -qiE \"\\.env$|\\.env\\.|application-prod|application-druid\"; then echo \"ERROR: 不允许直接编辑配置文件 $FILE\" >&2; exit 1; fi'"
  40. }
  41. ]
  42. }
  43. ],
  44. "PostToolUse": [
  45. {
  46. "matcher": "Edit|Write",
  47. "hooks": [
  48. {
  49. "type": "command",
  50. "command": "bash -c 'FILE=\"$CLAUDE_FILE_PATH\"; if echo \"$FILE\" | grep -qiE \"\\.java$\"; then cd /e/QtwCode/foodie/foodie_server && mvn compile -pl ruoyi-admin -q 2>&1 | tail -5; fi'"
  51. }
  52. ]
  53. }
  54. ]
  55. }
  56. }