Back to MCP directory
publicPublicdnsLocal runtime

ops-mcp

ops-mcp是一个用于操作管理的MCP服务器项目,支持通过Claude配置进行实例和镜像管理。

article

README

🚀 ops-mcp

ops-mcp 是用于 ops 的 mcp 服务器,为 ops 相关操作提供支持。

🚀 快速开始

构建

按照常规方式进行构建。

配置

将以下配置文件路径记录下来:

~/Library/Application Support/Claude/claude_desktop_config.json

环境设置

确保你的命令路径正确,更重要的是设置好 PATH 环境变量以保证程序能够正常运行。以下是配置文件示例:

{
    "mcpServers": {
        "ops-mcp": {
            "command": "/Users/eyberg/go/src/github.com/nanovms/ops-mcp/ops-mcp",
            "args": [],
            "env": {
                "HOME": "/Users/eyberg",
                "LOGNAME": "eyberg",
                "PATH": "/bin:/Users/eyberg/.ops/bin",
                "SHELL": "/bin/zsh",
                "USER": "eyberg"
            }
        }
    }
}

可用工具

以下是一些可用的命令:

List instances
List images
Instance create <image_name>
Instance create redis-server

注意事项

⚠️ 重要提示

由于最初开发时未曾使用过 Claude 或 MCP,所以非常欢迎大家提出关于该项目如何更好运行的建议。

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