Update ui/litellm-dashboard/src/components/mcp_tools/mcp_server_view.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
tin-berri 2026-06-15 16:20:50 -07:00 committed by GitHub
parent 6f0f895b5b
commit 6b143f424d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,7 +72,7 @@ export const MCPServerView: React.FC<MCPServerViewProps> = ({
const { maskedUrl, hasToken } = urlValue ? getMaskedAndFullUrl(urlValue) : { maskedUrl: "—", hasToken: false };
const coworkServerIdentifier = mcpServer.alias || mcpServer.server_name || mcpServer.server_id;
const coworkUrl = `${getProxyBaseUrl()}/${coworkServerIdentifier}/mcp`;
const coworkUrl = `${getProxyBaseUrl()}/${encodeURIComponent(coworkServerIdentifier ?? "")}/mcp`;
const isUpstreamDelegated = mcpServer.delegate_auth_to_upstream === true;
const renderUrlWithToggle = (url: string | null | undefined, showFull: boolean) => {