Foobara MCP Connector
Easily expose Foobara commands written in Ruby as tools via MCP protocol for seamless AI agent integration.
View SourceFoobara MCP Connector
The Foobara MCP Connector enables developers to easily expose Foobara commands written in Ruby as tools via the Model Context Protocol. This connector bridges the gap between Foobara's command-based architecture and MCP's tool interface.
Key Features
- Seamless Integration: Connect Foobara commands directly to MCP protocol
- Ruby-Native: Built specifically for Ruby and Foobara ecosystem
- Command Mapping: Automatic mapping of Foobara commands to MCP tools
- Type Safety: Preserve Foobara's type validation in MCP context
- Zero Configuration: Minimal setup required for basic functionality
Installation
Add to your Gemfile:
gem 'foobara-mcp-connector'
Getting Started
Expose your Foobara commands via MCP:
require 'foobara/mcp_connector'
# Your existing Foobara command
class GreetUser < Foobara::Command
inputs name: :string
result :string
def execute
"Hello, #{name}!"
end
end
# Expose via MCP
connector = Foobara::MCPConnector.new
connector.register_command(GreetUser)
connector.start_server
Benefits
- Leverage Existing Code: Use your current Foobara commands
- AI Integration: Make Ruby business logic accessible to AI agents
- Maintained Architecture: Keep using Foobara's command patterns
- Production Ready: Built on Foobara's robust foundation
Use Cases
- Exposing Ruby business logic to AI agents
- Integrating Foobara applications with MCP ecosystem
- Building Ruby-based AI tools and services
- Modernizing Ruby applications for AI integration
Sponsored