mirror of
https://github.com/agentuniverse-ai/agentUniverse.git
synced 2026-02-09 01:59:19 +08:00
25 lines
564 B
Python
25 lines
564 B
Python
# !/usr/bin/env python3
|
|
# -*- coding:utf-8 -*-
|
|
|
|
# @Time : 2024/4/8 20:58
|
|
# @Author : jerry.zzw
|
|
# @Email : jerry.zzw@antgroup.com
|
|
# @FileName: server_application.py
|
|
from agentuniverse.agent_serve.web.mcp.mcp_server_manager import MCPServerManager
|
|
from agentuniverse.base.agentuniverse import AgentUniverse
|
|
|
|
|
|
class ServerApplication:
|
|
"""
|
|
Server application.
|
|
"""
|
|
|
|
@classmethod
|
|
def start(cls):
|
|
AgentUniverse().start(core_mode=True)
|
|
MCPServerManager().start_server()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
ServerApplication.start()
|