Cover image
Try Now
2025-03-07

与普通红宝石逻辑一起轻松运行或连接MCP服务器。

3 years

Works with Finder

1

Github Watches

1

Github Forks

2

Github Stars

MCProto

Installation

TODO: Launch - Gem hasn't been made public

Usage

MCProto is a Ruby gem that allows you to chain MCP servers and auxiliary ruby code together for custom solutions.

After installing the gem, create an initializer, config/initializers/mcproto.rb and create your servers:

# Create any number of servers by passing in server classes, host, and port.
beta_invite_server = MCProto::Server.new(
  InviteUserToBeta,
  host: 'localhost',
  port: 3000
)

# Perform logic you may need before starting the servers.
beta_invite_server.start!

Ex: An MCP server can be run on its own

# servers/tag_user.rb
class TriggerByEmail
  include MCProto 
  
  delegate :email, to: :context
  
  resource do
    # TODO
    # define your resource (ex: db table)
    { name: 'email', description: 'Trigger by email' }
  end
  
  tool do
    # TODO
    description "Run when use email is mentioned."
  end
  
  call do
    run unless email_exists?(email)
  end
  
  private
  
  def email_exists?(email)
    #...
  end
end

Or, chain them together:

# servers/invite_user_to_beta.rb
class InviteUserToBeta
  include MCProto::Chain
  
  chain [ TriggerByEmail, SendEmailInvite ]
end

Each server can access the context object and read data from previous servers, or add their own data to the context.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Mcproto project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

    Reviews

    2 (1)
    Avatar
    user_sCQG2lxL
    2025-04-16

    I've been using mcproto for some time now and it has significantly improved my project workflow. Created by the talented wassson, this tool is user-friendly and efficient. The seamless integration and comprehensive features make it a must-have for any developer working with Minecraft protocols. Highly recommended!