VectorMCP
@sergiobayona
VectorMCP について
A server implementation for the Model Context Protocol (MCP) in Ruby.
基本情報
設定
ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is VectorMCP?
VectorMCP is a Ruby implementation of the Model Context Protocol (MCP) server-side specification. It provides a framework for exposing tools, resources, prompts, roots, sampling, middleware, and security over the MCP streamable HTTP transport. It is designed for Ruby developers building MCP‑compliant servers, especially those using Rack or Rails.
How to use VectorMCP?
Install the gem (gem install vector_mcp), require it in Ruby, then create a VectorMCP::Server instance, register tools (either class‑based via VectorMCP::Tool or block‑based via register_tool), and call server.run(port: 8080). The server can also be mounted inside a Rack app or Rails routes using server.rack_app.
Key features of VectorMCP
- Streamable HTTP transport with session management and resumability
- Class‑based and block‑based tool registration APIs
- Mountable in Rack and Rails via
rack_app - Opt‑in authentication (API key, custom, OAuth 2.1) and authorization
- Token‑based field anonymization middleware
- Image‑aware tools, resources, prompts, roots, and server‑initiated sampling
Use cases of VectorMCP
- Build an MCP server that exposes callable tools and resources for AI assistants
- Mount an MCP endpoint inside an existing Rails application for ActiveRecord‑backed tools
- Implement OAuth 2.1 authentication for MCP clients like Claude Desktop
- Anonymize sensitive fields (e.g., emails, SSNs) before they reach the LLM context
- Create a standalone HTTP server that handles tool invocations, resource reads, and prompt templates
FAQ from VectorMCP
What transport does VectorMCP use?
VectorMCP ships with streamable HTTP as its built‑in transport, supporting POST /mcp for JSON‑RPC messages, GET /mcp for SSE streams, and DELETE /mcp for session termination.
Does VectorMCP support OAuth 2.1?
Yes. Pass a resource_metadata_url: to enable_authentication! to enable RFC 9728 discovery. Unauthenticated requests return a 401 with a WWW‑Authenticate header pointing to the metadata document.
What Ruby version is required?
Ruby 3.2 or higher.
Can I use VectorMCP with Rails?
Yes. VectorMCP can be mounted in Rails routes via mount MCP_APP => "/mcp". It also includes VectorMCP::Rails::Tool for ActiveRecord‑backed tools.
How does field anonymization work?
The VectorMCP::Middleware::Anonymizer replaces sensitive string values with stable opaque tokens on outbound tool results and restores them on inbound tool arguments, keeping the original data hidden from the LLM.
「その他」の他のコンテンツ
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Blender
ahujasidOpen-source MCP to use Blender with any LLM
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
コメント