Skip to main content
Glama

深层目录树 MCP 🌳

锻造工具调用 NPM 版本 NPM 下载

强大的模型上下文协议 (MCP) 实现,用于可视化和分析目录结构。为什么?因为现在您可以让 AI 助手高效地理解和导航您的项目结构,从而实现更智能的代码导航和项目组织洞察。

内置:

特征

  • 深层目录树可视化

  • 可配置的基于深度的树生成

  • 基于智能模式的文件/目录排除

  • 干净易读的树输出格式

  • 实时目录结构更新

  • 目标目录分析

演示:

游标 + 深层目录树 MCP 演示

Related MCP server: SourceSage MCP

快速入门

先决条件

Smithery 安装

最简单的入门方法是使用Smithery

npx -y @smithery/cli install @andredezzy/deep-directory-tree-mcp --client cursor

手动安装

光标 IDE 设置

  1. 打开游标设置 → MCP → 添加新的 MCP 服务器

  2. 使用以下设置进行配置:

    { "deep-directory-tree": { "command": "npx", "args": ["-y", "@andredezzy/deep-directory-tree-mcp"] } }

Claude 桌面设置

将以下内容添加到您的 MCP 配置中:

{ "mcpServers": { "deep-directory-tree": { "command": "npx", "args": ["-y", "@andredezzy/deep-directory-tree-mcp"] } } }

用法

AI助手常用命令:

  • “显示目录结构”

  • “可视化深度达 4 的项目树”

  • “显示不包括测试目录的文件”

发展

先决条件

# Clone the repository git clone https://github.com/andredezzy/deep-directory-tree-mcp.git cd deep-directory-tree-mcp # Install dependencies bun install # Build the project bun run build

开发手册安装

光标 IDE 设置

  1. 打开游标设置 → MCP → 添加新的 MCP 服务器

  2. 使用以下设置进行配置:

    { "deep-directory-tree": { "command": "node", "args": ["ABSOLUTE_PATH_TO_MCP_SERVER/bin/deep-directory-tree.js"] } }

Claude 桌面设置

将以下内容添加到您的 MCP 配置中:

{ "mcpServers": { "deep-directory-tree": { "command": "node", "args": ["ABSOLUTE_PATH_TO_MCP_SERVER/bin/deep-directory-tree.js"] } } }

贡献

  1. 分叉存储库

  2. 创建功能分支( git checkout -b feature/amazing-feature

  3. 提交更改( git commit -m 'Add feature'

  4. 推送到分支( git push origin feature/amazing-feature

  5. 打开拉取请求

支持

需要帮助?试试这些资源:

执照

MIT 许可证 - 详情请参阅LICENSE文件。

One-click Deploy
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/andredezzy/deep-directory-tree-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server