Token导航 LogoToken导航TokenDH.com
MCP Project Overview logo
开发工具未说明官方级别未说明来源级核验

MCP Project Overview

MCP Server

一个基于Node.js的MCP服务器,用于分析和总结代码项目架构,提供项目结构视图、文件分析、项目摘要生成以及LangChain集成和Chroma向量数据库支持。

工具数

5

提示词数

0

GitHub Stars

1

资源数

0
代码分析开发工具TypeScript向量数据库

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Pengguancheng

提供方

Pengguancheng

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

MCP Project Overview

MCP Server for creating code project file architecture and summary using the Model Context Protocol (MCP).

Description

This is a Node.js application built with TypeScript that implements an MCP server to help analyze and summarize code project architecture. It uses the @modelcontextprotocol/sdk to provide resources and tools for project analysis.

Features

  • Project Structure Resource: Get a structured view of a project's file hierarchy
  • File Analysis Tool: Analyze the content and purpose of individual files
  • Project Summary Tool: Generate a comprehensive summary of a project including its structure and package information
  • LangChain Integration: Utilize LangChain for advanced language model capabilities
  • Chroma Vector Database: Store and retrieve vector embeddings for semantic search

Prerequisites

  • Node.js (v18 or higher)
  • npm (v6 or higher)
  • OpenAI API key (for LangChain and vector embeddings)
  • Chroma DB server (optional, defaults to http://localhost:8000)

Installation

  1. Clone the repository:
   git clone https://github.com/Pengguancheng/mcp-project-overview.git
   cd mcp-project-overview
  1. Install dependencies:
   npm install

MCP Server 配置

要在您的編輯器或開發環境中整合 MCP Server,請使用以下配置:

{
  "mcpServers": {
    "chroma": {
      "command": "node",
      "args": [
        "dist/index.js"
      ],
      "env": {
        "OPENAI_API_KEY": "your-openai-api-key-here",
        "PROJECT_NAME": "your-project-name"
      }
    }
  }
}

環境變量說明

  • OPENAI_API_KEY: 您的 OpenAI API 密鑰,用於生成嵌入和項目摘要
  • PROJECT_NAME: 項目名稱,用作 Chroma 集合名稱
  • CHROMA_URL: (可選) Chroma 數據庫服務器 URL,默認為 http://localhost:8000

MCP 使用範例

添加代碼文檔到向量數據庫

// 添加類文檔
await mcpClient.callTool("vector-add", {
  type: "class",
  name: "UserRepository",
  namespace: "app.repositories",
  text: "負責用戶數據的 CRUD 操作,包含創建、讀取、更新和刪除用戶的方法。",
  projectName: "my-project",
  filePath: "src/repositories/UserRepository.ts",
  summary: "用戶數據訪問層",
  references: ["src/models/User.ts", "typeorm"]
});

語義搜索代碼實體

// 自然語言查詢
const results = await mcpClient.callTool("vector-search", {
  query: "用戶認證相關的代碼",
  projectName: "my-project",
  limit: 5
});

// 按類型過濾
const classResults = await mcpClient.callTool("vector-search", {
  query: "數據庫操作",
  type: "class",
  projectName: "my-project"
});

// 按引用關係過濾
const refResults = await mcpClient.callTool("vector-search", {
  query: "用戶管理",
  references: ["src/models/User.ts"],
  projectName: "my-project"
});

生成項目概覽

await mcpClient.callTool("summary-code", {
  projectDir: "/path/to/your/project",
  targetDir: "src",
  outputFile: "docs/overview.md",
  summaryType: "overview"
});

清除向量數據庫

await mcpClient.callTool("vector-clear", {
  projectName: "my-project"
});

使用資源查詢

// 使用資源進行自然語言查詢
const resourceResult = await mcpClient.getResource("chroma://query/視頻處理相關的代碼");

目录标签

目录标签

代码分析开发工具TypeScript向量数据库本地部署项目摘要LangChain集成

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

api-key

工具数量(toolCount,工具数)

5

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明api-key部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP