Repository navigation
web search: Serply as an API key service - #107
Conversation
Moves third_party/mcp-cpp to the commit that adds serply-api to its catalogue, lists the id where the registry and the docs list the others, and notes it in the changelog.
|
Hi @googio, Cheers for the PR and for the disclosure. The request and Both changes go in mcp-cpp#6. #107 then moves the submodule to the new 1. Country should default to United StatesSerply's Google Search reference says:
The Webhooks guide measured this: six identical queries three seconds With this PR the Country row starts at "Service default", so
One question: the Webhooks measurement pinned 2. Error replies: running out of creditsMost keyed services in the catalogue document what they return when the
(Serper, your competitor, has no public API reference for this error either. That is a gap in the catalogue, not a model to follow. Both of you would populate the catalogue, having the same flaw in error handling. Serply's docs cover the other error cases, and mcp-cpp's
I looked for the zero-balance reply in these places and did not find it:
Serply bills prepaid credits, and the 2,500 free credits expire after 30 Please: a. Tell us the status and Two smaller questions in the same area:
|
Moves third_party/mcp-cpp to 8663d3c, where serply-api sends gl=us when no country is chosen, and says so in the CHANGELOG entry and configuration.md.
368807c to
2c1257d
Compare
|
Thanks for the careful review. Both changes are in: mcp-cpp#6 is now at 1. Country defaults to United States
On
So 2. Out of creditsThe zero-balance reply is Expired free credits end in the same reply. Expiry removes what is left of the 30-day grant from the balance, so once the balance reaches zero the next call gets the 402. Purchased credits do not expire.
One more case you may meet: an account that exists but is not activated yet (email not confirmed) gets Smaller questionsEnvelope. The contract for the REST API is Empty 200. There is no header or field that tells a transient empty page from a genuine "no results". I checked the reply headers, and the only Serply-specific one is a credits-remaining count on paid calls. The documented advice is to retry once or twice. Reporting it as no results and moving to the next slot is a reasonable reading. This is now stated in mcp-cpp#6's description so it is on record. One more change, disclosed. During the measurement, one no-geo reply carried opaque tokens in |
Settings > Web Search: Serply as an API key service
Disclosure: I work with Serply.
Serply returns Google results as JSON (docs). mcp-cpp#6 adds it to the search services catalogue as
serply-api, next toserper-api, with Country and Freshness settings and a cap of 10 results per search. Country defaults to United States. That PR has the details and tests.This PR is the agentty side:
third_party/mcp-cppmoves to the commit that adds the service.serply-apiis added tokServiceIdsandkOptionalServiceIds, in the catalogue's menu order (afterserper-api).tests/web_search_services_test.cppchecks that these lists match the catalogue.docs/website/configuration.mdlists the id, theAGENTTY_WEB_SEARCH_KEY_SERPLY_APIvariable, its cap of 10, that excluded sites go to it as-site:, and that its Country defaults to United States.CHANGELOG.mdhas one entry under Unreleased.Nothing changes for anyone who does not pick Serply in a slot. The defaults stay Brave Free, DuckDuckGo and Tavily Free.
Testing
mcp_testssuite passes with the new service (96 cases, 2269 assertions). The request URL it pins returns 200 from the live API.kServiceIdsandkOptionalServiceIdswithout the leadingnone. The CI run after mcp-cpp#6 merges is the full check.