feat(semrush): add provider-neutral research adapter - #26
Merged
Conversation
iannuttall
marked this pull request as ready for review
July 24, 2026 14:08
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.
What changed
seo providers semrush connect|status|disconnect.semrush_callregistration and keeps the public MCP surface at the three generic discovery tools.Why
The old Semrush path was a provider-shaped passthrough with uncertain usage and test coverage. It also left a dead report-specific MCP registration behind after MCP discovery had moved to the shared report registry.
This change makes Semrush an optional acquisition adapter behind the same owned report contracts used by the CLI, library, and MCP server.
Version support
This adapter deliberately supports only the permanent, automatically generated Version 3 API key. Version 4 support was removed after the active key failed live acceptance against the current early-access keyword endpoint with both documented authorization forms.
Semrush marks the Version 3 keyword endpoints as deprecated. That state remains visible in report warnings and in the documentation.
User impact
Humans can connect once with a masked prompt:
Agents and CI can use
SEO_SEMRUSH_API_KEYwithout saving the key. Research continues throughseo reports run <report-id>with"provider":"semrush"; there is no new MCP tool or skill.Verification
Live Semrush acceptance
Resource bounds
The 10,000-row Semrush harness completed with:
Repository and package checks
pnpm buildpnpm typecheckpnpm testpnpm lintpnpm build:webpnpm --filter @seo/web typecheckpnpm --filter @seo/web testpnpm deploy:web:dry-runpnpm pack --dry-runpnpm test:package-installpnpm security:secrets