一个强大的模型上下文协议(MCP)实现,用于可视化和分析目录结构。为什么?现在你可以让AI助手高效地理解和导航你的项目结构,从而实现更智能的代码导航和项目组织洞察。
构建于:
演示:
最简单的开始方式是使用Smithery:
npx -y @smithery/cli install @andredezzy/deep-directory-tree-mcp --client cursor
打开Cursor设置 → MCP → 添加新的MCP服务器
使用以下设置进行配置:
{
"deep-directory-tree": {
"command": "npx",
"args": ["-y", "@andredezzy/deep-directory-tree-mcp"]
}
}
在你的MCP配置中添加以下内容:
{
"mcpServers": {
"deep-directory-tree": {
"command": "npx",
"args": ["-y", "@andredezzy/deep-directory-tree-mcp"]
}
}
}
AI助手常用命令:
# 克隆仓库
git clone https://github.com/andredezzy/deep-directory-tree-mcp.git
cd deep-directory-tree-m
# 安装依赖
bun install
# 构建项目
bun run build
打开Cursor设置 → MCP → 添加新的MCP服务器
使用以下设置进行配置:
{
"deep-directory-tree": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_MCP_SERVER/bin/deep-directory-tree.js"]
}
}
在你的MCP配置中添加以下内容:
{
"mcpServers": {
"deep-directory-tree": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_MCP_SERVER/bin/deep-directory-tree.js"]
}
}
}
git checkout -b feature/amazing-feature)git commit -m '添加功能')git push origin feature/amazing-feature)需要帮助?尝试这些资源:
MIT许可证 - 查看LICENSE文件以获取详细信息。