You signed in with another tab or window. Reload
to refresh your session. You signed out in another tab or window. Reload
to refresh your session. You switched accounts on another tab or window. Reload
to refresh your session. Dismiss alert
Mcp server scaffolding tool
3 stars
0 forks
Branches
Tags
Activity
Notifications
You must be signed in to change notification settings
master
Go to file
Code
| Name | | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| Latest commit
-------------
History
-------
3 Commits
| | |
| .github/workflows | | .github/workflows | | |
| src | | src | | |
| .gitignore | | .gitignore | | |
| .rustfmt.toml | | .rustfmt.toml | | |
| Cargo.lock | | Cargo.lock | | |
| Cargo.toml | | Cargo.toml | | |
| LICENSE | | LICENSE | | |
| Makefile | | Makefile | | |
| README.md | | README.md | | |
| View all files | | |
MCP
(Model Context Protocol) Server Template Generator
mcpc
is a command-line tool that generates scaffolding for MCP (Model Context Protocol) server projects. It helps you quickly set up a properly structured project with all necessary files and configurations.
Using Make:
# Build and install in one step
make install
Or using Cargo directly:
# Install from local repository
cargo install --path .
Basic usage:
mcpc project_name [options]
Options:
-l, --language
: Programming language to use (py/python, ts/typescript, default: typescript)-t, --tool
: Package manager tool to use:Examples:
# Create a TypeScript project named 'weather-api' using pnpm
mcpc weather-api -l ts -t pnpm
# Create a Python project named 'mcp-server' using uv
mcpc mcp-server -l py -t uv
project_name/
├── .gitignore
├── .prettierignore
├── .prettierrc
├── package.json
├── README.md
├── tsconfig.json
├── build/
└── src/
└── index.ts
project_name/
├── .gitignore
├── pyproject.toml
├── README.md
├── requirements.txt
├── server.py
└── .venv/
# Activate virtual environment
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies (if not already installed)
uv pip install -r requirements.txt
# Test server functionality without Claude
python server.py --test
# Run server for Claude integration
python server.py
# Install dependencies (if not already installed)
pnpm install # or: yarn / npm install
# Build the project
pnpm run build # or: yarn build / npm run build
# Run server
node build/index.js
To integrate with Claude for Desktop, configure your server in Claude's configuration file:
{
"mcpServers": {
"weather": {
"command": "uv", // or "node" for TypeScript
"args": [\
"--directory",\
"/ABSOLUTE/PATH/TO/PROJECT",\
"run",\
"server.py" // or "build/index.js" for TypeScript\
]
}
}
}
make # Build the project (same as 'make build')
make build # Build the project in debug mode
make release # Build the project in release mode
make install # Build in release mode and install
make run # Run the project in debug mode
make run-release # Run the project in release mode
make test # Run tests
make docs # Generate and open documentation
make clean # Clean build artifacts
make fmt # Format code with rustfmt
make check # Check for compilation errors
make clippy # Run Clippy lints
git clone https://github.com/yourusername/mcpc.git
cd mcpc
make install
This project is licensed under the MIT License - see the LICENSE
file for details.
Mcp server scaffolding tool
No releases published
No packages published
You can’t perform that action at this time.