Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(cli): build approval for mcp-app#118

Open
coryrylan wants to merge 1 commit into
mainfrom
topic-cli-fix
Open

fix(cli): build approval for mcp-app#118
coryrylan wants to merge 1 commit into
mainfrom
topic-cli-fix

Conversation

@coryrylan
Copy link
Copy Markdown
Collaborator

@coryrylan coryrylan commented Jun 4, 2026

Summary by CodeRabbit

  • Bug Fixes

    • Simplified starter package installation flow with clearer error messages and direct instructions for manual installation if automatic setup fails.
  • Chores

    • Updated the MCP server identifier.
    • Enabled additional build configuration for the Model Context Protocol app workspace package.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 4, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 8cc54543-7792-47ee-af6e-aff1a68b17cb

📥 Commits

Reviewing files that changed from the base of the PR and between bf55180 and cd6cffc.

📒 Files selected for processing (4)
  • projects/cli/src/mcp/mcp.ts
  • projects/internals/tools/src/project/starters.test.ts
  • projects/internals/tools/src/project/starters.ts
  • projects/starters/mcp-app/pnpm-workspace.yaml

📝 Walkthrough

Walkthrough

Rebrands the MCP server name, whitelists an MCP extension in pnpm workspace builds, and centralizes/simplifies starter NPM install failure handling with a new message helper and tests.

Changes

MCP App Starter Configuration and Installation Updates

Layer / File(s) Summary
MCP server identifier update
projects/cli/src/mcp/mcp.ts
The MCP server name in startMcpServer is changed from nve-mcp to io.github.nvidia/elements.
Workspace build configuration for MCP extensions
projects/starters/mcp-app/pnpm-workspace.yaml
Adds an allowBuilds entry to enable builds for @modelcontextprotocol/ext-apps.
Simplified NPM dependency installation
projects/internals/tools/src/project/starters.ts, projects/internals/tools/src/project/starters.test.ts
Introduces getDependencyInstallFailureMessage, simplifies setupStarterNPM to a single installFromRegistry attempt with centralized error logging/message, removes the prior login-and-retry fallback, and adds tests validating the new message and import.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'fix(cli): build approval for mcp-app' is partially related to the changeset. While it mentions build approval and mcp-app, the actual changes include server name updates, dependency installation error handling improvements, and workspace configuration changes—broader than just 'build approval.' Consider a more specific title that captures the main changes, such as 'fix: simplify MCP server setup and improve dependency installation error handling' or 'fix: update MCP server identifier and refactor dependency installation logic.'
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch topic-cli-fix

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

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@projects/internals/tools/src/project/starters.ts`:
- Around line 276-279: The manual-install hint currently interpolates a null
npmClient when getNPMClient() returns null; in installFromRegistry() (or the
caller handling the catch) check the returned npmClient before printing the hint
and print a safe fallback message when null (e.g., instruct the user to run a
package-manager install in the extractedDir or suggest installing npm/pnpm),
otherwise print the existing `${npmClient} install` message; reference the
variables/functions npmClient, getNPMClient, installFromRegistry, and
extractedDir to locate and update the error-handling branch.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: ad8e0ac7-92eb-4db5-8eb6-2b5bd4afbe58

📥 Commits

Reviewing files that changed from the base of the PR and between 94a0a99 and bf55180.

📒 Files selected for processing (3)
  • projects/cli/src/mcp/mcp.ts
  • projects/internals/tools/src/project/starters.ts
  • projects/starters/mcp-app/pnpm-workspace.yaml

Comment thread projects/internals/tools/src/project/starters.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants