
yjacquin/fast-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
모델 컨텍스트 프로토콜의 루비 구현
개요
AI 모델을 루비 애플리케이션에 쉽게 연결할 수 있습니다. 복잡한 프로토콜, 통합 골칫거리, 호환성 문제 없이, 오직 아름답고 표현력 있는 루비 코드만을 활용할 수 있습니다. AI 모델은 강력하지만, 진정으로 유용하려면 애플리케이션과 상호작용해야 합니다. 전통적인 접근법은 다음과 같은 문제들과 씨름해야 합니다: - 🔄 복잡한 통신 프로토콜 및 맞춤형 JSON 형식 - 🔌 다양한 모델 제공자와의 통합 문제 - 🧩 앱과 AI 도구 간 호환성 문제 - 🧠 AI 상호작용과 데이터 간 상태 관리 Fast MCP는 모델 컨텍스트 프로토콜을 깔끔하고 루비 중심으로 구현함으로써 이 모든 문제를 해결하여, AI 통합을 번거롭지 않고 즐겁게 만듭니다. - 🛠️ - AI 모델이 Dry-Schema를 통한 심층적인 인수 검증을 통해 Ruby 함수를 안전하게 호출할 수 있게 합니다. - 📚 - 앱과 AI 모델 간 데이터 공유 - 🔄 - 필요에 따라 STDIO, HTTP, SSE 중 선택 - 🧩 - Rails, Sinatra 또는 모든 Rack 앱과 원활하게 작동합니다.
개요(AI 번역)
AI 모델을 루비 애플리케이션에 쉽게 연결하세요 복잡한 프로토콜도, 통합 골치 아픈 문제도, 호환성 문제도 없으며, 그저 아름답고 표현력 있는 루비 코드뿐입니다.
🌟 서버를 LLM과 몇 분 만에 연결하세요
AI 모델은 강력하지만, 진정으로 유용하려면 애플리케이션과 상호작용해야 합니다. 전통적인 접근법은 다음과 같은 문제들과 씨름해야 합니다:
- 🔄 복잡한 통신 프로토콜과 맞춤형 JSON 형식
- 🔌 서로 다른 모델 제공자와의 통합 과제
- 🧩 앱과 AI 도구 간의 호환성 문제
- 🧠 AI 상호작용과 데이터 간 상태 관리
Fast MCP는 모델 컨텍스트 프로토콜을 깔끔하고 루비 중심으로 구현함으로써 이 모든 문제를 해결하여, AI 통합을 번거롭지 않고 즐겁게 만듭니다.
✨ 특징
- 🛠️ 도구 API - AI 모델이 Dry-Schema를 통한 심층적인 인자 검증을 통해 Ruby 함수를 안전하게 호출할 수 있게 합니다.
- 📚 리소스 API - 앱과 AI 모델 간 데이터 공유
- 🔄 다중 전송 수단 - 필요에 따라 STDIO, HTTP, SSE 중 선택할 수 있습니다
- 🧩 프레임워크 통합 - Rails, Sinatra 또는 모든 Rack 앱과 원활하게 작동합니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Fast MCP 🚀
🌟 Interface your Servers with LLMs in minutes
AI models are powerful, but they need to interact with your applications to be truly useful. Traditional approaches mean wrestling with:
- 🔄 Complex communication protocols and custom JSON formats
- 🔌 Integration challenges with different model providers
- 🧩 Compatibility issues between your app and AI tools
- 🧠 Managing the state between AI interactions and your data
Fast MCP solves all these problems by providing a clean, Ruby-focused implementation of the Model Context Protocol, making AI integration a joy, not a chore.
✨ Features
- 🛠️ Tools API - Let AI models call your Ruby functions securely, with in-depth argument validation through Dry-Schema.
- 📚 Resources API - Share data between your app and AI models
- 🔄 Multiple Transports - Choose from STDIO, HTTP, or SSE based on your needs
- 🧩 Framework Integration - Works seamlessly with Rails, Sinatra or any Rack app.
- 🔒 Authentication Support - Secure your AI-powered endpoints with ease
- 🚀 Real-time Updates - Subscribe to changes for interactive applications
- 🎯 Dynamic Filtering - Control tool/resource access based on request context (permissions, API versions, etc.)
💎 What Makes FastMCP Great
# Define tools for AI models to use
server = FastMcp::Server.new(name: 'popular-users', version: '1.0.0')
# Define a tool by inheriting from FastMcp::Tool
class CreateUserTool < FastMcp::Tool
description "Create a user"
# These arguments will generate the needed JSON to be presented to the MCP Client
# And they will be validated at run time.
# The validation is based off Dry-Schema, with the addition of the description.
arguments do
required(:first_name).filled(:string).description("First name of the user")
optional(:age).filled(:integer).description("Age of the user")
설치
npx @modelcontextprotocol/inspector examples/server_with_stdio_transport.rb설정
{
"mcpServers": {
"my-great-server": {
"command": "ruby",
"args": ["/Users/path/to/your/awesome/fast-mcp/server.rb"]
}
}
}