XcodeBuildMCP icon indicating copy to clipboard operation
XcodeBuildMCP copied to clipboard

[Bug]: Test tools don't convert to OpenAI tools in Codex CLI

Open JonCrawford opened this issue 4 months ago • 0 comments

Bug Description

2025-09-10T04:01:20.413426Z ERROR codex_core::openai_tools: Failed to convert "XcodeBuildMCP__test_device" MCP tool to OpenAI tool: Error("invalid type: map, expected a boolean", line: 0, column: 0)
2025-09-10T04:01:20.413442Z ERROR codex_core::openai_tools: Failed to convert "XcodeBuildMCP__test_macos" MCP tool to OpenAI tool: Error("invalid type: map, expected a boolean", line: 0, column: 0)
2025-09-10T04:01:20.413455Z ERROR codex_core::openai_tools: Failed to convert "XcodeBuildMCP__test_sim" MCP tool to OpenAI tool: Error("invalid type: map, expected a boolean", line: 0, column: 0)

Debug Output

XcodeBuildMCP Doctor

  Generated: 2025-09-10T04:05:24.096Z
  Server Version: 1.12.9

  ## System Information

  - platform: darwin
  - release: 25.0.0
  - arch: arm64
  - cpus: 16 x Apple M4 Max
  - memory: 128 GB
  - hostname: The-Flame.local
  - username: jon
  - homedir: /Users/jon
  - tmpdir: /var/folders/28/c56xj2w50gb70v1y58cdwnd40000gn/T

  ## Node.js Information

  - version: v20.11.1
  - execPath: /usr/local/bin/node
  - pid: 10978
  - ppid: 10916
  - platform: darwin
  - arch: arm64
  - cwd: /Users/jon/Projects/autocode
  - argv: /usr/local/bin/node /Users/jon/.npm/_npx/99336612077b7094/node_modules/.bin/xcodebuildmcp

  ## Xcode Information

  - version: Xcode 26.0 - Build version 17A5305k
  - path: /Applications/Xcode-beta.app/Contents/Developer
  - selectedXcode: /Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild
  - xcrunVersion: xcrun version 72.

  ## Dependencies

  - axe: ✅ Bundled
  - xcodemake: ❌ Not found
  - mise: ❌ Not found

  ## Environment Variables

  - INCREMENTAL_BUILDS_ENABLED: false
  - DEVELOPER_DIR: (not set)
  - HOME: /Users/jon
  - USER: jon
  - TMPDIR: /var/folders/28/c56xj2w50gb70v1y58cdwnd40000gn/T/
  - NODE_ENV: (not set)
  - SENTRY_DISABLED: (not set)
  - XCODEBUILDMCP_SENTRY_DISABLED: false
  - XCODEBUILDMCP_SILENCE_LOGS: true

  ### PATH
  /node_modules/.bin
  /usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin
  /var/folders/28/c56xj2w50gb70v1y58cdwnd40000gn/T/.tmpgSWtPj
  /Users/jon/.nvm/versions/node/v22.16.0/lib/node_modules/@openai/codex/node_modules/@vscode/ripgrep/bin
  /Users/jon/.local/bin
  /Users/jon/.rbenv/bin
  /Users/jon/.pyenv/bin
  ./bin
  /usr/local/bin
  /usr/local/sbin
  /bin
  /Users/holman/.codeium/windsurf/bin
  /opt/homebrew/bin
  /Users/jon/.rbenv/bin
  /Users/jon/.pyenv/bin
  /opt/homebrew/bin
  /opt/homebrew/sbin
  /opt/homebrew/opt/coreutils/libexec/gnubin
  /opt/homebrew/opt/postgresql@15/bin
  /Users/jon/bin
  /Users/jon/.local/bin
  /Users/jon/.dotfiles/bin
  /Users/jon/.pyenv/shims
  /Users/jon/.rbenv/shims
  /Users/jon/.cargo/bin
  /Users/jon/.deno/bin
  /Users/jon/go/bin
  /Users/jon/.bun/bin
  /usr/local/bin
  /usr/bin
  /bin
  /usr/sbin
  /sbin
  /Users/jon/.claude/local/
  /opt/homebrew/bin
  /opt/homebrew/opt/fzf/bin
  /Users/jon/.local/bin
  /usr/ucb
  /Users/jon/.cargo/bin
  /opt/X11/bin
  /usr/local/MacGPG2/bin
  /Library/Frameworks/Python.framework/Versions/3.10/bin
  /System/Cryptexes/App/usr/bin
  /Users/jon/.dotfiles/bin
  ./bin
  /opt/homebrew/opt/[email protected]/libexec/bin
  /usr/local/opt/[email protected]/bin
  /Users/jon/.nvm/versions/node/v22.16.0/bin
  /Users/jon/opt/miniconda3/bin
  /opt/homebrew/opt/libpq/bin
  /Users/jon/.lmstudio/bin
  /usr/local/opt/[email protected]/bin
  /Users/jon/.nvm/versions/node/v22.16.0/bin
  /Users/jon/opt/miniconda3/bin
  /opt/homebrew/opt/libpq/bin
  /Users/jon/.lmstudio/bin
  ## Feature Status

  ### UI Automation (axe)

  - Available: ✅ Yes
  - UI Automation Supported: ✅ Yes

  ### Incremental Builds

  - Enabled: ❌ No
  - Available: ❌ No
  - Makefile exists: ❌ No

  ### Mise Integration

  - Running under mise: ❌ No
  - Mise available: ❌ No

  ### Available Tools

  - Total Plugins: 81
  - Plugin Directories: 12
  - device: 14 tools
  - discovery: 1 tools
  - doctor: 1 tools
  - logging: 4 tools
  - macos: 11 tools
  - project-discovery: 5 tools
  - project-scaffolding: 2 tools
  - simulator: 18 tools
  - simulator-management: 7 tools
  - swift-package: 6 tools
  - ui-testing: 11 tools
  - utilities: 1 tools

  ### Runtime Tool Registration

  - Mode: static
  - Enabled Workflows: 12
  - Registered Tools: 59
  - Workflows: device, discovery, doctor, logging, macos, project-discovery, project-scaffolding, simulator, simulator-management, swift-package, ui-testing, utilities

  ## Tool Availability Summary

  - Build Tools: ✅ Available
  - UI Automation Tools: ✅ Available
  - Incremental Build Support: ❌ Not available

  ## Sentry

  - Sentry enabled: ✅ Yes

  ## Troubleshooting Tips

  - If UI automation tools are not available, install axe: brew tap cameroncooke/axe && brew install axe
  - If incremental build support is not available, you can download the tool from https://github.com/cameroncooke/xcodemake. Make sure it's executable and available in your PATH
  - To enable xcodemake, set environment variable: export INCREMENTAL_BUILDS_ENABLED=1
  - For mise integration, follow instructions in the README.md file

Editor/Client

Codex CLI 0.31.0

MCP Server Version

latest

LLM

GPT-5

MCP Configuration

[mcp_servers.XcodeBuildMCP]
command = "npx"
args = ["-y", "xcodebuildmcp@latest"]
env = { "INCREMENTAL_BUILDS_ENABLED" = "false", "XCODEBUILDMCP_SENTRY_DISABLED" = "false"} #, XCODEBUILDMCP_ENABLED_WORKFLOWS = "simulator,project-discovery,simulator-management" }

Steps to Reproduce

Ask Codex CLI to run your project's tests via XcodBuildMCP

Expected Behavior

All tools should be available in Codex CLI.

Actual Behavior

Some or all test tools are not available.

Error Messages


JonCrawford avatar Sep 10 '25 04:09 JonCrawford