Project Content Server
Project Content Server
An MCP server that provides access to project files and their contents.
<a href="https://glama.ai/mcp/servers/qmqbqlz2c4"><img width="380" height="200" src="https://glama.ai/mcp/servers/qmqbqlz2c4/badge" alt="Project Content Server MCP server" /></a>
Installation
- Clone the repository
- Install dependencies:Copynpm install
- Build the project:Copynpm run build
Usage
Start the server:
Copy
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:
Copy
{
"name": "latest_project_data",
"arguments": {
"projectPath": "/path/to/project"
}
}
Example Response:
Copy
{
"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:
Copy
{
"content": [{
"type": "text",
"text": "Error message"
}],
"isError": true
}
Common errors include:
- Invalid project path
- Permission denied errors
- File system errors
License
MIT
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.