POST /relatedrepos-mcp · Streamable HTTP transport · JSON-RPC 2.0
list_related_repos{ owner: string, repo: string, limit?: number }调用 /gh/{owner}/{repo},返回与指定 GitHub 仓库相关的其他仓库。
list_trending_repos{ period?: "today"|"weekly"|"monthly", limit?: number }调用 /trending/{period},返回当前热门仓库列表。
list_topic_repos{ topic: string, limit?: number }调用 /topics/{topic},返回指定主题下的热门仓库。
find_hot_repos_in_topic关联查询{ topic: string, period?: string, limit?: number }并行拉取主题列表与热门列表,返回两者的交集("该主题下正在热门");无交集时降级返回主题列表。
find_topics_for_repo关联查询{ owner: string, repo: string, topic?: string, limit?: number }调用 /gh/{owner}/{repo};若提供 topic,则再调用 /topics/{topic},返回两者交集("该仓库在指定主题下的邻居")。
把下面 JSON 写入 MCP 客户端的 servers 配置即可。
{
"mcpServers": {
"relatedrepos": {
"type": "streamable-http",
"url": "https://<your-host>/relatedrepos-mcp"
}
}
}{
"mcpServers": {
"relatedrepos": {
"type": "streamable-http",
"url": "https://mcp-on-edge.edgeone.site/relatedrepos-mcp"
}
}
}