# mcptool **Repository Path**: LarkMidTable/mcptool ## Basic Information - **Project Name**: mcptool - **Description**: 大模型MCP协议的功能界面 - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-10-31 - **Last Updated**: 2025-11-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 前端部署 ## **1.1** next.js打包 pnpm build 打包得到.next文件包 ## **1.2** 安装nginx yum install nginx ## 1.3整理目录结构 新建临时文件目录 tmp/test,把.next/server/app/下的文件复制到tmp/test/下,再复制.next/下的文件到tmp/test/_next/下; 打包tmp文件并上传到目标服务器; 解压tmp文件到/etc/nginx/目录 ## **1.4** 新增nginx配置文件 \# 打开nginx配置目录 cd /etc/nginx/conf.d/ \# 创建nginx配置文件 touch next.conf next.conf新增如下配置: server { listen 8801; # 修改你的端口 \# 如果有域名,填写你的域名 server_name localhost; \# 处理所有请求 location / { ​ root /etc/nginx/tmp/test; # 此处对应上传的目标文件的目录 ​ index index.html index.htm; ​ try_files $uri $uri/ /index.html; } } ## 1.5加载nginx配置 nginx -s reload ## **1.6**访问目标地址 http://服务器IP:8801/index