opencode.json 477 B

12345678910111213141516171819202122232425
  1. {
  2. "$schema": "https://opencode.ai/config.json",
  3. "mcp": {
  4. "weather": {
  5. "type": "local",
  6. "command": ["opencode", "x", "@h1deya/mcp-server-weather"]
  7. }
  8. },
  9. "experimental": {
  10. "hook": {
  11. "file_edited": {
  12. ".json": [
  13. {
  14. "command": ["bun", "run", "prettier", "$FILE"]
  15. }
  16. ]
  17. },
  18. "session_completed": [
  19. {
  20. "command": ["touch", "./node_modules/foo"]
  21. }
  22. ]
  23. }
  24. }
  25. }