File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2323from apps .system .schemas .system_schema import UserInfoDTO
2424from common .core import security
2525from common .core .config import settings
26- from common .core .deps import SessionDep
26+ from common .core .deps import SessionDep , Trans
2727from common .core .schemas import TokenPayload , XOAuth2PasswordBearer , Token
2828from common .core .security import create_access_token
2929
@@ -99,9 +99,9 @@ async def mcp_start(session: SessionDep, chat: ChatStart):
9999
100100
101101@router .post ("/mcp_ws_list" , operation_id = "mcp_ws_list" )
102- async def ws_list (session : SessionDep , chat_mcp : ChatMcp ):
103- session_user = get_user (session , chat_mcp . token )
104- return user_ws_options (session , session_user .id )
102+ async def ws_list (session : SessionDep , trans : Trans , token : str ):
103+ session_user = get_user (session , token )
104+ return await user_ws_options (session , session_user .id , trans )
105105
106106
107107@router .post ("/mcp_ds_list" , operation_id = "mcp_datasource_list" )
You can’t perform that action at this time.
0 commit comments