mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-23 00:41:40 +00:00
support spec_path in connection status component
This commit is contained in:
parent
2b698e2a97
commit
664a080ae6
1 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ const MCPConnectionStatus: React.FC<MCPConnectionStatusProps> = ({ accessToken,
|
|||
}, [tools, onToolsLoaded]);
|
||||
|
||||
// Don't show anything if required fields aren't filled
|
||||
if (!canFetchTools && !formValues.url) {
|
||||
if (!canFetchTools && !formValues.url && !formValues.spec_path) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ const MCPConnectionStatus: React.FC<MCPConnectionStatusProps> = ({ accessToken,
|
|||
<Title>Connection Status</Title>
|
||||
</div>
|
||||
|
||||
{!canFetchTools && formValues.url && (
|
||||
{!canFetchTools && (formValues.url || formValues.spec_path) && (
|
||||
<div className="text-center py-6 text-gray-400 border rounded-lg border-dashed">
|
||||
<ToolOutlined className="text-2xl mb-2" />
|
||||
<Text>Complete required fields to test connection</Text>
|
||||
|
|
@ -60,7 +60,7 @@ const MCPConnectionStatus: React.FC<MCPConnectionStatusProps> = ({ accessToken,
|
|||
: "Ready to test connection"}
|
||||
</Text>
|
||||
<br />
|
||||
<Text className="text-gray-500 text-sm">Server: {formValues.url}</Text>
|
||||
<Text className="text-gray-500 text-sm">Server: {formValues.url || formValues.spec_path}</Text>
|
||||
</div>
|
||||
|
||||
{isLoadingTools && (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue