Agent support · Hooks & Lifecycle

Control MCP tool use

Dedicated hooks for MCP server tool invocations — audit, restrict, or modify MCP tool calls independently from built-in tools

Tool-Specific Hooks Hooks & Lifecycle
Supported
Partial
No
Unknown
Claude Code Current · Jun 2026
Cline CLI Current · Jun 2026
Codex CLI Current · Jun 2026
GitHub Copilot CLI Current · Jun 2026
Cursor Current · Jun 2026
2.1.119 - 2.1.197
3.0.0 - 3.0.34
0.123.0 - 0.142.4
1.0.35 - 1.0.66
3.7 - 3.9
2.1.20 - 2.1.118
0.92.0 - 0.122.0
0.0.396 - 1.0.34
2.5 - 3.2
2.1.16 - 2.1.19
0.89.0 - 0.91.0
0.0.389 - 0.0.395
2.4
2.0.0 - 2.1.15
0.44.0 - 0.88.0
0.0.374 - 0.0.388
1.7 - 2.0
1.0.38 - 1.0.128
0.2.0 - 0.42.0
1.2
0.2.31 - 1.0.37
0.45 - 1.0

Supported by 4 of 5 agents.

HoverTap any cell for version details.

Agent event mapping

  • claude-code PreToolUse with mcp__* matcher, Elicitation, ElicitationResult
  • codex-cli PreToolUse (MCP observation added 0.124.0)
  • cursor beforeMCPExecution, afterMCPExecution

Sub-capabilities

  • Block or audit specific MCP tool calls
  • Cursor: dedicated MCP events separate from generic tool hooks
  • Claude Code: uses PreToolUse with regex matcher on mcp__<server>__<tool>; also has Elicitation hooks
  • Codex CLI: MCP tool observation added in 0.124.0