Nuanced MCP 服务器
模型上下文协议 (MCP)服务器通过细致的库为 LLM 提供调用图分析功能。
概述
该 MCP 服务器使 LLM 能够通过标准化工具和资源访问函数调用图来理解代码结构。它允许 AI 助手:
初始化 Python 存储库的调用图
探索函数调用关系
分析函数之间的依赖关系
提供更多上下文感知的代码帮助
API
工具
初始化图
为给定的存储库路径初始化代码图
输入:
repo_path
(字符串)
切换存储库
切换到不同的初始化存储库
输入:
repo_path
(字符串)
列出存储库
列出所有已初始化的存储库
无需输入
获取函数调用图
获取特定函数的调用图
输入:
file_path
(字符串)function_name
(字符串)repo_path
(字符串,可选)-如果未指定,则使用活动存储库
分析依赖关系
查找代码库中的所有模块或文件依赖项
输入(至少需要一个):
file_path
(字符串,可选)module_name
(字符串,可选)
分析变化影响
分析更改特定功能的影响
输入:
file_path
(字符串)function_name
(字符串)
资源
graph://summary
获取当前加载的代码图的摘要
无需参数
graph://repo/{repo_path}/summary
获取特定存储库的代码图摘要
参数:
repo_path
(字符串) - 存储库路径
graph://function/{file_path}/{function_name}
获取有关特定功能的详细信息
参数:
file_path
(字符串) - 包含函数的文件路径function_name
(字符串) - 要分析的函数名称
提示
分析函数
创建提示来分析函数及其调用图
参数:
file_path
(字符串) - 包含函数的文件路径function_name
(字符串) - 要分析的函数名称
影响分析
创建提示来分析更改功能的影响
参数:
file_path
(字符串) - 包含函数的文件路径function_name
(字符串) - 要分析的函数名称
分析依赖项提示
创建提示来分析文件或模块的依赖关系
参数(至少一个必需):
file_path
(字符串,可选) - 要分析的文件路径module_name
(字符串,可选)-要分析的模块的名称
与 Claude Desktop 一起使用
将其添加到您的claude_desktop_config.json
紫外线
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
MCP 服务器使 LLM 能够通过函数调用图理解和分析代码结构,从而允许 AI 助手探索函数之间的关系并分析 Python 存储库中的依赖关系。
Related Resources
Related MCP Servers
- -securityAlicense-qualityAn MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.Last updated -14MIT License
- -securityFlicense-qualityA customized MCP server that enables integration between LLM applications and documentation sources, providing AI-assisted access to LangGraph and Model Context Protocol documentation.Last updated -1
- AsecurityAlicenseAqualityAn MCP server that scans codebases to extract structural information (classes, functions, etc.) with flexible filtering options and outputs in LLM-friendly formats.Last updated -13GPL 3.0
- -securityAlicense-qualityAn MCP server that enables AI assistants to access up-to-date documentation for Python libraries like LangChain, LlamaIndex, and OpenAI through dynamic fetching from official sources.Last updated -1MIT License