feat(setup): import selected local MCP entries - #215
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 13 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds secure import of explicitly selected local MCP stdio entries through CLI setup and first-run console onboarding. Imported entries produce read-only configurations, reject remote or credential-shaped inputs, support bounded source reads, and expose dedicated validation, error, API, UI, documentation, and test coverage. ChangesClient-entry import
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related issues
Possibly related PRs
Poem
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
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 `@src/setup/client-entry-import.ts`:
- Around line 153-160: Update the packageRunners handling around packageArgument
so pnpm dlx and its pnpx alias are not validated as ordinary package-runner
launches; either remove pnpm from packageRunners or add an explicit dlx special
case before staticPackageArgument validation, while preserving existing behavior
for other runners.
🪄 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: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: d8fdceb8-3466-49b9-8c5e-d8fb238ba11b
📒 Files selected for processing (23)
README.mddocs/cli.mddocs/console-api.mdsrc/cli/exit-codes.tssrc/cli/parse.tssrc/cli/setup-client-entry-import.tssrc/cli/setup.tssrc/console/console-application-service.tssrc/console/console-assets.tssrc/console/console-dashboard-application-service.tssrc/console/console-server.tssrc/setup/client-entry-import-file.tssrc/setup/client-entry-import.tssrc/utils/errors.tstests/cli-exit-codes.test.tstests/cli-parse.test.tstests/client-entry-import-file.test.tstests/client-entry-import.test.tstests/console-application-service.test.tstests/console-dashboard-application-service.test.tstests/console-server.test.tstests/readme-product-contract.test.tstests/setup-command.test.ts
|
Review note: the current-head CodeRabbit status is pass — Review rate limited. The prior actionable thread has been fixed in 6e8b0d7 and resolved, including additional regressions for the related shell-mode boundaries. I also completed an independent local security review of the finite runner grammar; it found no remaining concrete runner-shell bypass. This documents the rate-limit exception while current-head CI completes. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
miftah setupand the first-run ConsolePart of #204; this does not close the shared setup-wizard epic.
Security impact
The importer never launches or modifies the source client entry. It accepts only an explicit selected local stdio entry through a finite static launch grammar, rejects credential-shaped and dynamic input, and never writes pasted document values to configuration, audit records, browser storage, or HTTP errors. Imported configurations start read-only and treat unknown tools as destructive.
Validation
Passed locally on
9c91a3eeda99909c960642e7008c3cc15ce72640:npm testnpm run test:corenpm run test:coveragenpm run lintnpm run typechecknpm run buildnpm run smoke:clinpm run check:packnpm run test:packageFocused local security and maintainability reviews found no remaining blocker. Current-head CI and CodeRabbit review are in progress.