技能 mcp-builder
📦

mcp-builder

低風險 ⚙️ 外部命令

建立 MCP 伺服器

也可從以下取得: 92Bilal26,YYH211,anthropics,92Bilal26,davila7,ArtemisAI,ZhanlinCui,AutumnsGrove,Azeem-2,Doyajin174,DYAI2025,Cam10001110101,ComposioHQ

此技能協助開發者使用 mcp-use 框架建立具有工具、資源、提示和互動小工具的模型上下文協定伺服器。注意:此技能已棄用;請改用 mcp-app-builder。

支援: Claude Codex Code(CC)
🥉 72 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「mcp-builder」。 建立一個可翻譯文字的 MCP 工具

預期結果:

伺服器工具定義,包含呼叫外部 API 的翻譯函數,使用回應輔助函數傳回文字回應

正在使用「mcp-builder」。 建立具有城市搜尋功能的天氣小工具

預期結果:

React 元件,包含 weather-display.tsx、帶有 props 結構描述的 widgetMetadata,以及相符的工具配置

安全審計

低風險
v1 • 2/22/2026

All 442 static findings are false positives. The skill is a legitimate MCP server builder framework (deprecated). Findings appear in documentation/reference files showing code examples. The 'weak crypto' alerts are triggered by `.describe()` method (Zod), 'external commands' by markdown code fences, 'env access' by example config patterns, and 'network' by API call examples. No malicious code detected.

12
已掃描檔案
1,666
分析行數
5
發現項
1
審計總數
低風險問題 (4)
Documentation Examples with Environment Variables
Reference files contain example code showing environment variable access patterns (process.env). These are educational examples teaching proper configuration, not actual credential access.
Documentation Examples with Network Requests
Reference files contain example code showing fetch() calls to external APIs. These are educational examples demonstrating API integration patterns.
Markdown Code Block Triggers Command Detection
Documentation files use backtick code fences which trigger static scanner 'external commands' detection. These are markdown documentation, not executable code.
Zod describe() Method Triggers Crypto Alert
Code examples using Zod schema .describe() method trigger 'weak cryptographic algorithm' alerts (scanner matches 'des'). These are schema field descriptions, not crypto operations.
審計者: claude

品質評分

45
架構
100
可維護性
87
內容
50
社群
82
安全
91
規範符合性

你能建構什麼

建立新的 MCP 伺服器

引導具有工具、資源和提示的新 MCP 伺服器專案

新增工具和資源

使用 tool()、resource() 和 prompt() 方法定義伺服器端邏輯

建立互動式小工具

建立具有 widgetMetadata 的 React 元件以提供視覺化使用者介面

試試這些提示

引導新伺服器
建立一個名為 'my-server' 的新 MCP 伺服器,並提供一個可透過 ID 取得使用者資料的工具。請包含適當的錯誤處理。
新增資源端點
為我的 MCP 伺服器新增一個資源,可從 config://settings URI 傳回設定資料。
建立小工具工具
建立一個天氣顯示小工具,可顯示目前的天气状况。該工具應接受城市名稱,並顯示溫度、天氣狀況和濕度。
設計伺服器架構
我需要為待辦事項管理應用程式建立一個 MCP 伺服器。分析哪些應該是工具、小工具或資源。列出所需的具體工具、資源和提示。

最佳實務

  • 始終為 Zod 結構描述欄位新增 .describe() 以清楚說明參數文件
  • 當視覺或互動式輸出能改善使用者體驗時使用小工具
  • 在直接跳到程式碼實作前先參考 design-and-architecture.md

避免

  • 在先閱讀 design-and-architecture.md 之前就直接跳到程式碼
  • 當小工具能提供更好的使用者體驗時卻用工具處理所有事情
  • 跳過結構描述欄位的 .describe(),導致參數不清楚

常見問題

此技能是否仍然受支援?
不,此技能已棄用。請改用 mcp-app-builder 進行新的 MCP 伺服器開發。
工具和小工具之間有什麼區別?
工具執行後端動作並傳回資料。小工具是提供視覺或互動輸出的 React 元件。請將工具用於資料操作,當視覺呈現能改善使用者體驗時使用小工具。
如何在 MCP 工具中處理錯誤?
使用 error() 回應輔助函數傳回錯誤訊息。檢查必要資料是否缺失,並在處理前傳回錯誤。
我可以在 MCP 伺服器中使用環境變數嗎?
可以,在您的工具/資源回呼中透過 process.env 存取設定。建立 .env.example 來記錄必要的變數。
有哪些可用的回應輔助函數?
text()、object()、markdown()、html()、image()、audio()、binary()、error()、mix() 和 widget(),可用於不同的輸出格式。
如何測試我的 MCP 伺服器?
使用 server.listen() 在本機執行您的伺服器,並使用連線到您伺服器的 Claude 或 Codex 用戶端來測試工具/資源。