Removed the custom toggle button and added MCPServersList to the main Settings

This commit is contained in:
Joaquin Coromina
2025-05-16 23:28:06 -04:00
parent ddecda0f9e
commit 4abf09edf1
2 changed files with 3 additions and 4 deletions
@@ -1,4 +1,4 @@
import { VoidSwitch, VoidToggleBgDarken } from '../util/inputs.js';
import { VoidSwitch } from '../util/inputs.js';
import { MCPServerObject, MCPServers } from '../../../../common/mcpServiceTypes.js';
import { use, useEffect, useState } from 'react';
import { useAccessor } from '../util/services.js';
@@ -19,6 +19,7 @@ import { ToolApprovalType, toolApprovalTypes } from '../../../../common/toolsSer
import Severity from '../../../../../../../base/common/severity.js'
import { getModelCapabilities, modelOverrideKeys, ModelOverrides } from '../../../../common/modelCapabilities.js';
import { TransferEditorType, TransferFilesInfo } from '../../../extensionTransferTypes.js';
import MCPServersList from './MCPServersList.js';
const ButtonLeftTextRightOption = ({ text, leftButton }: { text: string, leftButton?: React.ReactNode }) => {
@@ -1259,9 +1260,7 @@ Edit your MCP configuration file to add or modify server connections.
`} chatMessageLocation={undefined} />
</h4>
<ErrorBoundary>
<div>
{/* TODO: Add MCP server list with a live button */}
</div>
<MCPServersList />
</ErrorBoundary>
</div>
</div>