Cover image
Try Now
2025-02-18

通过chatgpt用于Docker Management的模型上下文协议服务器

3 years

Works with Finder

1

Github Watches

2

Github Forks

6

Github Stars

ChatGPT MCP Server

smithery badge

A Model Context Protocol (MCP) server that provides Docker management capabilities through a custom GPT interface.

Features

  • Docker container management through natural language
  • Built on the Model Context Protocol (MCP)
  • TypeScript implementation
  • Containerized deployment
  • Robust error handling and graceful shutdown
  • Resource management and port handling
  • Rate limiting and API key authentication

Setup

Installing via Smithery

To install ChatGPT MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @Toowiredd/chatgpt-mcp-server --client claude

Manual Installation

  1. Clone the repository
git clone https://github.com/toowiredd/chatgpt-mcp-server.git
cd chatgpt-mcp-server
  1. Install dependencies
npm install
  1. Create environment file
cp env.example .env
# Edit .env with your configuration
  1. Build the project
npm run build

Running with Docker

  1. Build the container
npm run docker:build
  1. Run the container
npm run docker:run

Or manually:

docker run -d \
  -p 3001:3001 \
  --env-file .env \
  -v /var/run/docker.sock:/var/run/docker.sock \
  chatgpt-mcp-server

Development

  • npm run build - Build the TypeScript code
  • npm run watch - Watch for changes and rebuild
  • npm run inspector - Run the MCP inspector tool

Environment Variables

  • API_KEY - API authentication key
  • HTTP_PORT - Server port (default: 3001)
  • RATE_LIMIT_REQUESTS - Maximum requests per window
  • RATE_LIMIT_WINDOW - Window size in milliseconds

Resource Management

The server implements robust resource management:

  • Graceful shutdown on process signals (SIGINT, SIGTERM, SIGQUIT)
  • Connection tracking and management
  • Request timeout handling
  • Port conflict detection
  • Keep-alive connection management
  • Active request tracking and graceful completion

Shutdown Process

  1. The server initiates graceful shutdown on process signals
  2. New connections are rejected
  3. Active requests are allowed to complete (with timeout)
  4. Keep-alive connections are closed
  5. Server ports are properly released
  6. Resources are properly released

Error Handling

  • Port conflicts are detected and reported
  • Unhandled rejections and exceptions are caught
  • Network errors are properly handled
  • Resource leaks are prevented through proper handling
  • Timeouts ensure the server doesn't hang during shutdown

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Khalid kalib
  • Write professional emails

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

    Reviews

    5 (1)
    Avatar
    user_xX7bkFFU
    2025-04-16

    The "chatgpt-mcp-server" by Toowiredd is a fantastic addition for MCP applications. Easy to set up with the provided URL, it offers seamless integration and robust performance. The welcome information ensures a smooth start, making it a must-have tool for efficient server management. Highly recommend checking it out at https://github.com/Toowiredd/chatgpt-mcp-server!