
CodeGPT 用于代码图分析和可视化的 MCP 服务器
概览
一个模型上下文协议服务器,实现与码图的无缝交互。 该MCP允许您与CodeGPT账户中的知识图谱或DeepGraph的公开图谱进行交互。 要从任何 GitHub 仓库创建图,只需将 URL 从 github.com 改为 deepgraph.co。例如:- GitHub 仓库: https://github.com/username/repo - DeepGraph URL: https://deepgraph.co/username/repo 你可以在不同的MCP主机上使用这些高级基于图表的查询,如ChatGPT、Cursor、Windsurf、CodeGPT扩展、GitHub Copilot、Claude Desktop、Claude Code、Gemini CLI等。 - 列表图:列出可用存储库图及基本信息。 - 获取代码:从图中检索特定功能的完整源代码。 - 查找直接连接:探索代码图中功能之间的直接关系。
概述(AI 翻译)
一个模型上下文协议服务器,实现与码图的无缝交互。
这是怎么运作的
该MCP允许您与CodeGPT账户中的知识图谱或DeepGraph的公开图谱进行交互。
要从任何 GitHub 仓库创建图表,只需将 URL 从 github.com 改为 deepgraph.co。例如:
- GitHub仓库:
https://github.com/username/repo - DeepGraph URL:
https://deepgraph.co/username/repo
你可以在不同的MCP主机上使用这些高级基于图表的查询,如ChatGPT、Cursor、Windsurf、CodeGPT扩展、GitHub Copilot、Claude Desktop、Claude Code、Gemini CLI等。
可用工具
-
list-graphs:列出可用仓库图及基本信息。 -
get-code:从图中获取特定功能的完整源代码。 -
find-direct-connections:探索代码图中功能之间的直接关系。 -
nodes-semantic-search:使用自然语言语义搜索代码功能。 -
docs-semantic-search:语义上搜索仓库文档。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Deep Graph MCP Server by CodeGPT
A Model Context Protocol server that enables seamless interaction with Code Graphs.
How this works
This MCP allows you to interact with knowledge graphs available in your CodeGPT account or with public graphs from DeepGraph.
To create a graph from any GitHub repository, simply change the URL from github.com to deepgraph.co. For example:
- GitHub repo:
https://github.com/username/repo - DeepGraph URL:
https://deepgraph.co/username/repo
You’ll be able to use these advanced graph-based queries across different MCP Hosts such as ChatGPT, Cursor, Windsurf, CodeGPT Extension, GitHub Copilot, Claude Desktop, Claude Code, Gemini CLI, and others.
Available Tools
-
list-graphs: Lists available repository graphs with basic information. -
get-code: Retrieves the complete source code for a specific functionality from the graph. -
find-direct-connections: Explores the direct relationships of a functionality within the code graph. -
nodes-semantic-search: Semantically searches for code functionalities using natural language. -
docs-semantic-search: Semantically searches repository documentation. -
get-usage-dependency-links: Analyzes and lists functionalities affected by changes to a code entity. -
folder-tree-structure: Retrieves the tree structure of a folder in the repository.
For Public Code Graphs (No Account Required)
You can interact with public graphs from DeepGraph:
- Find any public repository on deepgraph.co
- Use the repository reference (e.g.,
username/repository-name)
Installation using npx
Add the following configuration to your MCP client (CodeGPT Extension, Cursor, Copilot, Claude Desktop, Windsurf, etc.):
{
"mcpServers": {
"Deep Graph MCP": {
"command": "npx",
"args": ["-y" , "mcp-code-graph@latest",
"username/repository-name", // DeepGraph repository URL
"username2/repository-name2" // Add more repositories if needed
]
}
}
}
For Private Graphs (CodeGPT Account Required)
安装
npx -y mcp-code-graph@latest username/repository-name // DeepGraph repository URL
"username2/repository-name2" // Add more repositories if needed配置
{
"mcpServers": {
"Deep Graph MCP": {
"command": "npx",
"args": ["-y" , "mcp-code-graph@latest",
"username/repository-name", // DeepGraph repository URL
"username2/repository-name2" // Add more repositories if needed
]
}
}
}