R1

ruibaby/1panel-mcp

Deployment & DevOps

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

36 stars 4 forks 품질 56 트렌드 12MIT

자동화된 웹 사이트 배포를 위한 MCP 서버 1Panel (Experimental)

개요

A Model Context Protocol (MCP) 서버는 자동화된 웹 사이트 배포를 1Panel. 현재이 프로젝트는 실험 프로젝트이며 직접 사용할 수 없다는 것을 의미하지 않습니다. https://www.bilibili.com/video/BV1SjQRY3EmM/] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0] [T0] [T0]] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0]] https://www.bilibili.com/video/BV1SjQRY3EmM/] https://www.bilibili.com/video/BV1SjQRY3EmM/]]] https://www.bilibili.com/video/BV1SjQRY3EmM/]]]]]] [[https://www.bilibili.com/video/BV1SjQRY3EmM/]]]]]]] [[[[[[https://www.bilibili.com/video/BV1SjQRY3EmM/]]]]]]]]]]]]]] [[[[[[[https://www.bilibili.com/video/BV1SjQRY3EmM/]]]]]]]]]]]]]]]]]] [[[[[[[[[[[[[[[[[[[[[[ - Automates 웹 사이트 배포 1Panel 서버 - 이미 존재하지 않는 경우 웹 사이트 만들기 - 1Panel에 정적 웹 사이트 파일을 업로드 - MCP 표준 프로토콜과 완벽하게 호환 Cursor IDE를 사용하여이 서버를 사용하려면 다음 MCP 구성을 추가하십시오. 1. 오픈 커서 2. .cursor/mcp.json 만들기 Cursor에서 다음 명령을 사용하여 웹 사이트를 배포 할 수 있습니다. AI 채팅: - 도메인 (필수): 웹사이트 도메인 - buildDir (선택 사항): 디렉토리 경로

개요(AI 번역)

A Model Context Protocol (MCP) 서버는 자동화된 웹 사이트 배포를 1Panel.

[! 중요] 현재이 프로젝트는 실험적인 프로젝트이며 직접 사용할 수 없다는 것을 의미하지 않습니다.

비디오 데모

특징

  • Automates 웹 사이트 배포 1Panel 서버
  • 이미 존재하지 않는 경우 웹 사이트 만들기
  • 1Panel에 정적 웹 사이트 파일을 업로드
  • MCP 표준 프로토콜과 완벽하게 호환

사용법

# Cursor IDE에서 MCP 구성

Cursor IDE를 사용하여이 서버를 사용하려면 다음 MCP 구성을 추가하십시오.

  1. 오픈 커서
  2. .cursor/mcp.json 만들기

# MCP를 사용하여 웹 사이트 배포

Cursor에서 다음 명령을 사용하여 웹 사이트를 배포 할 수 있습니다. AI 채팅:

또는 다음 형식을 사용할 수 있습니다:

API 참조

MCP 도구: deploy website

웹 사이트를 1Panel로 배포합니다.

** 모수: **

  • domain (필수): 웹사이트 도메인
  • (선택) [T2]]: 디렉토리 경로

책임:

구현 세부 사항

# 배포 프로세스

1.Check Build Directory: 지정된 빌드 디렉토리가 존재하는 경우 확인 2.Website Creation: 존재하지 않는 경우 1Panel API를 통해 새로운 정적 웹 사이트를 만듭니다. 3. 명세.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

1Panel MCP Server

A Model Context Protocol (MCP) server for automated website deployment to 1Panel.

[!IMPORTANT] Currently, this project is an experimental project and does not mean that it can be used directly.

Video demo

Features

  • Automates website deployment to 1Panel servers
  • Creates websites if they don’t already exist
  • Uploads static website files to 1Panel
  • Fully compatible with the MCP standard protocol

Usage

Configure MCP in Cursor IDE

To use this server with Cursor IDE, add the following MCP configuration:

  1. Open Cursor
  2. Create .cursor/mcp.json
{
  "mcpServers": {
    "1panel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "1panel-mcp"
      ],
      "env": {
        "ONEPANEL_BASE_URL": "",
        "ONEPANEL_API_KEY": "",
        "ONEPANEL_API_VERSION": "v2" // optional, default is v2
      }
    }
  }
}

Use MCP to Deploy Websites

In Cursor, you can deploy websites using the following command in the AI chat:

Deploy to 1Panel with domain=yourdomain.com

Or you can use the following format:

Deploy website to 1Panel server, domain: yourdomain.com

API Reference

MCP Tool: deploy_website

Deploys a website to 1Panel.

Parameters:

  • domain (required): Website domain
  • buildDir (optional): Build directory path

Response:

Successfully deployed to 1Panel!
Domain: yourdomain.com
URL: http://yourdomain.com
Upload statistics:
- Total files: 25
- Successfully uploaded: 25
- Failed to upload: 0

Implementation Details

Deployment Process

  1. Check Build Directory: Verifies if the specified build directory exists
  2. Website Creation: Creates a new static website through 1Panel API if it doesn’t exist
  3. File Upload: Uploads all files from the build directory to the website
  4. Statistics: Returns detailed statistics about the upload process

Troubleshooting

If you encounter deployment issues, check the following:

  1. Ensure your API Key is valid and has sufficient permissions
  2. Verify that the website directory exists and has write permissions
  3. Check the 1Panel server logs for more detailed error information
  4. If file uploads fail, it may be due to file permission or format issues
GitHub에서 전체 README 보기

설치

npx -y 1panel-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "1panel-mcp": { "command": "npx", "args": [ "-y", "1panel-mcp" ], "env": { "ONEPANEL_BASE_URL": "<your 1Panel base URL>", "ONEPANEL_API_KEY": "<your 1Panel API key>", "ONEPANEL_API_VERSION": "v2" // optional, default is v2 } } } }