Skip to content

fix(review): Phoenix-MCP live polish — green row consistency + npx pre-install#85

Merged
ComBba merged 1 commit into
mainfrom
fix/phoenix-mcp-live-polish
Jun 6, 2026
Merged

fix(review): Phoenix-MCP live polish — green row consistency + npx pre-install#85
ComBba merged 1 commit into
mainfrom
fix/phoenix-mcp-live-polish

Conversation

@ComBba
Copy link
Copy Markdown
Contributor

@ComBba ComBba commented Jun 6, 2026

Addresses the two medium CodeRabbit comments on #84:

  • ProofTimeline visual consistency — the Phoenix MCP row's border + arrow were still amber (--color-warn) around now-green text. Made the whole row green (--color-good) to match the live state.
  • deploy.sh:47 perf — pre-install the pinned @arizeai/phoenix-mcp@4.0.13 globally in Dockerfile.api so the per-request npx resolves from the image (no network fetch / version resolution on each audit), cutting the live MCP round-trip latency. Version kept in sync with adk_runtime._PHOENIX_MCP_PACKAGE.

Web gates: typecheck · test (74) green. The Dockerfile pre-install is validated by CI's docker-build job.

- ProofTimeline: make the whole Phoenix MCP row green (border + arrow + text),
  not just the text — the live state was visually inconsistent (amber border /
  arrow around green text).
- Dockerfile.api: pre-install the pinned @arizeai/phoenix-mcp@4.0.13 globally so the
  per-request npx resolves from the image (no network fetch / version resolution on
  each audit) — cuts the live MCP round-trip latency.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 6, 2026

Warning

Review limit reached

@ComBba, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 28 minutes and 9 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4a35b362-3303-443d-a2d8-4acd71963f47

📥 Commits

Reviewing files that changed from the base of the PR and between 9843b7c and b83e41d.

📒 Files selected for processing (2)
  • apps/web/components/ProofTimeline.tsx
  • infra/Dockerfile.api
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/phoenix-mcp-live-polish

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the ProofTimeline component to use the "good" color variable instead of the "warn" color variable when MCP is active. It also modifies the API Dockerfile to pre-install @arizeai/phoenix-mcp@4.0.13 to reduce latency. However, a review comment points out that installing the package globally will not prevent npx from performing a network fetch at runtime, and suggests installing it locally in the runtime directory instead.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread infra/Dockerfile.api
# adk_runtime._PHOENIX_MCP_PACKAGE.
RUN ln -sf /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
&& ln -sf /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx \
&& npm install -g @arizeai/phoenix-mcp@4.0.13 \
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Installing @arizeai/phoenix-mcp globally (-g) will not prevent npx from attempting to fetch it from the registry at runtime. When npx is invoked with a specific version (e.g., npx -y @arizeai/phoenix-mcp@4.0.13), it does not resolve from global node_modules. Instead, it checks the local node_modules or its own cache, and if not found, it performs a network request to download it.

To ensure npx resolves the package locally without any network overhead or latency, install it locally in the /app directory (the runtime WORKDIR) using --no-save.

    && npm install --no-save @arizeai/phoenix-mcp@4.0.13 \

@ComBba ComBba merged commit 008a0d9 into main Jun 6, 2026
5 checks passed
@ComBba ComBba deleted the fix/phoenix-mcp-live-polish branch June 6, 2026 06:03
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