Skip to content

feat!: sync with the hosted server at 0.4.0 - #6

Merged
rbatista191 merged 1 commit into
mainfrom
feature/mar-404-sync-0.4.0
Nov 2, 2026
Merged

rbatista191 merged 1 commit into
mainfrom
feature/mar-404-sync-0.4.0

Conversation

@rbatista191

Copy link
Copy Markdown
Contributor

Summary

This PR brings the public mirror to the code that runs at mcp.cloro.dev (0.4.0, from cloro-dev/backend #480). After it merges, the mirror and the hosted server have the same version, and 0.4.0 can go to the MCP registry. The mirror's 0.3.0 was never published, so no published version names two different sets of code.

Part of MAR-404.

Changes

  • Add resolve_google_redirect (POST /v1/monitor/google/goto, 1 credit, no sync surcharge).
  • Remove scrape_grok. Remove grok from the list_countries enum. The CI tool count stays at 10.
  • Each tool description states its credit cost, with the +2 sync surcharge. The server sends an instructions field.
  • Tool text: AI Mode no longer lists rawResponse; scrape_google says "query + gl"; ChatGPT documents include.productDetails and disableWebSearch; ads and shopping no longer say that they need legacy: true.
  • Vendored schemas: copy the current chatgpt.schema.ts (prompt array, productDetails), aimode.schema.ts and the new google-goto.schema.ts.
  • @modelcontextprotocol/sdk is now ^1.32.2. The version is 0.4.0 in package.json, server.json, .cursor-plugin/plugin.json and src/server.ts.
  • README: no Grok in the summary or the tool table, a note on empty Google links, and the FAQ now states the rate plus the +2 sync surcharge.

The aimode.schema.ts diff

The 256-line difference was the country list. The mirror had its own list of 246 codes. The hosted server accepts all 250 codes since backend ENG-1018 (#393). The 4 codes that the mirror rejected were CN, CU, IR and KP. The rest of the schema was the same.

Tests

  • tsc --noEmit passes.
  • vitest run passes: 98 tests. The new tests cover the goto call, the cost text, the instructions field and the rejected grok model.
  • A stdio tools/list on the build returns 10 tools, and none of them is Grok.

Copy the 0.4.0 changes from cloro-dev/backend apps/mcp (backend #480):

- Add resolve_google_redirect, which calls POST /v1/monitor/google/goto.
- Remove scrape_grok, and remove grok from the list_countries enum.
- State the credit cost of each tool, with the +2 sync surcharge, and
  send a server instructions field.
- Fix the tool text: AI Mode has no rawResponse, scrape_google uses gl,
  ChatGPT documents productDetails and disableWebSearch, and ads and
  shopping no longer say that they need legacy: true.
- Vendor the current chatgpt and aimode schemas and the google-goto
  schema. ChatGPT accepts a prompt array. AI Mode accepts every country
  code (backend ENG-1018), so CN, CU, IR and KP are no longer rejected.
- Update the MCP SDK to 1.32.2 and the version to 0.4.0.

Remove Grok from the README, package.json and .cursor-plugin/plugin.json.
The README FAQ now states the rate plus the +2 sync surcharge.
@rbatista191
rbatista191 merged commit e8e03dd into main Nov 2, 2026
2 checks passed
@rbatista191
rbatista191 deleted the feature/mar-404-sync-0.4.0 branch November 2, 2026 22:11
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