Skip to content

Commit 7cc9718

Browse files
committed
Fix missing Mount import in MCP server launch
- Add missing 'from starlette.routing import Mount' import - Mount was used on line 1046 but not imported - Fixes NameError when launching agents in MCP mode 🤖 Generated with Claude Code Co-authored-by: MervinPraison <454862+MervinPraison@users.noreply.github.com>
1 parent ecfd858 commit 7cc9718

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/praisonai-agents/praisonaiagents/agent/execution_mixin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,7 @@ def _launch_mcp_server(self, path: str, port: int, host: str, debug: bool):
10141014
from mcp.server.fastmcp import FastMCP
10151015
from mcp.server.sse import SseServerTransport
10161016
from starlette.applications import Starlette
1017+
from starlette.routing import Mount
10171018
import threading
10181019
import time
10191020
import asyncio

0 commit comments

Comments
 (0)