模型上下文协议(MCP)
](https://badge.fury.io/rb/mcp-ruby)  
模型上下文协议是一个开放标准,使开发人员能够在以下对象之间构建安全的双向连接 他们的数据源和人工智能驱动的工具。
目录
- 类型检查
🔑 主要特点
全部
📦 安装
通过执行以下命令安装gem:
$ gem install mcp-ruby⚡️ 快速启动
全部
📚 文档
🔨 发展
签出repo后,运行 bin/setup 安装依赖项。
要将此gem安装到本地计算机上,请运行 bundle exec rake install.
你也可以跑步 bin/console 获取一个交互式提示,让您可以进行实验。
要发布新版本,请在中更新版本号 version.rb,然后运行 bundle exec rake release, 这将为版本创建一个git标签,推送git commits和创建的标签,并推送 .gem 文件 向 rubygems.org.
代码库的健康和可维护性是通过一组 Rake任务用于测试、梳理和审计gem的安全漏洞和文档:
rake build # Build mcp-ruby.gem into the pkg directory
rake build:checksum # Generate SHA512 checksum if mcp-ruby.gem into the checksums directory
rake bundle:audit:check # Checks the Gemfile.lock for insecure dependencies
rake bundle:audit:update # Updates the bundler-audit vulnerability database
rake clean # Remove any temporary products
rake clobber # Remove any generated files
rake coverage # Run spec with coverage
rake install # Build and install mcp-ruby.gem into system gems
rake install:local # Build and install mcp-ruby.gem into system gems without network access
rake qa # Test, lint and perform security and documentation audits
rake release[remote] # Create a tag, build and push mcp-ruby.gem to rubygems.org
rake rubocop # Run RuboCop
rake rubocop:autocorrect # Autocorrect RuboCop offenses (only when it's safe)
rake rubocop:autocorrect_all # Autocorrect RuboCop offenses (safe and unsafe)
rake spec # Run RSpec code examples
rake verify_measurements # Verify that yardstick coverage is at least 100%
rake yard # Generate YARD Documentation
rake yard:junk # Check the junk in your YARD Documentation
rake yardstick_measure # Measure docs in lib/**/*.rb with yardstick类型检查
这个宝石利用 RBS,一种描述Ruby程序结构的语言。它是 用于在编辑器中提供类型检查和自动补全。跑 bundle exec typeprof FILENAME 生成 给定Ruby文件的RBS定义。并使用验证所有定义 陡峭 使用命令 bundle exec steep check.
🐞 问题和Bug
如果您发现任何问题或错误,请报告 这里,我会很高兴的 查看它们并尽快修复。
🤝 贡献
欢迎在GitHub上提交Bug报告和拉取请求,网址为https://github.com/wilsonsilva/mcp-ruby. 该项目旨在成为一个安全、温馨的协作空间,贡献者应遵守 到 行为准则.
📜 许可证
根据以下条款,gem可作为开源软件使用 MIT许可证.
👔 行为准则
预计每个人都会在MCP Ruby项目的代码库、问题跟踪器、聊天室和邮件列表中进行交互 遵循 行为准则.
