Can I use · Agent
Can I use Hooks?
| Client | Hooks |
|---|---|
| Claude Code | YesHooks are commands, HTTP calls, MCP tool calls, or prompts on events such as PreToolUse, set in settings.json or a plugin. source · 2026-11-30 |
| Claude Desktop / claude.ai | UnknownThe custom-connector article checked for the install guide does not say whether this works. source · 2026-10-25 |
| ChatGPT | UnknownThe install guide checked on 2026-10-25 does not say whether this works. source · 2026-10-25 |
| Cursor | YesHooks are scripts in .cursor/hooks.json or ~/.cursor/hooks.json, on events such as preToolUse and beforeShellExecution. source · 2026-11-30 |
| VS Code | UnknownThe "Add and use MCP servers" page does not say whether this works. source · 2026-11-29 |
| Codex | YesHooks are on by default: scripts or MCP tools on events such as PreToolUse, in hooks.json or config.toml, trusted before they run. Cloud runs only managed MCP hooks. source · 2026-11-30 |
| Gemini CLI | YesHooks are scripts in settings.json on events such as BeforeTool and AfterTool. Extensions can add their own. source · 2026-11-30 |
| Copilot CLI | UnknownThe "add MCP servers" page does not say whether this works. source · 2026-11-29 |
| Windsurf | YesHooks are commands or prompts on agent events, configured in .devin/hooks.v1.json. They do not run in Restricted Mode. source · 2026-11-29 |
| Zed | UnknownThe MCP docs does not say whether this works. source · 2026-11-29 |
| OpenCode | UnknownThe MCP server docs does not say whether this works. source · 2026-11-29 |
| Kiro | UnknownThe MCP configuration page does not say whether this works. source · 2026-11-29 |
| Cline | UnknownThe MCP overview does not say whether this works. source · 2026-11-29 |
- Claude CodeYes · checked 2026-11-30
Hooks are commands, HTTP calls, MCP tool calls, or prompts on events such as PreToolUse, set in settings.json or a plugin.
- Claude Desktop / claude.aiUnknown · checked 2026-10-25
The custom-connector article checked for the install guide does not say whether this works.
- ChatGPTUnknown · checked 2026-10-25
The install guide checked on 2026-10-25 does not say whether this works.
- CursorYes · checked 2026-11-30
Hooks are scripts in .cursor/hooks.json or ~/.cursor/hooks.json, on events such as preToolUse and beforeShellExecution.
- VS CodeUnknown · checked 2026-11-29
The "Add and use MCP servers" page does not say whether this works.
- CodexYes · checked 2026-11-30
Hooks are on by default: scripts or MCP tools on events such as PreToolUse, in hooks.json or config.toml, trusted before they run. Cloud runs only managed MCP hooks.
- Gemini CLIYes · checked 2026-11-30
Hooks are scripts in settings.json on events such as BeforeTool and AfterTool. Extensions can add their own.
- Copilot CLIUnknown · checked 2026-11-29
The "add MCP servers" page does not say whether this works.
- WindsurfYes · checked 2026-11-29
Hooks are commands or prompts on agent events, configured in .devin/hooks.v1.json. They do not run in Restricted Mode.
- ZedUnknown · checked 2026-11-29
The MCP docs does not say whether this works.
- OpenCodeUnknown · checked 2026-11-29
The MCP server docs does not say whether this works.
- KiroUnknown · checked 2026-11-29
The MCP configuration page does not say whether this works.
- ClineUnknown · checked 2026-11-29
The MCP overview does not say whether this works.
Other features: Tools · Prompts · Resources · Remote · stdio · OAuth · Sampling · Elicit · Roots · Apps · Skills · Rules
FAQ
Which AI clients support Hooks?+
Claude Code, Cursor, Codex, Gemini CLI, Windsurf
What does Unknown mean on this page?+
The page I checked for that client, linked in the cell, does not say either way. It is not a claim that the feature is missing.