xcode: mcpbridge requires unavailable device-interaction skill

オープン
#67,046 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
46/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

Start by reproducing the skill load through the configured /usr/bin/xcrun mcpbridge server and the DeviceInteractionStartWorkspaceSession workflow described in the issue. Inspect OpenCode’s skill discovery and loading behavior alongside the MCP-provided skillToTrigger contract; the issue names no source files or tests. Done means device-interaction can be loaded and used for simulator interactions, or the workflow explicitly reports itself as unsupported and documents a supported resolution.

索引モデルが issue の本文から書いたものです。

説明

area/mcp platform/macos type/feature version/v2

Summary

Apple's Xcode mcpbridge successfully exposes build and simulator tools to OpenCode, but its device-interaction workflow explicitly requires a device-interaction skill that OpenCode cannot load. This blocks automated simulator verification. Reporting as an integration compatibility gap; it is not yet established whether the missing dependency should be supplied by OpenCode or Apple.

Environment

  • opencode version: 2.4.2 (runtime diagnostics snapshot; independent CLI verification unavailable because opencode --version returns zsh:1: command not found: opencode)
  • Client: OpenCode desktop app (confirmed by user)
  • Model and provider: openai/gpt-6-astra
  • OS: Darwin 27.2.0, arm64 (runtime snapshot)
  • Terminal: Unavailable: terminal environment variables are not set
  • Shell: /bin/zsh
  • Install/channel: latest (runtime snapshot)
  • Active plugins: None found in config by runtime snapshot; no global cli.json* or project .opencode/plugin/ / .opencode/plugins/ files found
  • Xcode: 27.2, build 27B52 (verified with xcodebuild -version)
  • MCP transport: Local stdio through /usr/bin/xcrun mcpbridge
  • Release comparison: gh release view --repo anomalyco/opencode --json tagName returned v1.19.6; this does not establish whether the V2 installation is current.

Reproduction

  1. Configure Apple's Xcode MCP bridge as shown below and open an iOS project in Xcode.
  2. Call XcodeListWorkspaces and use the returned workspace identifier.
  3. Call DeviceInteractionStartWorkspaceSession with that identifier, a session label, and an available simulator (iPhone Duo in this case).
  4. Observe that the response names device-interaction as skillToTrigger and explicitly requires loading it before delegating interactions.
  5. Call OpenCode's skill tool with {"id":"device-interaction"}.
  6. Observe Unable to load skill device-interaction.

Expected Behavior

The Xcode device-interaction workflow should have a supported way to obtain/load its required instructions, or clearly explain that this workflow is unsupported and how to resolve the dependency. A successfully started simulator session should not lead to an unavailable mandatory skill.

Actual Behavior

Relevant fields from the successful DeviceInteractionStartWorkspaceSession response (device UUID and session key omitted):

{
  "deviceIsSimulator": true,
  "skillToTrigger": "device-interaction",
  "summary": "To interact with the session, you MUST spawn a SUBAGENT using the device-interaction skill. Your next step is to:\n1. Load the device-interaction skill now (unless already loaded)\n2. [Optional] Modify code in the project and install&run the application with DeviceInteractionInstallAndRun tool\n3. Spawn new subagent that has to load the device-interaction skill internally and independently perform interactions\n4. Based on the subagent response, you may need to modify code in the project. If so, move to Step 2, otherwise continue to the next step\n5. End the session with DeviceInteractionEndSession\nImportant notes:\n* All interaction events MUST be performed by a subagent\n* Subagents MUST load the device-interaction first - include that in its initialization"
}

OpenCode skill call:

{"id":"device-interaction"}

Exact response, observed on the initial attempt and two subsequent explicit retries:

{
  "error": {
    "type": "tool.execution",
    "message": "Unable to load skill device-interaction"
  },
  "content": []
}

After the initial failure, cleanup through DeviceInteractionEndSession returned:

{"userMessage":"Session doesn't exist anymore"}

Additional Context

Relevant config only:

{
  "mcp": {
    "servers": {
      "xcode": {
        "type": "local",
        "command": ["/usr/bin/xcrun", "mcpbridge"],
        "environment": {
          "DEVELOPER_DIR": "/Applications/Xcode.app/Contents/Developer"
        }
      }
    }
  }
}
  • BuildProject succeeded using the workspace identifier returned by XcodeListWorkspaces: {"buildResult":"The project built successfully.","elapsedTime":11.177,"errors":[]} (log path omitted).
  • Listing Xcode MCP resources returned {"resources":[],"templates":[]}.
  • Filename searches under the OpenCode global config directory and /Applications/Xcode.app/Contents did not locate device-interaction. This was not an exhaustive content search.
  • The user explicitly authorized subagent delegation on the latest retry; loading the skill still failed.
  • /reload was suggested, but its execution is not confirmed by the available evidence.
  • No matching log entries were found for Unable to load skill device-interaction or skill.*device-interaction in OpenCode's log directory. The exact tool responses above are the available failure evidence.
  • The documented skill discovery behavior does not promise automatic installation of arbitrary MCP-referenced skills. The compatibility issue is the mandatory dependency in this exposed Xcode workflow, not proof that ordinary local skill loading is broken.
  • Documentation consulted: https://opencode.ai/docs/skills and https://opencode.ai/docs/mcp-servers
  • Existing-issue searches for "device-interaction" and mcpbridge skill returned no matches.
主要言語
TypeScript
スター
230k
フォーク
31.3k
平均マージ
5時間 32分
マージ済み PR(30日)
453

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。