Repository navigation
fix(http): stop the server card describing the server as an anti-bot bypass - #88
Merged
Merged
Conversation
…bypass The server card at /.well-known/mcp/server-card.json (and /.well-known/mcp.json) still said "scrape and extract from protected sites via Fetch (anti-bot bypass, JS rendering, proxies)", text the tool descriptions dropped in #47. Plugin directories and agents read this card before they connect. The card now takes its description from package.json, the same text npm and the MCP Registry show, so the three listings can't drift apart again. A test checks both card paths against package.json and rejects the old wording.
…egistry and the server card share
AnderRV
approved these changes
Oct 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The public server card still described the server as "scrape and extract from protected sites via Fetch (anti-bot bypass, JS rendering, proxies)":
#47 removed that vocabulary from every tool and parameter description, because plugin directories (OpenAI's included) read it against their rules on bypassing access controls. The card, which directories and agents read before they connect, was the one public surface left. The text was hard-coded in
src/http.ts;package.jsonandserver.jsonalready say something else.Change
mcpServerCard()now usespkg.description, the same text npm and the MCP Registry show: "Zenrows MCP server: Fetch, Extract, Batch, and Browser Sessions for AI agents" (wording from the follow-up commit, which also updatesserver.json). One source, so the three listings can't drift apart again.tests/well-known.test.ts: both card paths (/.well-known/mcp/server-card.json,/.well-known/mcp.json) must return thepackage.jsondescription and must not contain stealth / anti-bot / bypass / protected.No tool, schema or behaviour change.
Verification
main'shttp.ts(1 fail) and passes with this change.npm test: 254 pass, 0 fail.typecheck,lintandprettier --checkare clean.