MCP Project Helper Server
Server MCP yang ringan dan dapat diperluas untuk menjalankan alat berbasis prompt dan
Dokumentasi
mcp-project-helper
A lightweight, extensible MCP (Model Context Protocol) server for running prompt-based tools and file utilities. Designed for easy integration, testing, and extension with custom prompts.
Features
- Prompt-based tools: Easily add new tools by writing simple JSON prompt files.
- File utilities: Includes tools for reading, writing, moving, and deleting files and directories.
- Custom prompts: Place your own prompt definitions in the
custom_prompts/directory. - Multiple transports: Supports STDIO, SSE, and HTTP for flexible integration.
- Extensive tests: Includes a test script to verify all tool endpoints.
Getting Started
Build Locally
make build-local
β‘ Quick Start
Install via go install
To quickly install the latest version from the repository:
go install github.com/ad/mcp-project-helper@latest
The binary will appear in $GOBIN or $HOME/go/bin (make sure this path is in your $PATH).
1. Build from source
# Clone the repository
git clone https://github.com/ad/mcp-project-helper.git
cd mcp-project-helper
go mod tidy
# Local build
make build-local
# Or manually
go build -o mcp-project-helper main.go
# Local build
make build-local
# Or manually
go build -o mcp-project-helper main.go
# Docker build
make build
Run the Server
- STDIO (default):
./mcp-project-helper
- SSE:
./mcp-project-helper -transport sse -port 8080 - HTTP:
./mcp-project-helper -transport http -port 8080
Run Tests
./test.sh
π Integration
VS Code
go install github.com/ad/mcp-project-helper@latest
ΠΠΎΠ±Π°Π²ΡΡΠ΅ Π² settings.json:
{
"mcp": {
"servers": {
"helper": {
"type": "stdio",
"command": "/absolute/path/to/project-helper",
"args": ["-transport", "stdio"]
}
}
}
}
Docker (VS Code)
{
"mcp": {
"servers": {
"helper": {
"type": "stdio",
"command": "docker",
"args": [
"run", "--rm", "-i",
"danielapatin/mcp-project-helper:latest",
"-transport", "stdio"
]
}
}
}
}
Claude Desktop
{
"mcpServers": {
"helper": {
"command": "/absolute/path/to/mcp-project-helper",
"args": ["-transport", "stdio"]
}
}
}
Adding Custom Tools
- Create a JSON file in
custom_prompts/(seepalette.jsonfor an example). - Each tool must define a
descriptionand apromptfield. - The tool will be automatically registered and available via the MCP protocol.
Example Tools
- tool-generator: Generates a tool description and prompt template based on a user query.
- palette: Suggests a harmonious color palette for a given color.
Project Structure
main.goβ Main server entry pointprompts/β Built-in prompt toolscustom_prompts/β User-defined prompt toolstest.shβ End-to-end test scriptMakefileβ Build and run commands
License
MIT