FM

f/mcp-startup-boilerplate

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

111 stars 17 forks 品質 47 トレンド 0

f/mcp-startup-boilerplateは、https://github.com/f/mcp-startup-boilerplate.からインポートされたMCPサーバー候補です。

概要

f/mcp-startup-boilerplateは、https://github.com/f/mcp-startup-boilerplate.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

モデルコンテキストプロトコル(MCP)を用いてClaude AIとシームレスに統合できる、AI搭載アプリケーションを構築するための堅牢で無料の即用Railsボイラープレートです。このボイラープレートには、ユーザー認証およびOAuth2プロバイダー機能が標準装備されています。

🚀 特徴

  • ユーザー認証:Deviseによる完全な認証システム
  • OAuth2プロバイダー:Doorkeeperを用いた完全なOAuth2サーバー実装
  • MCP統合:fast-mcpを用いたシームレスなClaude AI統合
  • 決済処理:サブスクリプションオプションを備えたツール向けの統合Stripe決済
  • モダンレールズ:最新機能を搭載したBuilt on Rails 8.0.2
  • Tailwind CSS:Tailwind を使った美しく反応の良い UI
  • Hotwire:ターボとスティマラスを備えた現代的で高速なフロントエンド

📋 要件

  • ルビー 3.2+
  • PostgreSQL
  • Node.js & Yarn(フロントエンドアセット用)
  • Stripeアカウント(決済処理用)

🔧 セットアップ

1.リポジトリのクローン

2.依存関係のインストール

3.データベースの設定

4.Stripeの設定(支払い機能は任意)

環境内でStripe APIキーを設定する:

開発のために、config/initializers/stripe.rbでこれらを更新することもできます。

5.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Startup Boilerplate v0.0.1

A robust, free, ready-to-use Rails boilerplate for building AI-powered applications that integrate seamlessly with Claude AI using the Model Context Protocol (MCP). This boilerplate includes user authentication and OAuth2 provider capabilities out of the box.

🚀 Features

  • User Authentication: Complete authentication system powered by Devise
  • OAuth2 Provider: Full OAuth2 server implementation with Doorkeeper
  • MCP Integration: Seamless Claude AI integration using fast-mcp
  • Payment Processing: Integrated Stripe payments for tools with subscription options
  • Modern Rails: Built on Rails 8.0.2 with the latest features
  • Tailwind CSS: Beautiful, responsive UI with Tailwind
  • Hotwire: Modern, fast frontend with Turbo and Stimulus

📋 Requirements

  • Ruby 3.2+
  • PostgreSQL
  • Node.js & Yarn (for frontend assets)
  • Stripe Account (for payment processing)

🔧 Setup

1. Clone the repository

git clone https://github.com/f/mcp-startup-boilerplate mcp-startup
cd mcp-startup

2. Install dependencies

bundle install
yarn install

3. Setup the database

rails db:create db:migrate db:seed

4. Configure Stripe (optional for payment features)

Set your Stripe API keys in your environment:

export STRIPE_PUBLISHABLE_KEY="pk_test_your_key"
export STRIPE_SECRET_KEY="sk_test_your_key"
export STRIPE_WEBHOOK_SECRET="whsec_your_webhook_key"

For development, you can also update these in config/initializers/stripe.rb

5. Start the server

rails server

Your application should now be running at http://localhost:3000

💳 Payment Integration

This application comes with built-in Stripe payment processing for MCP tools:

Subscription Plans

  • Standard Plan: $0.03 per tool call with 40% savings compared to pay-as-you-go
  • Enterprise Plan: $0.03 per tool call with additional benefits and unlimited usage

Pay-Per-Use Pricing

  • Default pricing: $0.05 per tool call (can be customized per tool)

Payment Management

  • User-friendly subscription management interface
  • Detailed usage tracking dashboard
  • Tool usage history and analytics

🧰 Paid Tool Framework

The application includes a PaidTool base class that allows you to easily create tools that require payment:

class YourPaidTool < PaidTool
  description "Your paid tool description"
  
  # Custom pricing (optional, defaults to $0.05)
  def price_cents
    8 # $0.08 per call
  end
  
  def call
    return { error: "User has no active subscription" } unless charge_user
  
    # Your implementation here after charge
  end
end

How PaidTool Works

  1. When a tool is called, it first checks if the user has an active subscription
  2. If subscribed, the tool executes and logs usage without additional charges
  3. If not subscribed, the user is charged the tool’s price via Stripe
GitHub で README 全文を見る

インストール

npx -y mcp-remote http://your-server-url/mcp/sse
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "your-server-name": { "command": "npx", "args": [ "-y", "mcp-remote", "http://your-server-url/mcp/sse" ] } } }