xcode: mcpbridge requires unavailable device-interaction skill
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 内容生成。
描述
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 --versionreturnszsh: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 tagNamereturnedv1.19.6; this does not establish whether the V2 installation is current.
Reproduction
- Configure Apple's Xcode MCP bridge as shown below and open an iOS project in Xcode.
- Call
XcodeListWorkspacesand use the returned workspace identifier. - Call
DeviceInteractionStartWorkspaceSessionwith that identifier, a session label, and an available simulator (iPhone Duo in this case). - Observe that the response names
device-interactionasskillToTriggerand explicitly requires loading it before delegating interactions. - Call OpenCode's skill tool with
{"id":"device-interaction"}. - 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"
}
}
}
}
}
BuildProjectsucceeded using the workspace identifier returned byXcodeListWorkspaces:{"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/Contentsdid not locatedevice-interaction. This was not an exhaustive content search. - The user explicitly authorized subagent delegation on the latest retry; loading the skill still failed.
/reloadwas suggested, but its execution is not confirmed by the available evidence.- No matching log entries were found for
Unable to load skill device-interactionorskill.*device-interactionin 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"andmcpbridge skillreturned no matches.
- 主要语言
- TypeScript
- 星标
- 230k
- 派生
- 31.3k
- 平均合并
- 5 小时 32 分钟
- 30 天内合并 PR
- 453
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
anomalyco/opencode 的其他 Issue
-
area/desktop platform/macos status/repro-plausible type/bug version/v2
难度 1/5 1-3 小时 新手友好度 88/100
anomalyco/opencode#67064 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 半天 新手友好度 82/100
anomalyco/opencode#67009 · 2 条评论 ·
维护者通常 1 天内回复
-
area/web type/feature version/v2
难度 2/5 1-3 小时 新手友好度 78/100
anomalyco/opencode#67001 · 3 条评论 ·
维护者通常 1 天内回复
-
skills: a Claude-compatible SKILL.md that fails to parse is dropped without any log可能已有人在做 @liwenjie200543 于 2 天前认领。 未关闭area/plugins platform/linux reproduced type/bug version/v2
难度 2/5 1-3 小时 新手友好度 72/100
anomalyco/opencode#66970 · 4 条评论 ·
维护者通常 1 天内回复
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaks可能已有人在做 @argszero 于 2 天前认领。 未关闭area/tui platform/wsl status/repro-simulated type/bug version/v2
难度 2/5 1-3 小时 新手友好度 82/100
anomalyco/opencode#66773 · 4 条评论 ·
维护者通常 1 天内回复
查看 anomalyco/opencode 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
ci
难度 2/5 1-3 小时 新手友好度 78/100
ClickHouse/clickhouse-js#1248 ·
维护者通常 1 天内回复
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechselt未关闭technik
难度 2/5 1-3 小时 新手友好度 78/100
-
bug
难度 2/5 1-3 小时 新手友好度 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 84/100
AhmedNAgy25/analysor#25 ·
维护者通常 1 天内回复