OpenAI MCP

MIT License

OpenAI MCP - Roo 代码的 DALL-E API 集成

该项目提供了一个模型上下文协议 (MCP) 服务器,用于连接 OpenAI 的 DALL-E API 进行图像生成,并全面支持所有可用选项。它专为与 Roo Code 和其他兼容 MCP 的 AI 助手配合使用而设计。

概述

该 MCP 服务器提供 DALL-E 图像生成工具,全面支持所有 DALL-E API 选项。它允许像 Roo Code 这样的 AI 助手通过模型上下文协议 (MCP) 生成图像,并对生成过程进行细粒度控制。

项目结构

  • src/ - MCP 服务器的源代码
    • dalle.ts - 实现 DALL-E API 与所有选项的集成
    • index.ts - 包含 DALL-E 工具和输入模式的主服务器文件
    • install.ts - Roo Code 和 Claude Desktop 的安装脚本
  • build/ ——编译的 JavaScript 文件
  • dalle-test.html - HTML 页面,用于显示生成的图像和文档可用选项
  • test-dalle.js - DALL-E API 的直接测试脚本,包含不同选项的示例

Roo 代码设置说明

安装

  1. 全局安装包:
    npm install -g openai-mcp
  2. 运行setup命令来配置Roo代码:
    openai-mcp install
  3. 在 Roo Code 设置中设置您的 OpenAI API 密钥:
    • 打开Roo代码
    • 前往“设置”
    • 将以下环境变量添加到 MCP 服务器配置中:
      "openai-mcp": { "env": { "OPENAI_API_KEY": "your-openai-api-key" } }
  4. 重新启动 Roo 代码
-
security - not tested
-
license - not tested
-
quality - not tested

模型上下文协议服务器使 AI 助手能够通过 OpenAI 的 DALL-E API 生成图像,并全面支持所有可用选项和细粒度控制。

  1. 概述
    1. 项目结构
      1. Roo 代码设置说明
        1. 安装

      Related MCP Servers

      • A
        security
        F
        license
        A
        quality
        A Model Context Protocol server that provides image generation capabilities using the Ideogram API, allowing users to create images from text prompts with customizable parameters.
        Last updated 4 months ago
        1
        1
        3
        JavaScript
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that enables high-quality image generation using the Flux.1 Schnell model via Together AI with customizable parameters.
        Last updated 2 months ago
        1
        13
        5
        JavaScript
        MIT License
      • -
        security
        F
        license
        -
        quality
        An MCP server that allows users to generate, edit, and create variations of images through OpenAI's DALL-E API, supporting both DALL-E 2 and DALL-E 3 models.
        Last updated 2 months ago
        2
        TypeScript
      • A
        security
        F
        license
        A
        quality
        A Model Context Protocol server that enables Claude to generate and upscale images through the Letz AI API, allowing users to create images directly within Claude conversations.
        Last updated a month ago
        2
        1
        JavaScript
        • Linux
        • Apple

      View all related MCP servers

      Appeared in Searches

      ID: 0n9j2dlfym