Skip to content

XCode MCP cannot run tests #20025

Description

@gondalez

Description

Hi & thanks for the great tool 🙏

I am using the (relatively) new xcode mcp server.
It is a great solution for running in a sandbox like nono.

I am able to use it to grep things and run a build.

However, when I ask it to run tests it is tripped up by an mcp validation error:

Can you run the tests for this project? Use xcode mcp
⚙ xcode_RunAllTests [tabIdentifier=windowtab1]
MCP error -32602: Structured content does not match the tool's output schema: data/results/0 must have required property 'errors', data/results/1 must have required property 'errors', data/results/2 must have required property 'errors'

Has anyone come up with a fix for this.
It does seem like an apple bug, but I found mention online of other agents allowing schema validation to be disabled, which might be a nice workaround since the command does run the tests.
The error does mean the model can never see the errors, which stops test runs from being useful.

Any ideas or help would be much appreciated 🙏

Plugins

Nnoe

OpenCode version

1.3.7

Steps to reproduce

Enabled in xcode like this:

Image

Configured in opencode like this:

.config/opencode/opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  ...
  "mcp": {
    "xcode": {
      "type": "local",
      "command": ["xcrun", "mcpbridge"],
      "enabled": true,
      "environment": {}
    }
  }
}

Start a generic ios project in xcode with some tests.

Ask the agent to run the tests for the project using the mcp.

Screenshot and/or share link

No response

Operating System

macOS 26.4

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions