Skip to content

Recognize MCP tool hook configurations - #37363

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ff7e2d12b75b486c54d63469af547a29f9b31418
Aug 7, 2026
Merged

Recognize MCP tool hook configurations#37363
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ff7e2d12b75b486c54d63469af547a29f9b31418

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 7, 2026

Copy link
Copy Markdown

Recognize MCP tool hook configurations

What changed

  • Parse mcp_tool hook handlers with a server, tool, JSON input, and optional timeout and status message.
  • Return managed MCP tool hooks from configRequirements/read and include the handler in the generated protocol schemas.
  • Skip MCP tool hooks during discovery with an explicit warning until execution is supported.

Testing

  • Cover MCP tool hook deserialization, including nested and null JSON input values.
  • Extend the config requirements RPC test to verify the new handler shape.

## What changed

- Parse `mcp_tool` hook handlers with a server, tool, JSON input, and optional timeout and status message.
- Return managed MCP tool hooks from `configRequirements/read` and include the handler in the generated protocol schemas.
- Skip MCP tool hooks during discovery with an explicit warning until execution is supported.

## Testing

- Cover MCP tool hook deserialization, including nested and null JSON input values.
- Extend the config requirements RPC test to verify the new handler shape.

GitOrigin-RevId: ff7e2d12b75b486c54d63469af547a29f9b31418
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ff7e2d12b75b486c54d63469af547a29f9b31418 branch from 899322b to 81b9bc2 Compare August 7, 2026 03:31
@copyberry
copyberry Bot merged commit 81b9bc2 into main Aug 7, 2026
29 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ff7e2d12b75b486c54d63469af547a29f9b31418 branch August 7, 2026 03:32
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants