refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名) - 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块) - docreader proto 描述符采用等长替换,保持序列化字节布局有效 - Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像 - 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# WeKnora MCP Server 可运行模组包 - 项目总结
|
||||
# Academy MCP Server 可运行模组包 - 项目总结
|
||||
|
||||
## 🎉 项目完成状态
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
## 📁 项目结构
|
||||
|
||||
```
|
||||
WeKnora/mcp-server/
|
||||
Academy/mcp-server/
|
||||
├── 📦 核心文件
|
||||
│ ├── __init__.py # 包初始化文件
|
||||
│ ├── weknora_mcp_server.py # MCP 服务器核心实现
|
||||
│ ├── academy_mcp_server.py # MCP 服务器核心实现
|
||||
│ └── requirements.txt # 项目依赖
|
||||
│
|
||||
├── 🚀 启动脚本 (多种方式)
|
||||
@@ -63,25 +63,25 @@ python run.py
|
||||
|
||||
### 4. 直接运行服务器
|
||||
```bash
|
||||
python weknora_mcp_server.py
|
||||
python academy_mcp_server.py
|
||||
```
|
||||
|
||||
### 5. 作为模块运行
|
||||
```bash
|
||||
python -m weknora_mcp_server
|
||||
python -m academy_mcp_server
|
||||
```
|
||||
|
||||
### 6. 安装后命令行工具
|
||||
```bash
|
||||
pip install -e . # 开发模式安装
|
||||
weknora-mcp-server # 主命令
|
||||
weknora-server # 别名命令
|
||||
academy-mcp-server # 主命令
|
||||
academy-server # 别名命令
|
||||
```
|
||||
|
||||
### 7. 生产环境安装
|
||||
```bash
|
||||
pip install . # 生产安装
|
||||
weknora-mcp-server # 全局命令
|
||||
academy-mcp-server # 全局命令
|
||||
```
|
||||
|
||||
## 🔧 环境配置
|
||||
@@ -89,16 +89,16 @@ weknora-mcp-server # 全局命令
|
||||
### 必需环境变量
|
||||
```bash
|
||||
# Linux/macOS
|
||||
export WEKNORA_BASE_URL="http://localhost:8080/api/v1"
|
||||
export WEKNORA_API_KEY="your_api_key_here"
|
||||
export ACADEMY_BASE_URL="http://localhost:8080/api/v1"
|
||||
export ACADEMY_API_KEY="your_api_key_here"
|
||||
|
||||
# Windows PowerShell
|
||||
$env:WEKNORA_BASE_URL="http://localhost:8080/api/v1"
|
||||
$env:WEKNORA_API_KEY="your_api_key_here"
|
||||
$env:ACADEMY_BASE_URL="http://localhost:8080/api/v1"
|
||||
$env:ACADEMY_API_KEY="your_api_key_here"
|
||||
|
||||
# Windows CMD
|
||||
set WEKNORA_BASE_URL=http://localhost:8080/api/v1
|
||||
set WEKNORA_API_KEY=your_api_key_here
|
||||
set ACADEMY_BASE_URL=http://localhost:8080/api/v1
|
||||
set ACADEMY_API_KEY=your_api_key_here
|
||||
```
|
||||
|
||||
## 🛠️ 功能特性
|
||||
@@ -130,8 +130,8 @@ set WEKNORA_API_KEY=your_api_key_here
|
||||
pip install -r requirements.txt
|
||||
|
||||
# 2. 设置环境变量
|
||||
export WEKNORA_BASE_URL="http://localhost:8080/api/v1"
|
||||
export WEKNORA_API_KEY="your_api_key"
|
||||
export ACADEMY_BASE_URL="http://localhost:8080/api/v1"
|
||||
export ACADEMY_API_KEY="your_api_key"
|
||||
|
||||
# 3. 启动服务器
|
||||
python main.py
|
||||
@@ -140,13 +140,13 @@ python main.py
|
||||
### 开发模式安装
|
||||
```bash
|
||||
pip install -e .
|
||||
weknora-mcp-server
|
||||
academy-mcp-server
|
||||
```
|
||||
|
||||
### 生产模式安装
|
||||
```bash
|
||||
pip install .
|
||||
weknora-mcp-server
|
||||
academy-mcp-server
|
||||
```
|
||||
|
||||
### 构建分发包
|
||||
@@ -168,7 +168,7 @@ python test_module.py
|
||||
|
||||
### 测试结果
|
||||
```
|
||||
WeKnora MCP Server 模组测试
|
||||
Academy MCP Server 模组测试
|
||||
==================================================
|
||||
✓ 模块导入测试通过
|
||||
✓ 环境配置测试通过
|
||||
@@ -215,7 +215,7 @@ python main.py --verbose
|
||||
### 2. 生产环境
|
||||
```bash
|
||||
pip install .
|
||||
weknora-mcp-server
|
||||
academy-mcp-server
|
||||
```
|
||||
|
||||
### 3. Docker 部署
|
||||
@@ -224,25 +224,25 @@ FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN pip install .
|
||||
CMD ["weknora-mcp-server"]
|
||||
CMD ["academy-mcp-server"]
|
||||
```
|
||||
|
||||
### 4. 系统服务
|
||||
```ini
|
||||
[Unit]
|
||||
Description=WeKnora MCP Server
|
||||
Description=Academy MCP Server
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/weknora-mcp-server
|
||||
Environment=WEKNORA_BASE_URL=http://localhost:8080/api/v1
|
||||
ExecStart=/usr/local/bin/academy-mcp-server
|
||||
Environment=ACADEMY_BASE_URL=http://localhost:8080/api/v1
|
||||
```
|
||||
|
||||
## 🔧 故障排除
|
||||
|
||||
### 常见问题
|
||||
1. **导入错误**: 运行 `pip install -r requirements.txt`
|
||||
2. **连接错误**: 检查 `WEKNORA_BASE_URL` 设置
|
||||
3. **认证错误**: 验证 `WEKNORA_API_KEY` 配置
|
||||
2. **连接错误**: 检查 `ACADEMY_BASE_URL` 设置
|
||||
3. **认证错误**: 验证 `ACADEMY_API_KEY` 配置
|
||||
4. **环境检查**: 运行 `python main.py --check-only`
|
||||
|
||||
### 调试模式
|
||||
@@ -273,6 +273,6 @@ python test_module.py # 运行测试
|
||||
|
||||
**项目状态**: ✅ 完成并可投入使用
|
||||
**项目仓库**: https://github.com/Tencent/WeKnora/tree/main/mcp-server
|
||||
**PyPI 包名**: `tencent-weknora-mcp`
|
||||
**PyPI 包名**: `tencent-academy-mcp`
|
||||
**最后更新**: 2025年10月
|
||||
**版本**: 1.0.0
|
||||
Reference in new issue
Block a user