
f/mcp-startup-boilerplate
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
f/mcp-startup-boilerplate는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요
f/mcp-startup-boilerplate는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요(AI 번역)
Model Context Protocol(MCP)을 사용하여 Claude AI와 원활하게 통합되는 AI 기반 애플리케이션을 구축하기 위한 견고하고 무료이며 즉시 사용할 수 있는 Rails 보일러플레이트입니다. 이 보일러플레이트에는 사용자 인증과 OAuth2 제공자 기능이 기본 탑재되어 있습니다.
🚀 특징
- 사용자 인증: Devise가 지원하는 완전한 인증 시스템
- OAuth2 제공자: Doorkeeper를 이용한 완전한 OAuth2 서버 구현
- MCP 통합: fast-mcp를 이용한 원활한 Claude AI 통합
- 결제 처리: 구독 옵션이 포함된 도구를 위한 통합 Stripe 결제
- 현대 레일(Modern Rails): 최신 기능을 갖춘 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 키를 환경에 설정하세요:
개발을 위해 [[T0]에서 업데이트할 수도 있습니다.
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
- When a tool is called, it first checks if the user has an active subscription
- If subscribed, the tool executes and logs usage without additional charges
- If not subscribed, the user is charged the tool’s price via Stripe
설치
npx -y mcp-remote http://your-server-url/mcp/sse설정
{
"mcpServers": {
"your-server-name": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://your-server-url/mcp/sse"
]
}
}
}