[BUG] Computer Use MCP: Cannot read properties of undefined (registerEscape / checkAccessibility)

Resolved 💬 8 comments Opened Mar 31, 2026 by kanzashi-ai Closed May 5, 2026

Description

Computer Use MCP shows as "connected" in /mcp but all tool calls fail with internal JavaScript errors.

Error Messages

screenshot tool:

Cannot read properties of undefined (reading 'registerEscape')

request_access tool:

Cannot read properties of undefined (reading 'checkAccessibility')

Environment

  • Claude Code version: 2.1.88
  • macOS version: 26.4 (25E246)
  • Node.js version: v22.17.0
  • Machine: MacBook Pro
  • Plan: Max (Computer Use should be available)

Permissions Verified

  • ✅ Accessibility: Claude + Terminal both enabled
  • ✅ Screen Recording: Claude + Terminal both enabled
  • ✅ Computer Use MCP status: "connected" (shown in /mcp)

Steps to Reproduce

  1. Open Claude Code CLI (v2.1.88)
  2. Run /mcp — Computer Use shows as connected
  3. Call screenshot tool → Error: Cannot read properties of undefined (reading 'registerEscape')
  4. Call request_access tool → Error: Cannot read properties of undefined (reading 'checkAccessibility')

What I've Tried

  • Restarting Claude Code multiple times
  • Reconnecting MCP via /mcp
  • Verifying all macOS permissions (Accessibility + Screen Recording)
  • Confirmed Node.js v22 (not v25 which has known issues)

Expected Behavior

request_access should show the permission dialog, and screenshot should capture the screen.

Actual Behavior

Both tools throw TypeError: Cannot read properties of undefined immediately, suggesting an internal object is not initialized despite the MCP connection being established.

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗