MCP server: 10 tools → 15
Five new tools covering the features added in 0.6.7/0.6.8 that had no MCP surface yet.
New tools
get_contributors — top 50 contributors of a repo with commit count. Pass with_locations: true to enrich each contributor with their geocoded location from StarMapper data.
get_followers — top 100 followers of any GitHub user, sorted by their own follower count. Includes company and location per follower.
get_country_stats — full country and city breakdown for a repo already indexed on StarMapper. Returns all countries and top 30 cities.
get_global_country_stats — cross-repo developer distribution by country from the country_stats_mv materialized view. Total stargazer count in the header.
get_dependencies — a repo's own dependency graph via the GitHub SBOM API: package name, ecosystem, version. Returns a clean message (not an error) when the dependency graph is disabled on the repo.
Under the hood
- 4 new API routes:
/api/mcp/contributors/[owner]/[repo](supports?withLocations=1),/api/mcp/followers/[login],/api/mcp/country-stats,/api/mcp/dependencies/[owner]/[repo] fetchRepoDependencies()added tosrc/lib/github.ts: SBOM endpoint, purl parsing, dedup by ecosystem+name, root SPDX package filteredvalidateLogin()added tosrc/lib/api-validation.ts- 44 new tests (1050 total, all passing)
starmapper-mcpbumped to 0.2.0