Skip to content

Fix install script $raw.servers null object edge cases#5

Open
Fantazstic wants to merge 1 commit into
titaniummachine1:mainfrom
Fantazstic:fix-install-script-null-object
Open

Fix install script $raw.servers null object edge cases#5
Fantazstic wants to merge 1 commit into
titaniummachine1:mainfrom
Fantazstic:fix-install-script-null-object

Conversation

@Fantazstic

Copy link
Copy Markdown

The existing mcp.json has a servers property that is null (or missing) rather than an object. The fix: ensure $raw.servers is initialized to a [PSCustomObject] if it's null after parsing.

This handles three cases for the existing mcp.json:

File is empty / invalid JSON → replaces with a fresh object
File is valid but missing servers key → adds it as an empty object
File is valid with a null servers value → replaces it with an empty object
All three previously resulted in $raw.servers being $null, which caused Add-Member to fail.

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

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

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ 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.

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 credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

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, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b67bb19c-ed05-4562-80ac-dbd8607b0e51

📥 Commits

Reviewing files that changed from the base of the PR and between 680e254 and 9b4654a.

📒 Files selected for processing (1)
  • scripts/install.ps1
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

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