Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
33
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a Ruby gem called
mcp_server that provides a configurable Rack-based MCP (Model-Context-Protocol) server. It's designed to be pluggable and protocol-agnostic, allowing developers to integrate MCP functionality into their Rack-based applications.
# Run all tests bundle exec rake test # or simply bundle exec rake # Run a specific test file ruby -Ilib:test test/test_configuration.rb
# Run StandardRB for Ruby style checking standardrb
# Build the gem gem build mcp_server.gemspec # Install locally for testing gem install ./mcp_server-0.1.0.gem
MCP Server Configuration (
lib/mcp_server/configuration.rb): Central configuration object that stores callbacks for authentication, user resolution, and tool resolution. Uses a DSL pattern for easy setup.
Rack Application (
lib/mcp_server/rack_app.rb): The main entry point for HTTP requests. Implements the request/response cycle:
When integrating this gem:
MCPServer.configure { |c| c.authenticate_with { |request| ... } }The gem uses Minitest with
rack/mock for simulating HTTP requests. Tests are organized by component and focus on configuration behavior.
When writing code, do not add unnecessary comments.