Back to MCP directory
publicPublicdnsLocal runtime

mcp-server-multiverse

Multiverse MCP Server是一个中间件服务器,支持同时运行多个相同类型的MCP服务器实例,每个实例拥有独立的命名空间和配置,实现完全隔离的运行环境。

article

README

🚀 Multiverse 多世界服务器

Multiverse 是一个强大的多服务器管理平台,它能让你在单个 MCP(Model Context Protocol)服务器中运行并管理多个独立的服务器实例。每个服务器实例可具备不同的功能、配置和用途,实现资源的有效利用与灵活扩展。

✨ 主要特性

  • 文件监控:实时跟踪指定目录中的文件变化,确保代码热更新等功能正常运作。
  • 环境变量设置:通过配置环境变量,为每个服务器实例提供必要的运行参数,如 GitHub 的个人访问令牌。
  • 功能隐藏:可以选择性地隐藏特定的功能,限制潜在的安全风险或简化用户界面。
  • 服务器禁用:在不删除配置的情况下,临时禁用某些服务器实例,便于开发和测试。

📦 安装指南

文档未提及安装步骤,暂不提供。

💻 使用示例

配置选项

1. 基本配置

{
  "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": "<你的个人访问令牌>"
      }
    }
  ]
}

2. 文件监控

"fileWatch": {
  "enabled": true,
  "path": "/my-own/mcp-server/i-m-working-on/build/"
}

3. 功能隐藏

"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"]
      }
    }
  ]
}

📚 详细文档

计划中的功能

  • [ ] 支持提示管理
  • [ ] 支持资源管理
  • [ ] 添加图形用户界面(GUI)用于管理多世界服务器

已验证平台

  • [x] Windows 操作系统
  • [ ] macOS 系统
  • [ ] Linux 系统

📄 许可证

本项目采用 MIT 许可证,具体条款请参阅相关文档。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client