Firefly

Official

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Required runtime environment for the MCP server

  • Enables converting discovered cloud resources into Terraform infrastructure as code

  • The programming language used to build the MCP server

Firefly MCP 服务器

Firefly MCP(模型上下文协议)服务器是一个基于 TypeScript 的服务器,可与 Firefly 平台无缝集成。它允许您跨连接到 Firefly 的云和 SaaS 帐户发现、管理和编码资源。

特征

  • 🔍 资源发现:查找您的云和 SaaS 帐户中的任何资源
  • 📝 资源编码:将已发现的资源转换为基础设施即代码
  • 🔐 安全认证:使用 FIREFLY_ACCESS_KEY 和 FIREFLY_SECRET_KEY 进行安全通信
  • 🚀 轻松集成:与 Claude 和 Cursor 无缝协作

先决条件

  • Node.js(v14 或更高版本)
  • npm 或 yarn
  • 带有生成访问密钥的 Firefly 帐户

安装

您可以使用 NPX 直接运行 Firefly MCP 服务器:

npx @fireflyai/firefly-mcp

环境变量

您可以通过两种方式提供 Firefly 凭证:

  1. 使用环境变量:
FIREFLY_ACCESS_KEY=your_access_key FIREFLY_SECRET_KEY=your_secret_key npx @fireflyai/firefly-mcp
  1. 使用参数:
npx @fireflyai/firefly-mcp --access-key your_access_key --secret-key your_secret_key

用法

标准输入输出系统

使用以下内容更新mcp.json文件:

{ "mcpServers": { "firefly": { "command": "npx", "args": ["-y", "@fireflyai/firefly-mcp"], "env": { "FIREFLY_ACCESS_KEY": "your_access_key", "FIREFLY_SECRET_KEY": "your_secret_key" } } } }

使用上述方法之一通过以下命令运行 MCP 服务器:

npx @fireflyai/firefly-mcp --sse --port 6001

使用以下内容更新mcp.json文件:

{ "mcpServers": { "firefly": { "url": "http://localhost:6001/sse" } } }

与游标一起使用

  1. 使用上述方法之一启动 MCP 服务器
  2. 使用 Cursor 扩展连接到 MCP 服务器 - 请参阅Cursor Model Context Protocol 文档
  3. 使用自然语言查询您的资源

例子:

迅速的
Find all "ubuntu-prod" EC2 instance in 123456789012 AWS account and codify it into Terraform
回复
resource "aws_instance" "ubuntu-prod" { ami = "ami-0c55b159cbfafe1f0" instance_type = "t3.micro" }

演示

https://github.com/user-attachments/assets/0986dff5-d433-4d82-9564-876b8215b61e

贡献

  1. 分叉存储库
  2. 创建你的功能分支( git checkout -b feature/amazing-feature
  3. 提交您的更改( git commit -m 'feat: Add amazing feature'
  4. 推送到分支( git push origin feature/amazing-feature
  5. 打开拉取请求

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。

支持

如需支持,请访问Firefly 的文档或在此存储库中创建问题。

-
security - not tested
A
license - permissive license
-
quality - not tested

Firefly.ai MCP 服务器是一个基于 TypeScript 的服务器,可与 Firefly 平台无缝集成。它允许您跨连接到 Firefly 的云和 SaaS 帐户发现、管理和编码资源。

  1. Features
    1. Prerequisites
      1. Installation
        1. Environment Variables
      2. Usage
        1. Stdio
        2. Using with Cursor
      3. Demo
        1. Contributing
          1. License
            1. Support
              ID: c9jdt1gcqg