Skip to content

Commit d53ccb8

Browse files
committed
perf: update mcp run
1 parent 84ddf95 commit d53ccb8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

backend/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
print(f"BASE_DIR: {BASE_DIR}")
1313
load_dotenv(find_dotenv(str(BASE_DIR / ".env")))
1414

15-
mcp_app = mcp.http_app(transport="streamable-http", path="/mcp")
15+
mcp_app = mcp.http_app(transport="streamable-http", path="/")
1616

1717

1818
@asynccontextmanager
@@ -47,7 +47,7 @@ async def merged_lifespan(app: FastAPI):
4747
# Mount sub-applications
4848
# This preserves each app's state, so request.app.state.config works correctly
4949
# When a request comes to open_webui_app, request.app will point to open_webui_app
50-
app.mount("/kael", mcp_app)
50+
app.mount("/kael/mcp", mcp_app)
5151
app.mount("/", open_webui_app)
5252

5353
# Add CORS middleware

backend/open_webui/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ def feishu_oauth_register(oauth: OAuth):
10911091

10921092
INTERNAL_TOOL_SERVER_CONNECTIONS = [
10931093
{
1094-
"url": "http://localhost:8000/mcp",
1094+
"url": "http://localhost:8083/kael/mcp",
10951095
"path": "openapi.json",
10961096
"type": "mcp",
10971097
"auth_type": "session",

0 commit comments

Comments
 (0)