cf6a768f6b
- Removed prueba_cliente_mcp.py as it was no longer needed. - Updated prueba_loop_agente.py to integrate MCPServerRunner for managing server instances. - Modified prueba_mcp.py to implement a new structure for starting and stopping MCP servers. - Enhanced AgenteAI class to support multiple MCP blocks execution. - Improved MCPClient with timeout handling for tool calls. - Added new sandbox files for children's stories. - Created a simple ERP system with a main entry point. - Added unit tests for the ERP system. - Implemented MCPServerRunner to manage server processes. - Developed server_files.py to handle file operations securely within a sandbox environment. - Introduced ElementoWeb and Navegador classes for web scraping functionalities. - Enhanced Scrapper and Tab classes for better interaction with web pages.
30 lines
747 B
Python
30 lines
747 B
Python
import asyncio
|
|
from src.Llms.MCPs.McpServer import MCPServerRunner
|
|
|
|
async def main():
|
|
venv_python = r"E:\Fitz_Studio\.venv\Scripts\python.exe"
|
|
|
|
runner_math = MCPServerRunner(
|
|
r"E:\Fitz_Studio\src\Llms\MCPs\McpServers\server_math.py",
|
|
python_path=venv_python
|
|
)
|
|
runner_tools = MCPServerRunner(
|
|
r"E:\Fitz_Studio\src\Llms\MCPs\McpServers\server_utils.py",
|
|
python_path=venv_python
|
|
)
|
|
|
|
await runner_math.start()
|
|
await runner_tools.start()
|
|
|
|
try:
|
|
while True:
|
|
await asyncio.sleep(1)
|
|
except KeyboardInterrupt:
|
|
print("\n⛔ Terminando servidores...")
|
|
|
|
await runner_math.stop()
|
|
await runner_tools.stop()
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|