mirror of
https://github.com/hanzoai/code.git
synced 2026-09-30 20:53:35 +00:00
Removed the custom toggle button and added MCPServersList to the main Settings
This commit is contained in:
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user