Skip to content

fix(proxy): explain Xcode MCP access timeouts - #188

Merged
lynnswap merged 5 commits into
mainfrom
codex/improve-xcode-mcp-setup-diagnostics
Jul 30, 2026
Merged

fix(proxy): explain Xcode MCP access timeouts#188
lynnswap merged 5 commits into
mainfrom
codex/improve-xcode-mcp-setup-diagnostics

Conversation

@lynnswap

@lynnswap lynnswap commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Purpose

Xcode can initialize mcpbridge without returning tools/list when the global external-agent access setting is disabled. The proxy previously surfaced only repeated route or attachment timeout lines, making a live Xcode process look unattached without a readable next step.

Changes

  • Add the required Xcode > Settings > Intelligence > Allow external agents to use Xcode tools step to the README, with the official Apple documentation.
  • Explain the distinction between the global Xcode setting, the per-connection Allow dialog, --auto-approve, and macOS Accessibility permission.
  • Document the actual route_activation_timeout and bridge_pool_attach_verification_completed success=false reason=timeout events.
  • Keep structured retry events concise and emit a multiline Xcode tools are unavailable warning only for the first tools/list timeout in each recovery incident.
  • Track catalog timeout counts and bridge timeout-warning state independently from general retry failures in the process control-plane owner.
  • Drive the queued-request event loop only after timeout settlement tasks become idle, removing a race from the affected CI test.
  • Hold cancellation delivery at the test upstream boundary while asserting shared-load promotion and timeout cleanup, removing two additional scheduling races from the recovery shard.
  • Keep production timeout and retry semantics unchanged.

Validation

  • scripts/check.sh
    • 1,023 tests in the standard suite
    • 24 process runtime tests
    • 13 STDIO adapter tests
  • GitHub Actions remaining shard command: 425 tests passed.
  • GitHub Actions RuntimeCoordinatorRecoveryTests shard command: 45 tests passed.
  • swift test --filter 'ControlPlaneAuthorityTests|httpRequestLeaseTimeoutReleasesSessionAndStartsNextQueuedRequest' -Xswiftc -strict-concurrency=minimal: 50 tests passed.
  • Each affected recovery test passed 100 consecutive targeted repetitions.
  • Branch-wide audit against pinned main (3c1278ad...): no P0-P3 findings.
  • git diff --check

Document the global Xcode MCP access switch separately from per-connection approval. Add actionable, non-causal recovery metadata to tools/list timeout logs so operators can diagnose silent attachment failures.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0deafe6ac1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Docs/troubleshooting.md Outdated
Keep retry events concise and emit a multiline warning only for the first tools/list timeout. Use control-plane retry ordinals for deduplication and document the actual bridge attachment event name.

@lynnswap lynnswap left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 884b19ae7b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lynnswap lynnswap left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 057142c783

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lynnswap lynnswap left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 0726975616

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lynnswap
lynnswap merged commit 3671b3a into main Jul 30, 2026
9 checks passed
@lynnswap
lynnswap deleted the codex/improve-xcode-mcp-setup-diagnostics branch July 30, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant