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
+19
-19
@@ -1,12 +1,12 @@
|
||||
# WeKnora MCP Server
|
||||
# Academy MCP Server
|
||||
|
||||
> **⚠️ 已弃用(Deprecated)**
|
||||
>
|
||||
> WeKnora 现已内置 MCP Server:在「设置 → 发布与集成 → MCP Server」中为空间创建端点即可,支持多个端点、按端点选择知识库范围和工具,客户端通过 Streamable HTTP 直接连接 `/mcp/<endpoint_id>`,无需再部署本目录的 Python 进程。本目录仅为兼容旧部署保留,后续版本将移除。
|
||||
> Academy 现已内置 MCP Server:在「设置 → 发布与集成 → MCP Server」中为空间创建端点即可,支持多个端点、按端点选择知识库范围和工具,客户端通过 Streamable HTTP 直接连接 `/mcp/<endpoint_id>`,无需再部署本目录的 Python 进程。本目录仅为兼容旧部署保留,后续版本将移除。
|
||||
>
|
||||
> WeKnora now ships a built-in MCP server: create endpoints under "Settings → Publish & Integrations → MCP Server", each with its own token, knowledge-base scope and tool list, and connect clients to `/mcp/<endpoint_id>` over Streamable HTTP. This Python package is kept only for existing deployments and will be removed in a future release.
|
||||
> Academy now ships a built-in MCP server: create endpoints under "Settings → Publish & Integrations → MCP Server", each with its own token, knowledge-base scope and tool list, and connect clients to `/mcp/<endpoint_id>` over Streamable HTTP. This Python package is kept only for existing deployments and will be removed in a future release.
|
||||
|
||||
这是一个 Model Context Protocol (MCP) 服务器,提供对 WeKnora 知识管理 API 的访问。
|
||||
这是一个 Model Context Protocol (MCP) 服务器,提供对 Academy 知识管理 API 的访问。
|
||||
|
||||
## 快速开始
|
||||
|
||||
@@ -20,16 +20,16 @@ pip install -r requirements.txt
|
||||
### 2. 配置环境变量
|
||||
```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
|
||||
```
|
||||
|
||||
### 3. 运行服务器
|
||||
@@ -48,10 +48,10 @@ python run_server.py
|
||||
python run.py
|
||||
|
||||
# 直接运行服务器模块
|
||||
python weknora_mcp_server.py
|
||||
python academy_mcp_server.py
|
||||
|
||||
# 作为 Python 模块运行
|
||||
python -m weknora_mcp_server
|
||||
python -m academy_mcp_server
|
||||
```
|
||||
|
||||
### 4. 命令行选项
|
||||
@@ -67,14 +67,14 @@ python main.py --version # 显示版本信息
|
||||
### 从 PyPI 安装
|
||||
|
||||
```bash
|
||||
pip install tencent-weknora-mcp
|
||||
pip install tencent-academy-mcp
|
||||
# 或使用 uvx 直接运行(无需预安装)
|
||||
uvx --from tencent-weknora-mcp weknora-mcp-server
|
||||
uvx --from tencent-academy-mcp academy-mcp-server
|
||||
```
|
||||
|
||||
> 官方 PyPI 包名为 **`tencent-weknora-mcp`**(Tencent/WeKnora 维护,Trusted Publishing 发布)。
|
||||
> 旧社区包 `weknora-mcp` 请不要再使用。
|
||||
> 安装后命令行入口仍为 `weknora-mcp-server` / `weknora-server`。
|
||||
> 官方 PyPI 包名为 **`tencent-academy-mcp`**(Tencent/WeKnora 维护,Trusted Publishing 发布)。
|
||||
> 旧社区包 `academy-mcp` 请不要再使用。
|
||||
> 安装后命令行入口仍为 `academy-mcp-server` / `academy-server`。
|
||||
|
||||
### 开发模式安装
|
||||
```bash
|
||||
@@ -83,9 +83,9 @@ pip install -e .
|
||||
|
||||
安装后可以使用命令行工具:
|
||||
```bash
|
||||
weknora-mcp-server
|
||||
academy-mcp-server
|
||||
# 或
|
||||
weknora-server
|
||||
academy-server
|
||||
```
|
||||
|
||||
### 生产模式安装
|
||||
|
||||
Reference in new issue
Block a user