SF

superfly/flymcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

34 stars 4 forks 质量 41 趋势 12

用于与 Claude Desktop 集成 CLI Fly.io MCP 服务器

概览

一个简单的MCP服务器,将flyctl CLI包裹起来,为Claude Desktop提供 Fly.io 功能。 - Go 1.21或更高版本 - flyctl CLI 已安装并在 PATH 中使用 - 安装了 Claude 桌面 1. 打开 Claude 桌面 2.进入 Claude 菜单,选择“设置......”3. 点击左侧栏中的“开发者” 4.点击“编辑配置” 这将创建一个或打开配置文件:- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json- Windows: %APPDATA%\Claude\claude_desktop_config.json 5. 向文件添加以下配置: 确保将 /full/path/to/your/flymcp 替换为通往你 flymcp 二进制的绝对路径。 6. 保存文件并重启 Claude Desktop 在使用这些工具之前,请确保你已通过 Fly.io 认证:

概述(AI 翻译)

一个简单的MCP服务器,包裹flyctl的CLI为Claude Desktop提供 Fly.io 功能。

先修条件

  • 1.21或更高版本
  • flyctl 已安装并可在PATH中使用的CLI。
  • 已安装 Claude Desktop

安装

配置

Claude桌面设置

  1. 打开 Claude 桌面
  2. 进入Claude菜单,选择“设置…”
  3. 点击左侧栏中的“开发者”
  4. 点击“编辑配置”

这将创建一个或打开一个配置文件:

  • macOS:~/Library/Application Support/Claude/claude_desktop_config.json
  • 窗口:%APPDATA%\Claude\claude_desktop_config.json
  1. 向文件添加以下配置:

确保将/full/path/to/your/flymcp替换为通往你flymcp二进制的绝对路径。

  1. 保存文件并重启 Claude Desktop

认证

在使用这些工具之前,请确保你已通过 Fly.io 认证:

故障排除

如果你遇到MCP服务器的问题:

  1. 检查日志:
  • macOS:~/Library/Logs/Claude/mcp-server-flymcp.log
  • 窗口:%APPDATA%\Claude\logs\mcp-server-flymcp.log
  1. 确保通往 flymcp 二进制的路径是正确且绝对的

本页由 AI 翻译,技术细节请以原文为准。

README

FlyMCP

A simple MCP server that wraps the flyctl CLI to provide Fly.io capabilities to Claude Desktop.

Prerequisites

  • Go 1.21 or later
  • flyctl CLI installed and available in PATH
  • Claude Desktop installed

Installation

# Clone the repository
git clone https://github.com/superfly/flymcp.git
cd flymcp

# Install dependencies
go mod download

# Build the binary
go build -o flymcp

Configuration

Claude Desktop Setup

  1. Open Claude Desktop
  2. Go to the Claude menu and select “Settings…”
  3. Click on “Developer” in the left-hand bar
  4. Click on “Edit Config”

This will create or open a configuration file at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  1. Add the following configuration to the file:
{
  "mcpServers": {
    "flymcp": {
      "command": "/full/path/to/your/flymcp",
      "args": []
    }
  }
}

Make sure to replace /full/path/to/your/flymcp with the absolute path to your flymcp binary.

  1. Save the file and restart Claude Desktop

Authentication

Before using the tools, make sure you’re authenticated with Fly.io:

flyctl auth login

Troubleshooting

If you encounter issues with the MCP server:

  1. Check the logs in:

    • macOS: ~/Library/Logs/Claude/mcp-server-flymcp.log
    • Windows: %APPDATA%\Claude\logs\mcp-server-flymcp.log
  2. Make sure the path to the flymcp binary is correct and absolute

  3. Ensure you have the necessary permissions to execute the binary

  4. Verify that flyctl is installed and accessible in your PATH

Development

The server is built using the MCP Go library and communicates with Claude Desktop through standard input/output streams.

License

MIT

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "flymcp": { "command": "/full/path/to/your/flymcp", "args": [] } } }