Multiverse 是一个强大的多服务器管理平台,它能让你在单个 MCP(Model Context Protocol)服务器中运行并管理多个独立的服务器实例。每个服务器实例可具备不同的功能、配置和用途,实现资源的有效利用与灵活扩展。
文档未提及安装步骤,暂不提供。
{
"serverName": "示例服务器",
"functionsPrefix": "example-prefix",
"servers": [
{
"command": "node",
"args": ["./build/index.js"],
"fileWatch": {
"enabled": true,
"path": "./build"
}
},
{
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github@latest"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<你的个人访问令牌>"
}
}
]
}
"fileWatch": {
"enabled": true,
"path": "/my-own/mcp-server/i-m-working-on/build/"
}
"hideFunctions": ["create_repository", "delete_repository", "create_issue"]
以下是一个完整的 multiverse.json 文件示例:
{
"serverName": "大型项目资源管理器",
"functionsPrefix": "huge-project",
"servers": [
{
"command": "node",
"args": ["./build/index.js"],
"fileWatch": {
"enabled": true,
"path": "./build"
}
},
{
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem@latest"],
"args": ["/full/path/to/huge-project"],
"pathResolution": {
"root": "/full/path/to/huge-project",
"applyTo": ["path", "paths"]
}
},
{
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github@latest"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<你的个人访问令牌>"
}
},
{
"command": "uvx",
"args": ["mcp-server-git", "--repository", "/full/path/to/huge-project"],
"pathResolution": {
"root": "/full/path/to/huge-project",
"applyTo": ["repo_path"]
}
}
]
}
本项目采用 MIT 许可证,具体条款请参阅相关文档。