Skip to content

Commit 1289001

Browse files
authored
Merge pull request #1735 from ModelEngine-Group/pyh/feat_runtime_isolation_develop
✨Agent runtime isolation Step1: Service decomposition based on Docker #606
2 parents 0ed42e6 + b89b9d5 commit 1289001

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

backend/config_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
configure_logging(logging.INFO)
1818
configure_elasticsearch_logging()
19-
logger = logging.getLogger("main_service")
19+
logger = logging.getLogger("config_service")
2020

2121

2222
async def startup_initialization():
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
configure_logging(logging.INFO)
13-
logger = logging.getLogger("nexent_mcp_service")
13+
logger = logging.getLogger("mcp_service")
1414

1515
# initialize main mcp service
1616
nexent_mcp = FastMCP(name="nexent_mcp")

doc/docs/en/backend/overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ backend/
6464
│ └── utils/ # Prompt utilities
6565
├── sql/ # SQL scripts
6666
├── assets/ # Backend resource files
67-
├── main_service.py # Main service entry point
67+
├── config_service.py # Config service entry point
68+
├── runtime_service.py # Runtime service entry point
6869
├── data_process_service.py # Data processing service entry point
6970
└── requirements.txt # Python dependencies
7071
```

doc/docs/en/backend/tools/mcp.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ graph TD
4848

4949
This system implements a **dual-service proxy architecture** consisting of two independent services:
5050

51-
### 1. Main Service (FastAPI) - Port 5010
51+
### 1. Main Service (FastAPI) - Port 5010 5014
5252
- **Purpose**: Provides web management interface and RESTful API, serving as the single entry point for frontend
5353
- **Features**: User-oriented management with authentication, multi-tenant support, and proxy calls to MCP service
54-
- **Startup File**: `main_service.py`
54+
- **Startup File**: `config_service.py, runtime_service.py`
5555

5656
### 2. MCP Service (FastMCP) - Port 5011
5757
- **Purpose**: Provides MCP protocol services and proxy management (internal service)
5858
- **Features**: MCP protocol standard, supports local services and remote proxies, primarily called by main service
59-
- **Startup File**: `nexent_mcp_service.py`
59+
- **Startup File**: `mcp_service.py`
6060

6161
**Important Note**: Frontend clients only directly access the main service (5010). All MCP-related operations are completed by the main service proxying calls to the MCP service (5011).
6262

@@ -190,12 +190,12 @@ curl -X POST http://localhost:5011/add-remote-proxies \
190190

191191
## Code Structure
192192

193-
### Main Service Components (main_service.py)
193+
### Main Service Components (config_service.py, runtime_service.py)
194194
- **FastAPI Application**: Provides Web API and management interface
195195
- **Multi-tenant Support**: Multi-tenant management based on authentication
196196
- **Router Management**: Contains routers for multiple functional modules
197197

198-
### MCP Service Components (nexent_mcp_service.py)
198+
### MCP Service Components (mcp_service.py)
199199

200200
#### RemoteProxyManager Class
201201
Responsible for managing the lifecycle of all remote proxies:

doc/docs/zh/backend/overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ backend/
6464
│ └── utils/ # 提示词工具
6565
├── sql/ # SQL脚本
6666
├── assets/ # 后端资源文件
67-
├── main_service.py # 主服务入口
67+
├── config_service.py # 编辑态服务入口
68+
├── runtime_service.py # 运行态服务入口
6869
├── data_process_service.py # 数据处理服务入口
6970
└── requirements.txt # Python依赖
7071
```

doc/docs/zh/backend/tools/mcp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
Nexent采用**本地MCP服务 + 直接远程连接**的架构,通过MCP(Model Context Protocol)协议实现本地服务与远程服务的统一管理。系统包含两个核心服务:
66

7-
### 1. 主服务 (FastAPI) - 端口 5010
7+
### 1. 主服务 (FastAPI) - 端口 5010 5014
88
- **用途**:提供Web管理界面和RESTful API,作为前端唯一入口
99
- **特点**:面向用户管理,包含认证、多租户支持,管理MCP服务器配置
10-
- **启动文件**`main_service.py`
10+
- **启动文件**`config_service.py, runtime_service.py`
1111

1212
### 2. 本地MCP服务 (FastMCP) - 端口 5011
1313
- **用途**:提供本地MCP协议服务,挂载本地工具
1414
- **特点**:MCP协议标准,仅提供本地服务,不代理远程服务
15-
- **启动文件**`nexent_mcp_service.py`
15+
- **启动文件**`mcp_service.py`
1616

1717
### 3. 远程MCP服务
1818
- **用途**:外部MCP服务,提供远程工具
@@ -54,7 +54,7 @@ graph TD
5454

5555
## 核心功能模块
5656

57-
### 1. 本地MCP服务管理 (nexent_mcp_service.py)
57+
### 1. 本地MCP服务管理 (mcp_service.py)
5858

5959
**本地MCP服务实现**
6060
```python

0 commit comments

Comments
 (0)