Feat/leixu/mcp server info enrich #62
Merged
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.
This pull request introduces enhancements to the MCP server data model and GitHub enrichment logic, along with updates to the server sorting mechanism in the API. Key changes include adding new fields to the MCP server interfaces, refining the handling of license type values, and implementing sorting by GitHub stars in addition to recommendation status.
Enhancements to MCP server data model:
githubLatestCommit,githubForks,licenseType) to theMCPServerinterface inclient/src/types.tsandserver/src/lib/mcpServers.tsto support additional GitHub-related metadata. [1] [2]MCPServerinterface inserver/src/lib/mcpServers.tsto include boolean flags (isOfficialIntegration,isReferenceServer,isCommunityServer) for categorizing servers.Refinements to GitHub enrichment logic:
license_typefield inEnrichedMcpServerandGithubRepoInfointerfaces to useundefinedinstead ofnullwhen no license information is available. [1] [2]fetchGithubInfofunction to returnundefinedforlicense_typeif no license data exists, removing the fallback tonull.license_typein theenrichServerDatafunction by removing the fallback toundefined.Updates to server sorting in API:
/search_serversendpoint to prioritize servers by GitHub stars in descending order after recommendation status./search_serversendpoint to reflect the revised sorting criteria.This pull request introduces enhancements to the MCP server data model and its enrichment process, focusing on GitHub-related metadata and sorting logic. Key changes include adding new properties to the MCP server interfaces, refining how license types are handled, and improving server sorting by GitHub stars.
Enhancements to MCP server data model:
McpServerandEnrichedMcpServerinterfaces, includinggithubLatestCommit,githubForks, andlicenseType. These fields allow for richer metadata about GitHub repositories to be stored and accessed. (client/src/types.ts: [1]server/src/lib/mcpServers.ts: [2]licenseTypefield to useundefinedinstead ofnullwhen no license information is available, ensuring consistency across the codebase. (server/src/lib/githubEnrichment.ts: [1] [2] [3] [4]Improvements to server sorting:
/search_serversroute to prioritize servers with higher GitHub star counts after recommended servers, enhancing the relevance of search results. (server/src/routes/hub.ts: server/src/routes/hub.tsR190-R197)server/src/routes/hub.ts: server/src/routes/hub.tsL234-R235)