MCP 伺服器展示
@etrex
关于 MCP 伺服器展示
MCP Server Demo
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-demo-etrex": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"ruby",
"demo.rb"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP 伺服器展示?
MCP 伺服器展示是一個練習用的 Model Context Protocol (MCP) 伺服器實作,旨在幫助開發者學習和了解 MCP 協議的運作原理。它提供兩種不同的實作方式(基礎與結構化),並支援與 Claude 整合。
How to use MCP 伺服器展示?
環境需求為 Ruby 以及 Node.js 和 npm(用於 MCP inspector)。透過修改 Claude 的設定檔,加入指定 ruby 命令與 demo.rb 路徑的 JSON 結構來整合。測試可透過 MCP Inspector 或直接使用 STDIO 方式執行。
Key features of MCP 伺服器展示
- 提供基礎實作(simple_server.rb)與結構化實作(demo.rb)
- 支援與 Claude 桌面應用整合
- 可使用 MCP Inspector 進行互動式測試
- 支援 STDIO 直接測試與 PIP 快速測試
- 遵循 MIT 授權條款
Use cases of MCP 伺服器展示
- 學習 MCP 協議的基本概念與 JSON-RPC 流程
- 測試 MCP 伺服器與 Claude 的整合
- 作為開發個人化 MCP 伺服器的起始點
FAQ from MCP 伺服器展示
執行 MCP 伺服器展示需要哪些環境?
需要安裝 Ruby、Node.js 和 npm(後者用於 MCP inspector)。
如何將此 MCP 伺服器與 Claude 整合?
複製專案到本地,修改 Claude 設定檔加入 JSON 結構,指定 ruby 命令與 demo.rb 的絕對路徑,然後重新啟動 Claude。
有哪兩種測試方法?
可使用 MCP Inspector(執行 npx @modelcontextprotocol/inspector ruby demo.rb)或直接以 STDIO 模式執行 Ruby 檔案並手動輸入 JSON-RPC 指令。
simple_server.rb 與 demo.rb 有何不同?
simple_server.rb 為單一檔案的基礎實作,展示完整的 JSON-RPC 流程;demo.rb 使用模組化方式組織專案,適合建構可擴展的 MCP 伺服器架構。
專案的授權條款是什麼?
採用 MIT 授權條款。
其他 分类下的更多 MCP 服务器
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
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!
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
Blender
ahujasidOpen-source MCP to use Blender with any LLM
评论