mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-04 07:27:51 +00:00
feat(mcp): read token_validation and token_storage_ttl_seconds in build_mcp_server_from_table
This commit is contained in:
parent
0740f782a2
commit
5147ef10ec
1 changed files with 7 additions and 0 deletions
|
|
@ -693,6 +693,13 @@ class MCPServerManager:
|
|||
aws_service_name=aws_creds.get("aws_service_name"),
|
||||
aws_role_name=aws_creds.get("aws_role_name"),
|
||||
aws_session_name=aws_creds.get("aws_session_name"),
|
||||
# OAuth token validation rules persisted in the DB
|
||||
token_validation=_deserialize_json_dict(
|
||||
getattr(mcp_server, "token_validation", None)
|
||||
),
|
||||
token_storage_ttl_seconds=getattr(
|
||||
mcp_server, "token_storage_ttl_seconds", None
|
||||
),
|
||||
)
|
||||
return new_server
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue