使用说明
MCP注册表
主持一个简单 MCP注册表 作为GitHub Pages上的静态JSON文件。
快速启动
- 创建一个名为的新仓库(公共或私有)
mcp-registry. - 将这些文件上传到repo根目录。
- 在 设置→ Pages,设置:
- 来源:
Deploy from a branch - 分支:
main(根)
- 来源:
- 您的注册表URL将是:
https://<your-org-or-user>.github.io/<repo>/index.json
在本地验证
# optional: test locally with Python
python3 -m http.server 8000
curl -s http://localhost:8000/index.json | jq .
JSON格式
注册表公开了一个JSON,其中包含一个顶级 servers 数组:
{
"servers": [
{
"id": "weather-api",
"name": "Weather API MCP Server",
"description": "Provides current and forecast weather data.",
"manifest_url": "https://example.com/weather/mcp/manifest.json"
}
]
}
id--唯一服务器ID(必须与MCP服务器声明的ID匹配)。name--友好的显示名称。description--简短描述。manifest_url— 超文本传输安全协议 指向服务器MCP清单的URL。
使用GitHub Copilot
- 企业/组织设置→ 政策→ 副驾驶→ Copilot中的MCP服务器.
- 粘贴您的注册表URL(例如。,
https://<you>.github.io/mcp-registry/index.json). - 选择 允许所有 或 仅限注册表.
备注
- 保持
.nojekyll在repo根目录下,以避免Jekyll处理。 - 如果使用自定义域,请更新
CNAME与您的域名。 - 考虑与PR和CODEOWNERS进行门控更改。