Skip to content

feat: move the MCP server to the parameterless /ai endpoint and correct stale plugin content - #12

Merged
sakanamk merged 9 commits into
mainfrom
fix/marketplace-submission-blockers
Nov 30, 2026
Merged

sakanamk merged 9 commits into
mainfrom
fix/marketplace-submission-blockers

Conversation

@pauliusminialga-dc

@pauliusminialga-dc pauliusminialga-dc commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Prepares the plugin for Cursor Marketplace submission. Two things: the MCP server moves to a parameterless endpoint, and a batch of stale content is corrected against live sources.

1. MCP server now points at https://mcp.decodo.com/ai

The plugin previously declared mcp.decodo.com/mcp?toolsets=${DECODO_TOOLSETS:-web,search}. That was a live install hazard: the /mcp endpoint answers tools/list with Method not found on any unrecognised toolsets value — including an unexpanded ${VAR} literal — so the server shows connected in Cursor with zero tools, and nothing in the UI explains why.

This branch first tried to fix that by moving the default into plugin.json as "default": "web,search". Testing in Cursor showed that Cursor does not substitute a manifest default into the mcp.json URL — installing with DECODO_TOOLSETS unset produced no tools at all. The shell-style ${VAR:-default} form was never verified either, and fails identically if Cursor leaves unrecognised tokens as-is.

/ai makes the question moot. It serves a fixed set of 8 tools and takes no query parameters.

Behaviour Result
/ai 8 tools
/ai?toolsets=ecommerce 8 tools (ignored)
/ai?toolsets=bogus 8 tools (ignored)
/ai?toolsets=${DECODO_TOOLSETS} literal 8 tools (ignored)
/ai + wrong Authorization 8 tools listed; tool calls return Scraper API request failed (401): Authentication failed.
/ai + no Authorization header Unauthorized, 0 tools

So the zero-tools failure mode is gone, and "connected ≠ authenticated" still holds.

DECODO_TOOLSETS is removed from plugin.json. DECODO_AUTH_TOKEN is now the only variable.

Capability change worth a deliberate look

/ai is the old web,search set minus google_search and google_travel_hotels. Those were MCP tools before this PR and are not on /ai. Both are now documented as CLI-only. Everything else is unchanged: scrape_as_markdown, screenshot, map, search, crawl_start, crawl_status, crawl_results, crawl_cancel.

2. Content corrections (verified, not from memory)

  • Reddit removed everywhere (8 references). There is no Reddit target in decodo targets (3.0.0), no reddit_* MCP tool in any toolset, and no Reddit entry on the Web Data API templates page. The skill was telling agents to prefer reddit-subreddit and listed reddit_post as an API target value. Replaced with tiktok_post / tiktok-post / youtube-metadata, all confirmed to exist as current templates.
  • Target count is 36, not ~40.
  • /decodo-status toolset map was wrong in three places — tiktok_shop_* are ecommerce not social_media, social_media is YouTube only, google_travel_hotels was unmapped, and chatgpt is not an MCP tool. The map is now moot and has been replaced with a fixed 8-tool checklist.
  • CLI auth hint requoted to match @decodo/cli 3.0.0: Run `decodo setup` to save it (or set DECODO_AUTH_TOKEN).
  • 401 behaviour re-verified, stamp moved from Aug 2026 to Nov 2026.

Scope note

references/mcp-setup.md still documents /mcp?toolsets=... in its other clients section. That endpoint still works correctly (ecommerce, social_media and ai all return their expected tools), and those clients would lose Amazon/YouTube tools on /ai. Only the Cursor paragraph in that file changed.

Versioning

Bumped to 0.4.0 in both manifests, not 0.3.2 — the endpoint moved and a declared variable was removed.

Test plan

  • node scripts/validate-template.mjs passes (the hooks.json warning is expected)
  • node scripts/check-version.mjs origin/main passes
  • bash -n install.sh
  • Live tools/list against /ai for every case in the table above
  • Live tools/call with a bogus token to confirm the 401 string the docs quote
  • grep confirms zero remaining DECODO_TOOLSETS or Reddit references
  • Install from this branch in Cursor, set only DECODO_AUTH_TOKEN, reload, confirm 8 tools appear

- mcp.json: drop the undocumented `${VAR:-default}` shell syntax. Cursor
  documents no default form, and the hosted server answers `tools/list` with
  `Method not found` on any unrecognised `toolsets` value, so an unexpanded
  literal leaves the server connected with zero tools.
- plugin.json: declare `"default": "web,search"` on DECODO_TOOLSETS instead.
  `default` is an accepted keyword in the Cursor variables schema.
- Correct the token-setting path to the documented route (Cursor dashboard ->
  Plugins -> Decodo -> Configure); "Settings -> Plugins" is not in the docs.
- Sync the quoted CLI auth hint with @decodo/cli 3.0.0.
- Target count: 36, not ~40 (`decodo targets`, 3.0.0).
- rules/install.mdc: document the empty-tool-list failure mode.
- Bump to 0.3.2 so the version check passes.
Verified against @decodo/cli 3.0.0 (`decodo targets`, 36 targets) and a live
tools/list against mcp.decodo.com for each toolset.

- Reddit is gone from both surfaces: no reddit target in the CLI, no reddit_*
  tool in any MCP toolset. The skill still told agents to prefer
  `reddit-subreddit` and listed `reddit_post` as an API target value. Removed
  all 8 references across the README, SKILL.md and api-curl.md.
- /decodo-status inferred enabled toolsets from a map that was wrong in three
  places: tiktok_shop_* are in `ecommerce` (not social_media), `social_media`
  is YouTube only, google_travel_hotels was unmapped, and `chatgpt` is not an
  MCP tool. Corrected and reformatted as a list.
- Re-verified the connected-but-unauthenticated behaviour (tools/list succeeds
  with any Authorization header; tool calls return "Scraper API request failed
  (401): Authentication failed."). Stamp moved from Aug 2026 to Nov 2026.
CONTRIBUTING documented the `:-` default as supported and verified. The
verification sentence it cites covers the Authorization header, which uses a
plain `${DECODO_AUTH_TOKEN}`, not the URL's `:-` form. Rewritten to describe
the manifest `default` instead, with the reasons for preferring it.

Also drops the last Reddit reference (a test suggestion for a target that no
longer exists).
I changed this to a web-dashboard route on the strength of Cursor's reference
saying variables are "set in the dashboard (Plugins → Configure)". That line
sits next to "Team admins set the actual values in the dashboard under
Plugins", so it describes the team flow. Cursor's plugins page separately
documents managing installed plugins, MCP servers, rules and skills from the
in-app Customize surface.

The original wording was written against the running app, same as the other
Cursor 3.2.21 findings in CONTRIBUTING. Docs that omit a route are not
evidence the route is wrong, and this is text an agent reads out to a user.
Restoring it until someone with Cursor open confirms the real path.
The marketplace page renders mcp.json, the rule, the skill and both commands,
but not plugin.json. With the default moved into the manifest, the URL now
reads `toolsets=${DECODO_TOOLSETS}` with nothing on the page explaining that
leaving it unset is correct.

Says so explicitly in /decodo-setup and /decodo-status, both of which the
page renders.
The plugin now declares `https://mcp.decodo.com/ai`, which serves a fixed set
of 8 tools (scrape_as_markdown, screenshot, map, search, crawl_start,
crawl_status, crawl_results, crawl_cancel) and takes no query parameters.

This removes the install hazard the earlier commits on this branch were trying
to work around. `mcp.decodo.com/mcp?toolsets=...` answers `tools/list` with
`Method not found` on any unrecognised `toolsets` value, including an
unexpanded `${VAR}` literal, so the server showed connected with zero tools.
Cursor was confirmed in the field not to substitute a manifest `default` into
the URL, and the shell-style `${VAR:-default}` form was never verified either.
A parameterless endpoint makes the question moot.

Verified live against /ai: it ignores `toolsets` entirely (bogus values and
unexpanded literals all return the same 8 tools), a wrong Authorization header
still lists all 8 while a missing one returns `Unauthorized`, and the 401 text
on a tool call is unchanged.

- mcp.json: URL -> https://mcp.decodo.com/ai, no query string.
- plugin.json: DECODO_TOOLSETS removed; DECODO_AUTH_TOKEN is now the only
  variable. Bumped to 0.4.0 in both manifests - the endpoint moved and a
  declared variable was dropped, which is not a patch.
- Note the capability change: google_search and google_travel_hotels are not
  on /ai. Both are now documented as CLI-only.
- install.mdc: the zero-tools paragraph documents the missing-header case
  instead of the toolsets one, which can no longer happen.
- decodo-status.md: toolset inference map replaced with a fixed 8-tool
  checklist; a short list means a partial load, not a setting.
- README, SKILL.md, decodo-setup.md, CONTRIBUTING.md, install.sh: toolset
  widening copy removed throughout; endpoint links updated.
- mcp-setup.md: only the Cursor paragraph changed. The other-clients section
  still documents /mcp?toolsets=..., which remains correct for Claude Desktop
  and Windsurf.
@pauliusminialga-dc pauliusminialga-dc changed the title fix: correct plugin metadata and drop nonexistent Reddit targets before marketplace submission feat: move the MCP server to the parameterless /ai endpoint and correct stale plugin content Nov 30, 2026

@sakanamk sakanamk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sakanamk
sakanamk merged commit 37e47c7 into main Nov 30, 2026
1 check passed
pauliusminialga-dc added a commit that referenced this pull request Nov 30, 2026
Follow-up to the SKILL.md rewrite. Three files still described the MCP lane as
it was before the plugin moved to mcp.decodo.com/ai, and the merge of main into
this branch reverted two eCommerce fixes from #13.

- decodo-setup.md: step 1 told the agent to look for `google_search` in its
  tool list. That has not been an MCP tool since #12, so the first diagnostic
  step could report a healthy MCP lane as broken. Now names the real 8 and
  says a missing dedicated target is expected, not a fault.

- decodo-status.md: the MCP lane reported tool presence but never the
  credential. Verified live against /ai - `scrape_as_markdown` and `screenshot`
  accept a basic auth token, while `search`, `map` and the four `crawl_*` tools
  reject it with "This tool needs a Decodo API key; Basic authentication tokens
  cannot use the Web Data API." So "8/8 tools present" on a basic token means
  half of them fail on first use, and the status command - the one whose job is
  reporting what works - was the only file not documenting that split.

- mcp-setup.md: the file now covers two endpoints with different tool surfaces.
  Only the Cursor paragraph said so, leaving a Claude Desktop or Windsurf reader
  unaware that Cursor's surface is narrower. Adds a short "Two endpoints, two
  surfaces" note; /mcp with its five toolsets stays correct for other clients
  and is unchanged.

- Restores "eCommerce" in marketplace.json metadata.description and
  plugin.json description. Both were fixed on main in 242ca11 and 10799d7, and
  the merge resolution in cc680e1 took the pre-sweep side, so merging this
  branch would have silently reverted them. Also finishes the sweep on the
  three that were never done: marketplace.json plugins[].description and both
  occurrences in the root README.

No version change - 0.4.2 is already set in both manifests and unreleased.
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.

2 participants