Skip to content

Commit 309e60f

Browse files
committed
perf: mcp client add sessionid
1 parent 3b57c8b commit 309e60f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

backend/open_webui/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def feishu_oauth_register(oauth: OAuth):
11031103
"spec_type": "url",
11041104
"spec": "",
11051105
"info": {
1106-
"id": "server-l0vE",
1106+
"id": "jms-mcp",
11071107
"name": "jms-mcp",
11081108
"description": "JumpServer MCP Server"
11091109
}

backend/open_webui/routers/configs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ async def verify_tool_servers_config(
268268
if form_data.auth_type == "bearer":
269269
token = form_data.key
270270
elif form_data.auth_type == "session":
271-
token = request.state.token.credentials
271+
token = request.cookies.get("jms_sessionid", '')
272+
if token:
273+
token = f'jms-{token}'
274+
# token = request.state.token.credentials
272275
elif form_data.auth_type == "system_oauth":
273276
try:
274277
if request.cookies.get("oauth_session_id", None):

0 commit comments

Comments
 (0)