Skip to main content
Glama

Project Content Server

项目内容服务器

提供对项目文件及其内容的访问的 MCP 服务器。

安装

  1. 克隆存储库
  2. 安装依赖项:
    npm install
  3. 构建项目:
    npm run build

用法

启动服务器:

node build/index.js

API

最新项目数据

从项目目录中获取所有文件及其内容。

参数:

  • projectPath (字符串):项目目录的路径

示例请求:

{ "name": "latest_project_data", "arguments": { "projectPath": "/path/to/project" } }

响应示例:

{ "file1.txt": "Contents of file1", "subdir/file2.js": "Contents of file2" }

配置

可以使用环境变量来配置服务器:

  • PORT :运行服务器的端口(默认值:stdio)

错误处理

服务器返回以下格式的错误:

{ "content": [{ "type": "text", "text": "Error message" }], "isError": true }

常见错误包括:

  • 项目路径无效
  • 权限被拒绝错误
  • 文件系统错误

执照

麻省理工学院

You must be authenticated.

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

MCP 服务器提供对项目文件及其内容的访问,允许用户从指定的项目目录中检索文件数据,并提供错误处理和配置选项。

  1. 安装
    1. 用法
      1. API
    2. 配置
      1. 错误处理
        1. 执照

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            An MCP server that allows Claude AI to perform filesystem operations including reading, writing, listing, moving files, and searching directories within specified allowed paths.
            Last updated -
            5
            1
            JavaScript
          • A
            security
            A
            license
            A
            quality
            An MCP server that provides tools for reading, writing, and editing files on the local filesystem.
            Last updated -
            1
            1,387
            Python
            Apache 2.0
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Filesystem MCP server that allows an LLM to read and list files from a specified directory on your local machine through the Model Context Protocol.
            Last updated -
            2
            Python
          • -
            security
            A
            license
            -
            quality
            A dynamic MCP server implementation that automatically loads tools, resources, and prompts from their respective directories, allowing for easy extension and configuration.
            Last updated -
            Python
            MIT License

          View all related MCP servers

          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/MaheshDoiphode/mcp-cline-project-content-server'

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