AD

andredezzy/deep-directory-tree-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

15 stars 9 forks 质量 65 趋势 9MIT

强大的模式背景协议(MCP) 用于可视化目录结构,可实时更新,可配置深度,智能排除,以高效的项目导航

概览

强大的模式背景协议(MCP)执行,用于可视化和分析目录结构. 为什么? 现在,你可以让AI助手理解并高效地导航您的项目结构,从而实现更智能的代码导航和项目组织见解. -深目录树可视化 - 配置深度树基生成 - 智能模式基于文件/目录排除 - 清洁可读树输出格式 - 实时目录结构更新 - 有针对性目录分析 最容易开始的方法就是使用"史密斯": 1. 打开光标设置 → MCP → 添加新的 MCP 服务器 2. 配置这些设置 : 在您的 MCP 配置中添加以下内容 : - "给我看看目录结构" - "将项目树直达深度 4" - "显示不包括测试目录的文件" 1. 打开光标设置 → MCP → 添加新的 MCP 服务器 2. 配置这些设置 : 在您的 MCP 配置中添加以下内容 :

概述(AI 翻译)

强大的模式背景协议(MCP)执行,用于可视化和分析目录结构. 为什么? 现在,你可以让AI助手理解并高效地导航您的项目结构,从而实现更智能的代码导航和项目组织见解.

以下列方式建造:

  • 炭酸多氯乙烯
  • 诅咒

□ 特性

  • 深目录树可视化
  • 配置以深度为基础的树的生成
  • 智能模式文件/目录排除
  • 清洁可读树输出格式
  • 实时目录结构更新
  • 定向目录分析

** DEMO:**

□ 快开始

· 先决条件

  • 节点.js(v18或以上)
        • 安装出镜器

最容易开始的方法就是使用"史密斯":

手动安装

QQ 光标 IDE 设置

  1. 打开光标设置 → MCP → 添加新的 MCP 服务器
  2. 配置这些设置:

++ Claude 桌面设置

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

□ 使用量

AI 助手的共同命令 :

  • “给我看看目录结构”
  • “将项目树直达深度4”
  • “显示不包括测试目录的文件”

□ 发展

· 先决条件

  • 运行时间(需要)
  • 开发手册安装

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Deep Directory Tree MCP 🌳

A powerful Model Context Protocol (MCP) implementation for visualizing and analyzing directory structures. Why? Now you can let AI assistants understand and navigate your project structure efficiently, enabling smarter code navigation and project organization insights.

Built with:

Features

  • Deep directory tree visualization
  • Configurable depth-based tree generation
  • Smart pattern-based file/directory exclusion
  • Clean and readable tree output format
  • Real-time directory structure updates
  • Targeted directory analysis

DEMO:

Quick Start

Prerequisites

Smithery Installation

The easiest way to get started is using Smithery:

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

Manual Installation

Cursor IDE Setup

  1. Open Cursor Settings → MCP → Add new MCP server

  2. Configure with these settings:

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

Claude Desktop Setup

Add the following to your MCP configuration:

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

Usage

Common commands for AI assistants:

  • “Show me the directory structure”
  • “Visualize project tree up to depth 4”
  • “Show files excluding test directories”

Development

Prerequisites

# 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

Development Manual Installation

Cursor IDE Setup

  1. Open Cursor Settings → MCP → Add new MCP server

  2. Configure with these settings:

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

Claude Desktop Setup

Add the following to your MCP configuration:

{
  "mcpServers": {
    "deep-directory-tree": {
      "command": "node",
      "args": ["ABSOLUTE_PATH_TO_MCP_SERVER/bin/deep-directory-tree.js"]
在 GitHub 查看完整 README

安装

npx -y @andredezzy/deep-directory-tree-mcp
新手?先看 mcpskill.org 教程 →

配置

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