Project Content Access
STDIOMCP server that provides access to project files and their contents.
MCP server that provides access to project files and their contents.
An MCP server that provides access to project files and their contents.
npm install
npm run build
Start the server:
node build/index.js
Get all files and their contents from a project directory.
Parameters:
projectPath
(string): Path to the project directoryExample Request:
{ "name": "latest_project_data", "arguments": { "projectPath": "/path/to/project" } }
Example Response:
{ "file1.txt": "Contents of file1", "subdir/file2.js": "Contents of file2" }
The server can be configured using environment variables:
PORT
: Port to run the server on (default: stdio)The server returns errors in the following format:
{ "content": [{ "type": "text", "text": "Error message" }], "isError": true }
Common errors include:
MIT