AY

allaboutai-yt/gpt5mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

79 stars 24 forks Качество 48 Тренд 14

allaboutai-yt/gpt5mcp - кандидат на сервер MCP, импортированный из https://github.com/allaboutai-yt/gpt5mcp.

Обзор

allaboutai-yt/gpt5mcp - кандидат на сервер MCP, импортированный из https://github.com/allaboutai-yt/gpt5mcp.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), который обеспечивает бесшовную интеграцию с API GPT-5 OpenAI через Claude Code. Этот сервер позволяет использовать расширенные возможности GPT-5 непосредственно в рабочих процессах Claude Code.

Feature Особенности

Прямая интеграция GPT-5: Вызов API GPT-5 с простыми подсказками или структурированными разговорами Два мощных инструмента:

  • [[Т0]]: Простая генерация текста с подсказками
  • [[Т1]]: Структурированная обработка разговора с массивами сообщений Built for Claude Code: оптимизирован для бесшовной интеграции с IDE Claude Code от Anthropic ** Поддержка сценариев : Полностью набран для лучшего опыта разработки ** Обработка ошибок Надежная обработка ошибок с подробной обратной связью ** Отслеживание использования**: Встроенная отчетность об использовании токенов

Предпосылки

Node.js (v18 или выше) OpenAI API ключ с доступом GPT-5 Клод Код IDE

###Установка

###1.Клонировать репозиторий

###2 Установите зависимость

###3 Построить сервер

###4 Настройка переменных среды

Создайте файл .env в каталоге servers:

###Интеграция кода Клода

Добавить сервер в код Claude

###Проверка установки

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

GPT-5 MCP Server

A Model Context Protocol (MCP) server that provides seamless integration with OpenAI’s GPT-5 API through Claude Code. This server enables you to leverage GPT-5’s advanced capabilities directly within your Claude Code workflows.

🚀 Features

  • Direct GPT-5 Integration: Call GPT-5 API with simple prompts or structured conversations
  • Two Powerful Tools:
    • gpt5_generate: Simple text generation with prompts
    • gpt5_messages: Structured conversation handling with message arrays
  • Built for Claude Code: Optimized for seamless integration with Anthropic’s Claude Code IDE
  • TypeScript Support: Fully typed for better development experience
  • Error Handling: Robust error handling with detailed feedback
  • Usage Tracking: Built-in token usage reporting

📋 Prerequisites

  • Node.js (v18 or higher)
  • OpenAI API key with GPT-5 access
  • Claude Code IDE

🛠 Installation

1. Clone the Repository

git clone https://github.com/AllAboutAI-YT/gpt5mcp.git
cd gpt5mcp

2. Install Dependencies

cd servers/gpt5-server
npm install

3. Build the Server

npm run build

4. Configure Environment Variables

Create a .env file in the servers directory:

# servers/.env
OPENAI_API_KEY=your-openai-api-key-here

🔧 Claude Code Integration

Add the Server to Claude Code

claude mcp add gpt5-server -e OPENAI_API_KEY=your-openai-api-key-here -- node /path/to/gpt5mcp/servers/gpt5-server/build/index.js

Verify Installation

Test the server with a simple query:

Ask GPT-5: "Hello, how are you today?"

📚 Available Tools

gpt5_generate

Generate text using a simple input prompt.

Parameters:

  • input (required): The text prompt for GPT-5
  • model (optional): GPT-5 model variant (default: “gpt-5”)
  • instructions (optional): System instructions for the model
  • reasoning_effort (optional): Reasoning level (“low”, “medium”, “high”)
  • max_tokens (optional): Maximum tokens to generate
  • temperature (optional): Randomness level (0-2)
  • top_p (optional): Top-p sampling parameter (0-1)

gpt5_messages

Generate text using structured conversation messages.

Parameters:

  • messages (required): Array of conversation messages with role and content
  • model (optional): GPT-5 model variant (default: “gpt-5”)
  • instructions (optional): System instructions for the model
  • reasoning_effort (optional): Reasoning level (“low”, “medium”, “high”)
  • max_tokens (optional): Maximum tokens to generate
  • temperature (optional): Randomness level (0-2)
  • top_p (optional): Top-p sampling parameter (0-1)

Message Format:

{
  "messages": [
    {"role": "user", "content": "What is the capital of France?"},
    {"role": "assistant", "content": "The capital of France is Paris."},
    {"role": "user", "content": "What about Germany?"}
  ]
}

🎯 Usage Examples

Simple Text Generation

Открыть полный README на GitHub

Установка

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

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →