MCP Catalogs
首页

GitHub-URL-MCP

by kongyo2·1·综合分 31

一个MCP服务器,用于验证和转换GitHub URL,在仓库信息和格式化URL之间转换。

githubdeveloper-toolsai-llm
0
Forks
0
活跃 Issue
10 个月前
最近提交
2 天前
收录于

概述

GitHub-URL-MCP服务器提供专门工具处理GitHub URL并进行智能验证。它能区分公共、私有和不存在的仓库,同时转换GitHub仓库信息和格式化URL。服务器无需GitHub API令牌即可工作,并包含网络超时保护。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:帮助LLM正确从仓库信息构建GitHub URL
:解析GitHub URL提取所有者、仓库和路径信息
:在尝试访问GitHub内容前验证仓库可访问性
:这需要GitHub认证吗?
:它如何检测私有仓库?

什么时候选它

当您需要可靠地验证和解析GitHub URL而不需要身份验证时选择它,特别是对于难以处理GitHub URL的AI系统。

什么时候不要选它

如果您需要超越URL验证的深度仓库分析,或者需要对私有仓库进行身份验证,则不太适合。

此 server 暴露的工具

从 README 抽取出 2 个工具
  • github/build_urlgithub/build_url(owner: string, repo: string)

    Converts GitHub owner and repository name into a properly formatted GitHub URL with validation.

  • github/parse_urlgithub/parse_url(url: string)

    Parses a GitHub URL to extract owner, repository name, and additional path information with validation.

可对比工具

github-mcpgit-mcpgithub-cli

安装

npm install
npm run start

对于Claude Desktop,添加到claude_desktop_config.json

{
  "mcpServers": {
    "github-url": {
      "command": "npx",
      "args": ["@kongyo2/github-url-mcp"]
    }
  }
}

FAQ

这需要GitHub认证吗?
不需要,服务器无需GitHub API令牌即可工作,并包含内置的超时保护。
它如何检测私有仓库?
它使用智能验证来区分公共仓库、私有仓库和不存在的仓库,无需进行认证。

GitHub-URL-MCP 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。