feat: add safe Google Search Console provider adapter - #184
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 43 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 (5)
📝 WalkthroughWalkthroughAdds a typed provider-adapter catalog and a bounded Google Search Console preset with exact-pinned upstream launch details, required OAuth client-secrets input, safe CLI guidance, documentation, and end-to-end contract tests. ChangesGoogle Search Console provider adapter
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Operator
participant MiftahInit
participant PresetBuilder
participant UpstreamMCP
Operator->>MiftahInit: run init with OAuth client-secrets file
MiftahInit->>PresetBuilder: build google-search-console preset
PresetBuilder->>UpstreamMCP: configure pinned uvx launch
PresetBuilder-->>MiftahInit: return readonly profile and environment mapping
MiftahInit-->>Operator: print ownership guidance and safe snippets
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/config/provider-adapters.ts`:
- Around line 20-24: Update the ProviderAdapterOperation contract to a
discriminated union so operations with mechanism "mcp-tool" require a name,
while preserving the existing optional-name behavior for other mechanisms.
Adjust dependent usages such as the initialization flow in init.ts to honor the
required MCP-tool name, and add a compile-time negative test proving an MCP-tool
operation without name is rejected.
🪄 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: 2a50b754-10cb-4d4e-8554-9e577ac3bf1e
📒 Files selected for processing (17)
CHANGELOG.mdREADME.mddocs/architecture.mddocs/cli.mddocs/oauth-support.mddocs/presets-and-clients.mddocs/provider-adapters.mdsrc/cli/init.tssrc/cli/parse.tssrc/config/presets.tssrc/config/provider-adapters.tstests/cli-parse.test.tstests/init-command.test.tstests/package-contract.test.tstests/preset-catalog.test.tstests/preset-docs-contract.test.tstests/provider-adapter-contract.test.ts
|
Current-head review fallback evidence for
|
Closes #87
What changed
google-search-consolepreset using exactuvx mcp-search-console@0.3.2--oauth-client-secrets-filepath, applies a read-only policy, and never enablesGSC_ALLOW_DESTRUCTIVEoauth.connectionsboundary for standards-compatible remote HTTPS MCP onlySecurity boundary
The GSC pilot launches and describes the upstream flow. It does not read, copy, export, delete, or reinterpret the upstream token cache; does not claim Google account identity; does not reimplement Google APIs; and does not expose arbitrary adapter execution.
TDD and validation
Focused red/green coverage was added for the adapter ownership union, exact preset, safe path validation, CLI parsing/help, init output redaction, documentation, and installed-tarball CLI path.
Green locally:
npm run test:core: 404 passed, 23 skippednpm run lintnpm run typechecknpm run buildnpm run smoke:clinpm run check:packnpm run test:package: 18 passed, including installed tarball CLIKnown separate local runner behavior:
npm testandnpm run test:coveragereproduced the already-open test: diagnose multi-upstream availability cascade under coverage #122 unavailable-child/startup cascade after unrelated suites had passedSummary by CodeRabbit
New Features
Bug Fixes