Add ScrapeGraphAI registry support with PyPI and Smithery#886
Open
VinciGit00 wants to merge 4 commits intomodelcontextprotocol:mainfrom
Open
Add ScrapeGraphAI registry support with PyPI and Smithery#886VinciGit00 wants to merge 4 commits intomodelcontextprotocol:mainfrom
VinciGit00 wants to merge 4 commits intomodelcontextprotocol:mainfrom
Conversation
- Add RegistryTypeScrapeGraphAI constant - Implement ValidateScrapeGraphAI validator supporting: - PyPI registry (default): validates via PyPI API, checks mcp-name in README - Smithery registry: validates via npm API (Smithery uses npm backend), checks mcpName in package.json - Direct npm registry: also supported as alternative - Add RegistryURLSmithery constant - Update schemas and documentation to include scrapegraphai registry type - Add Smithery to supported registry base URLs - Update package-types.mdx with ScrapeGraphAI examples for both PyPI and Smithery
- Add ScrapeGraphAI test cases to TestValidate_RegistryTypesAndUrls - Create scrapegraphai_test.go with comprehensive test coverage - Test both PyPI and Smithery registry backends - Test error cases and validation logic
Remove duplicate NPMPackageResponse type and use anonymous struct instead to avoid type conflicts
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.
Summary
This PR adds support for ScrapeGraphAI as a new registry type, with support for both PyPI and Smithery as registry backends.
Changes
Code Changes
RegistryTypeScrapeGraphAIconstant inpkg/model/constants.goRegistryURLSmitheryconstant for Smithery registry supportinternal/validators/registries/scrapegraphai.govalidator with support for:mcp-name:in package READMEmcpNameinpackage.jsoninternal/validators/package.gopkg/model/types.goSchema & API Updates
scrapegraphaito registry type examples inserver.schema.jsonscrapegraphaito registry type examples inopenapi.yamlhttps://smithery.aito registry base URL examples in both schemasDocumentation
package-types.mdxwith examples for both PyPI and SmitheryRegistry Support
ScrapeGraphAI packages can now be published using:
PyPI (
https://pypi.org- default):mcp-name: <server-name>in package READMESmithery (
https://smithery.ai):mcpNamefield inpackage.jsonDirect npm (
https://registry.npmjs.org):Example Usage
PyPI:
{ "registryType": "scrapegraphai", "registryBaseUrl": "https://pypi.org", "identifier": "web-scraper-mcp", "version": "1.0.0" }Smithery:
{ "registryType": "scrapegraphai", "registryBaseUrl": "https://smithery.ai", "identifier": "@ScrapeGraphAI/scrapegraph-mcp", "version": "1.0.0" }Testing
The validator follows the same patterns as existing registry validators (npm, pypi, etc.) and includes proper error handling and validation logic.
Related