Back to MCP directory
publicPublicdnsLocal runtime

kompo-mcp-rb-server

Kompo MCP Ruby服务器项目,提供基于Docker容器的MCP服务开发环境

article

README

🚀 Kompo MCP Ruby 服务器

本项目提供了 Kompo MCP Ruby 服务器的相关设置和使用方法,帮助用户快速搭建和运行服务器应用。

🚀 快速开始

🔍 MCP 设置

VS Code 配置

在 VS Code 中,可以按照以下配置启动服务器:

{
  "servers": {
    "hello": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "kompo-mcp-rb-server"
      ]
    }
  }
}

开发相关

可以通过以下链接访问开发资源:https://github.com/modelcontextprotocol/inspector 使用以下命令启动:

npx @modelcontextprotocol/inspector start.sh

📦 安装指南

安装 Kompo

在本地仓库中安装 Kompo,使用以下命令:

gem install

💻 使用示例

运行 Kompo

按照以下步骤运行 Kompo:

docker build --no-cache -t kompo-mcp-rb-server .
docker run -it --rm -v .:/app kompo-mcp-rb-server bash

# 构建 kompo-vfs
# cd kompo-vfs
# rm -rf target
# cargo build --release
# cd ..

# 安装 kompo
# cd kompo
# gem build kompo.gemspec
# cd ../
gem install kompo/kompo-0.2.0.gem

# 运行 kompo
# kompo -e server.rb -o hello-mcp-server
kompo -e hello.rb --local-kompo-fs-dir=kompo-vfs

运行应用程序

使用以下命令运行应用程序:

docker run -it --rm kompo-mcp-rb-server ./app
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client