Project Content Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides access to project files and their contents from a specified directory, allowing retrieval of all files and their contents in a structured format.

  • Supports working with npm-based projects, allowing installation of dependencies and building projects through npm commands.

프로젝트 콘텐츠 서버

프로젝트 파일과 그 내용에 대한 액세스를 제공하는 MCP 서버입니다.

설치

  1. 저장소를 복제합니다
  2. 종속성 설치:지엑스피1
  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 }

일반적인 오류는 다음과 같습니다.

  • 잘못된 프로젝트 경로
  • 권한 거부 오류
  • 파일 시스템 오류

특허

MIT

You must be authenticated.

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

프로젝트 파일과 그 내용에 대한 액세스를 제공하는 MCP 서버로, 사용자는 오류 처리 및 구성 옵션을 사용하여 지정된 프로젝트 디렉터리에서 파일 데이터를 검색할 수 있습니다.

  1. Installation
    1. Usage
      1. API
    2. Configuration
      1. Error Handling
        1. License
          ID: qmqbqlz2c4