Skip to main content
Glama
MCP Environment & Installation Manager

MCP Environment & Installation Manager

by devlimelabs

MCP 环境和安装管理器

用于管理 MCP 服务器及其配置的统一控制中心。此 MCP 服务器提供用于环境变量管理、基于配置文件的配置以及本地软件包安装自动化的工具。

特征

  • 环境变量管理:安全地存储和管理 MCP 服务器的环境变量

  • 配置文件系统:为不同的项目或环境创建不同的配置文件

  • 本地包安装:自动在本地安装 MCP 包

  • 配置监视:监视 MCP 配置并适应变化

  • 自动配置:自动更新配置以使用本地安装的包

Related MCP server: Promethean OS MCP

安装

Node.js 安装

# Global installation
npm install -g @devlimelabs/mcp-env-manager

# Or using yarn
yarn global add @devlimelabs/mcp-env-manager

# Or using pnpm
pnpm add -g @devlimelabs/mcp-env-manager

Docker 安装

# Clone the repository
git clone https://github.com/devlimelabs/master-mcps.git
cd master-mcps/packages/mcp-env-manager

# Build and run with Docker
npm run docker:build
npm run docker:run

# Or using Docker Compose
npm run compose:up

配置

根据.env.example模板创建.env文件:

# Copy the example configuration
cp .env.example .env

# Edit the configuration
nano .env

重要的环境变量

  • MCP_ENV_ENCRYPTION_KEY :加密敏感值时必需

  • MCP_ENV_STORAGE_DIR :存储配置的目录(默认值:~/.mcp-env-manager)

用法

命令行界面

# Start the MCP server with stdio transport (for Claude, Cursor integration)
mcp-env-manager

# Start with SSE transport (for web integration)
mcp-env-manager --sse --port 3000

使用 Claude 桌面版

  1. 运行提供的安装脚本:

npm run setup:claude

或者手动将环境管理器添加到您的 Claude for Desktop 配置文件中:

{
  "mcpServers": {
    "env-manager": {
      "command": "mcp-env-manager",
      "displayName": "Environment & Installation Manager"
    }
  }
}
  1. 重新启动 Claude for Desktop 并开始使用环境管理器工具。

使用光标

将环境管理器添加到您的 Cursor MCP 配置文件中:

{
  "mcpServers": {
    "env-manager": {
      "command": "mcp-env-manager"
    }
  }
}

工具示例

管理环境配置文件

> create-profile
  name: "Development Environment"
  description: "Configuration for local development"

> list-profiles

管理环境变量

> set-env-var
  profileId: "development-environment-12345"
  key: "API_KEY"
  value: "your-api-key-here"
  sensitive: true

> list-env-vars
  profileId: "development-environment-12345"

> activate-profile
  profileId: "development-environment-12345"

管理 MCP 安装

> install-mcp
  packageName: "@modelcontextprotocol/server-filesystem"

> list-installed-mcps

> update-mcp
  packageName: "@modelcontextprotocol/server-filesystem"

配置监视

> configure-watcher
  watchClaude: true
  watchCursor: true

> enable-auto-localize
  enabled: true

发展

# Install dependencies
npm install

# Start in development mode
npm run dev

# Run tests
npm test

# Build the package
npm run build

已知限制和未来改进

  • SSE 传输:当前的 SSE 传输实现尚不完善,并且会回退到 stdio。需要进一步完善才能使其完全兼容 Web 集成。

  • 测试:MCP 服务器通过 stdio 上的 JSON-RPC 进行通信,这使得自动化测试更加复杂。请参阅tests_guide.md了解手动测试步骤。

  • 包安装:包安装依赖于本地 Node.js 环境,需要使用实际的 MCP 包进行测试。

运行手动测试

有关手动测试的详细信息,请参阅测试指南。

Docker 部署

该软件包包括一个多阶段 Dockerfile 和 docker-compose.yml,可轻松部署:

# Start the service with Docker Compose
docker-compose up -d

# View logs
docker-compose logs -f

# Stop the service
docker-compose down

安全注意事项

  • MCP_ENV_ENCRYPTION_KEY应保持安全,并且不提交到版本控制

  • 使用提供的加密密钥对敏感值进行静态加密

  • 在生产环境中使用强大的、随机生成的加密密钥

贡献

欢迎贡献!详情请参阅CONTRIBUTING.md 。

执照

麻省理工学院

Available Tools

24 tools
activate-profileD

Inputs: profileId (required).

configure-installationD

Inputs: installationDir, preferredPackageManager, autoLocalize.

configure-notificationsD

Inputs: onNewServerDetected, onUpdateAvailable.

configure-watcherD

Inputs: watchClaude, watchCursor, claudeConfigPath, cursorConfigPath.

create-profileD

Inputs: name (required), description.

delete-env-varD

Inputs: profileId (required), key (required).

delete-profileD

Inputs: profileId (required), force.

enable-auto-localizeD

Inputs: enabled (required).

export-env-varsD

Inputs: profileId (required), format (required).

get-active-profileD

Inputs: no named parameters.

get-env-varD

Inputs: profileId (required), key (required).

get-installation-settingsD

Inputs: no named parameters.

get-mcp-packageD

Inputs: packageName (required).

get-profileD

Inputs: profileId (required).

get-watcher-configD

Inputs: no named parameters.

install-mcpD

Inputs: packageName (required), version.

list-env-varsD

Inputs: profileId (required).

list-installed-mcpsD

Inputs: no named parameters.

list-profilesD

Inputs: no named parameters.

localize-mcp-serverD

Inputs: configPath (required), serverName (required), packageName (required).

set-env-varD

Inputs: profileId (required), key (required), value (required), sensitive (required), +1 more.

uninstall-mcpD

Inputs: packageName (required), force.

update-mcpD

Inputs: packageName (required), version.

update-profileD

Inputs: profileId (required), name, description.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    D1.9/5.0

    Scored across 24 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific resources like profiles, env vars, installations, or MCP packages. However, some tools like 'configure-installation' and 'get-installation-settings' could potentially overlap in scope, and 'enable-auto-localize' vs 'localize-mcp-server' might cause confusion without descriptions. Overall, the set is mostly clear with minor ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with hyphen-separated words (e.g., 'activate-profile', 'configure-installation', 'get-env-var'). There are no deviations in naming style, making the set highly predictable and readable.

    Tool Count3/5

    With 24 tools, the count is borderline high for an environment manager, potentially feeling heavy. While it covers multiple aspects (profiles, env vars, installations, MCPs), it might be slightly over-scoped, risking complexity for agents.

    Completeness4/5

    The tool set provides comprehensive coverage for managing MCP environments, including CRUD operations for profiles, env vars, and MCP installations. Minor gaps might exist, such as missing tools for advanced configuration or error handling, but core workflows are well-covered.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A local CLI & API for MCP management that allows users to download, install, manage, and interact with MCPs from GitHub, featuring process state management, port allocation, and HTTP API routes.
      173
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A unified MCP server with composable tools for GitHub operations, file management, shell execution, kanban boards, Discord messaging, and package management. Features role-based security, HTTP/stdio transports, and a web-based development UI.
      GPL 3.0
    • A
      license
      Not graded
      quality
      F
      maintenance
      An MCP server that enables programmatic management and monitoring of development servers through a unified interface and interactive TUI. It provides tools for process control, log streaming, and experimental browser automation via Playwright.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A robust MCP server with tools to search, install, configure, repair, and uninstall MCP servers, automating setup and maintenance across multiple AI and developer tools.
      4
      17
      MIT