mcp cline project content server

Local 2025-08-31 23:22:39 0

An MCP server that provides access to project files and their contents, allowing users to retrieve file data from specified project directories with error handling and configuration options.


An MCP server that provides access to project files and their contents.

Project Content Server MCP server

Installation

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Build the project:
    npm run build

Usage

Start the server:

node build/index.js

API

latest_project_data

Get all files and their contents from a project directory.

Parameters: - projectPath (string): Path to the project directory

Example Request:

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

Example Response:

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

Configuration

The server can be configured using environment variables:

  • PORT: Port to run the server on (default: stdio)

Error Handling

The server returns errors in the following format:

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

Common errors include: - Invalid project path - Permission denied errors - File system errors

License

MIT

[
  {
    "description": "Get latest project data including file names and contents",
    "inputSchema": {
      "properties": {
        "projectPath": {
          "description": "Path to the project directory",
          "type": "string"
        }
      },
      "required": [
        "projectPath"
      ],
      "type": "object"
    },
    "name": "latest_project_data"
  }
]