pforge-cli-0.1.4 is not a library.
pforge-cli
Command-line interface for the pforge framework - build Model Context Protocol (MCP) servers from declarative YAML configuration.
Installation
Quick Start
# Create a new MCP server project
# Run the server
# Build for production
Commands
pforge new <name>- Scaffold a new MCP server projectpforge serve- Run the MCP server in development modepforge build- Build the server binarypforge dev- Development mode with hot reload (planned)pforge test- Run tests for your handlerspforge quality- Run quality gates (formatting, linting, tests, coverage)
Features
- Zero Boilerplate: Define your MCP server entirely in YAML
- Type Safety: Automatically generated Rust code with full type checking
- Hot Reload: Fast development cycle with automatic reloading (coming soon)
- Quality Built-in: Integrated quality gates and PMAT enforcement
- Multiple Transports: stdio, SSE, and WebSocket support
Example
Create a pforge.yaml:
forge:
name: my-server
version: 0.1.0
transport: stdio
tools:
- type: native
name: greet
description: "Greet someone"
handler:
path: handlers::greet_handler
params:
name:
Implement src/handlers/mod.rs:
use *;
use ;
Then run: pforge serve
Documentation
License
MIT