返回市场
代码导入-MCP

代码导入-MCP

作者:puravparab131 星标更新:2025-03-22

项目介绍

Gitingest-MCP smithery 徽章

这是用于gitingest的MCP服务器。这允许像Claude Desktop、Cline、Cursor等MCP客户端快速提取关于GitHub仓库的信息,包括:

  • 仓库概要
  • 项目目录结构
  • 文件内容
<a href="https://glama.ai/mcp/servers/g0dylqhn3h"> <img width="380" height="200" src="https://gips1.baidu.com/it/u=1837435889,3422283971&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Gitingest-MCP MCP服务器" /> </a>

https://github.com/user-attachments/assets/c1fa596b-a70b-4d37-91d9-ea5e80284793

目录

安装

通过Smithery安装

  • 要通过Smithery安装gitingest-mcp:

    npx -y @smithery/cli@latest install @puravparab/gitingest-mcp --client claude --config "{}" # Claude
    
    npx -y @smithery/cli@latest run @puravparab/gitingest-mcp --client cursor --config "{}" # Cursor
    
    npx -y @smithery/cli@latest install @puravparab/gitingest-mcp --client windsurf --config "{}" # Windsurf
    
    npx -y @smithery/cli@latest install @puravparab/gitingest-mcp --client cline --config "{}" # Cline
    

通过Github安装

  1. 将以下内容添加到MCP客户端配置文件中

    {
    	"mcpServers": {
    		"gitingest-mcp": {
    			"command": "<uv路径>/uvx",
    			"args": [
    				"--from",
    				"git+https://github.com/puravparab/gitingest-mcp",
    				"gitingest-mcp"
    			]
    		}
    	}
    }
    

手动安装仓库

  1. 克隆仓库

    git clone https://https://github.com/puravparab/Gitingest-MCP
    cd Gitingest-MCP
    
  2. 安装依赖项

    uv sync
    
  3. 将以下内容添加到MCP客户端配置文件中

    {
    	"mcpServers": {
    		"gitingest": {
    			"command": "<uv路径>/uv",
    			"args": [
    				"run",
    				"--with",
    				"mcp[cli]",
    				"--with-editable",
    				"<gitingest-mcp项目路径>/gitingest_mcp",
    				"mcp",
    				"run",
    				"<gitingest-mcp项目路径>/gitingest-mcp/src/gitingest_mcp/server.py"
    			]
    		}
    	}
    }
    
  4. 如果遇到问题,请参考此MCP服务器文档

更新MCP客户端配置

  1. 添加到Claude Desktop

    在IDE中打开配置文件

    cursor ~/Library/Application\ Support/Claude/claude_desktop_config.json
    
    code ~/Library/Application\ Support/Claude/claude_desktop_config.json
    

调试

  1. 使用mcp检查器
    uv run mcp dev src/gitingest_mcp/server.py