pforge MCPサーバー
コミット 2026年11月10日ボイラープレートコードを書く代わりに、宣言的なYAML設定を使用してMCP serverを構築できます。
別名 paiml/pforge
- スター
- 3
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.1.2
- 最終コミット
- 2026年11月10日
- ライセンス
- MIT
pforge MCPとは
pforgeはMCPサーバーです。 ボイラープレートコードを書く代わりに、宣言的なYAML設定を使用してMCP serverを構築できます。.
プロジェクトのREADMEから生成された概要
pforge MCP server について
繰り返しの多いボイラープレートコードを書かずにModel Context Protocol serverを作成したい開発者は、pforgeを使用してYAML設定を通じてツールを定義できます。このフレームワークは、宣言内容から最適化されたRustコードを生成し、pmcp SDKの上で動作してプロトコルの実装とトランスポートを処理します。Cargo経由でpforge-cliをインストールし、pforge serveコマンドを使用してプロジェクトを実行することで、サーバーを管理できます。
このシステムは、さまざまなニーズに対応する4つの異なるハンドラータイプをサポートしています。型安全性のためのネイティブなRust関数、シェル実行のためのCLIコマンド、エンドポイントのプロキシのためのHTTP、そしてツールを連結するためのパイプラインです。Rustベースで構築されていますが、Deno/TypeScriptブリッジを提供しており、型安全なハンドラー定義と実行時のスキーマ検証が可能です。このアプローチにより、プロトコルの実装作業からツールのロジックと設定へと焦点を移し、迅速な開発を実現します。
できること
- 1新しいサーバーの迅速なスキャフォールディング単一のコマンドを実行するだけで、新しいプロジェクト構造を素早く初期化できます。
- 2ツールとしてのシェルコマンドの実行CLIハンドラータイプを使用して、ローカルのシステムコマンドを実行するMCP toolを作成できます。
- 3外部WebサービスのプロキシHTTPハンドラーを使用して、既存のWeb APIへのブリッジとして機能するサーバーを構築できます。
- 4TypeScriptを使用したサーバー構築Web技術を好むユーザーは、純粋なRustの代わりにDenoとTypeScriptを使用してハンドラーを実装できます。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
自動チェック
実行日 2026年11月14日完全なレポート →まだ検証されていません。サーバーには80点のスコア、重大な問題がないこと、および検証に必要な十分なデータが必要です。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能paiml/pforge is public and reachablegithub.com/paiml/pforge ↗合格
- パッケージがこのリポジトリをソースとして指定未チェック
- ビルドの来歴 (Sigstore 証明)未チェック
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-11-10github.com/paiml/pforge ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していない未チェック
- パッケージおよびその依存関係に重大な勧告なし未チェック
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るpforge
A declarative framework for building Model Context Protocol (MCP) servers using YAML configuration.
MCP Server
Registry Name: io.github.paiml/pforge
pforge is available in the Model Context Protocol (MCP) Registry. Install it via:
# Via Cargo (recommended)
cargo install pforge-cli
# Then run as MCP server
pforge serve
For Maintainers: See MCP Registry Publishing Guide for publishing instructions.
What is pforge?
pforge lets you define MCP servers in YAML instead of writing boilerplate code. It's built on top of pmcp (rust-mcp-sdk) and generates optimized Rust code from your configuration.
Quick example:
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: { type: string, required: true }
Installation
# From crates.io
cargo install pforge-cli
# From source
git clone https://github.com/paiml/pforge
cd pforge
cargo install --path crates/pforge-cli
Quick Start
# Create new project
pforge new my-server
cd my-server
# Run the server
pforge serve
The scaffolded project includes a working example handler. Edit pforge.yaml to add more tools, then implement handlers in src/handlers/.
Handler Types
pforge supports four handler types:
- Native - Rust functions with full type safety
- CLI - Execute shell commands
- HTTP - Proxy HTTP endpoints
- Pipeline - Chain multiple tools together
See the book for detailed examples of each type.
Language Bridges
pforge provides language bridges for building MCP servers in your preferred language:
Deno/TypeScript Bridge
Build type-safe MCP servers using TypeScript and Deno with native performance:
import { PforgeBridge } from "https://raw.githubusercontent.com/paiml/pforge/main/bridges/deno/bridge.ts";
const bridge = new PforgeBridge();
bridge.register({
name: "greet",
description: "Greet a user by name",
handler: (input: { name: string }) => ({
success: true,
data: { message: `Hello, ${input.name}!` },
}),
});
const result = await bridge.execute("greet", { name: "Alice" });
console.log(result.data);
Features:
- Type-safe handler definitions with TypeScript generics
- Runtime schema validation with no external dependencies
- O(1) handler lookup performance
- Both sync and async handler support
- 74+ tests passing with full quality gates
Documentation: bridges/deno/README.md
Coming Soon
- Python bridge (FFI-based with asyncio support)
- Go bridge (CGo-based with goroutine support)
- Node.js bridge (Native addon with N-API)
Documentation
- Book - Complete guide with examples and comparisons
- Architecture - Technical design details
- User Guide - Usage guide
- Implementation Status - Current project status
- CLAUDE.md - Development workflow for contributors
Examples
- hello-world - Minimal native handler example
- calculator - Math operations with tests
- rest-api-proxy - HTTP handler examples
Project Status
Version: 0.1.2
Published crates:
pforge-config- Configuration parsingpforge-macro- Procedural macrospforge-runtime- Core runtime (depends on pmcp)pforge-codegen- Code generationpforge-cli- CLI tool
Test results: 120+ tests passing (90+ unit/integration, 12 property-based, 8 quality gates, 5+ doctests)
See IMPLEMENTATION_STATUS.md for detailed progress.
Development
# Run tests
cargo test --all
# Run quality gates
make quality-gate
# Watch mode
make watch
# Build release
make build-release
See CLAUDE.md for full development workflow.
Architecture
pforge is built as a framework on top of pmcp (rust-mcp-sdk):
┌─────────────────────────────────┐
│ pforge (Framework Layer) │
│ - YAML → Rust codegen │
│ - Handler registry │
│ - State management │
└─────────────────────────────────┘
↓
┌─────────────────────────────────┐
│ pmcp (Protocol SDK) │
│ - MCP protocol implementation │
│ - Transport handling │
└─────────────────────────────────┘
When to use pmcp directly: You need fine-grained control over MCP protocol details or want to avoid code generation.
When to use pforge: You want declarative configuration and rapid MCP server development with less code.
Contributing
Contributions are welcome. Please:
- Read CLAUDE.md for development standards
- Check ROADMAP.md for current priorities
- Ensure tests pass:
cargo test --all - Ensure quality gates pass:
make quality-gate
All commits are validated by pre-commit hooks that check code formatting, linting, tests, complexity, coverage, and markdown link validity (using pmat validate-docs) to prevent broken documentation links.
License
MIT - see LICENSE
Acknowledgments
Built on pmcp by Pragmatic AI Labs.
pforge MCPのよくある質問
pforgeがサポートしているハンドラーの種類は何ですか?
pforgeは、Native(Rust関数)、CLI(シェルコマンド)、HTTP(エンドポイントのプロキシ)、Pipeline(ツールのチェイニング)のハンドラータイプをサポートしています。
TypeScriptを使用してMCP serverを構築できますか?
はい、pforgeはDeno/TypeScriptブリッジを提供しており、TypeScriptとDenoを使用して型安全なMCP serverを構築できます。
pforgeのインストール方法を教えてください。
Cargoを使用して、コマンド 'cargo install pforge-cli' でCLIをインストールできます。
pmcpを直接使うのではなく、どのような場合にpforgeを使うべきですか?
宣言的な設定と少ないコードによる迅速な開発を求める場合はpforgeを使用してください。一方で、プロトコルの詳細に対してきめ細かな制御を行いたい場合はpmcpが適しています。