fix(mcp): expose shared API query params on all URL tools - #8
Conversation
Content/collection tools only accepted selector fields, so agents could not pass javascript/waitUntil even though the Microlink API supports them on every URL fetch. Share visualSchema across URL tools and add cacheKey plus screenshot quality from the public API docs. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning Review limit reached
Next review available in: 55 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. 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: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughMCP schemas now support screenshot quality, shared visual parameters, palette fields, and browser options across more inputs. Tool descriptions document browser options. Tests validate schema bounds, option acceptance, and Markdown query forwarding. ChangesShared visual options
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant MCPClient
participant microlink_markdown
participant MicrolinkAPI
MCPClient->>microlink_markdown: submit javascript and waitUntil options
microlink_markdown->>MicrolinkAPI: forward options as query parameters
MicrolinkAPI-->>microlink_markdown: return Markdown response
microlink_markdown-->>MCPClient: return tool result
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit fee45c3. Configure here.
Coverage Report for CI Build 31040976080Warning No base build found for commit Coverage: 77.05%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats
💛 - Coveralls |
Add quality to SCREENSHOT_KEYS so microlink.io nests it under screenshot. Drop top-level data from content/collection MCP schemas since those helpers overwrite the data object with their fixed field rule. Co-authored-by: Cursor <cursoragent@cursor.com>

Summary
javascript,waitUntil,waitForSelector,headers,proxy, …) across content, collection, function, metadata, and other URL tools — not only screenshot/pdf/extract.cacheKeyandscreenshot.quality.Why
microlink_markdown(and siblings) previously only accepted{ url, selector, … }. Agents following playground prompts that mentioned JS rendering /waitUntilhit schema validation failures even though those are valid Microlink API query parameters on every URL fetch.Test plan
pnpm --filter @microlink/mcp test(71 passing)microlink_markdownwithwaitUntil: "networkidle0"and confirm it reaches the APIMade with Cursor
Summary by CodeRabbit
New Features
Documentation
Bug Fixes