@@ -23,7 +23,8 @@ import type {
2323 SettingsSectionEntry ,
2424 SettingsSection
2525} from '$lib/types' ;
26- import { CLI_FLAGS } from '$lib/constants' ;
26+ import { CLI_FLAGS , DEFAULT_MCP_CONFIG } from '$lib/constants' ;
27+ import McpLogo from '$lib/components/app/mcp/McpLogo.svelte' ;
2728import { SETTINGS_KEYS } from './settings-keys' ;
2829import { ROUTES , SETTINGS_SECTION_SLUGS } from './routes' ;
2930import { TITLE_GENERATION } from './title-generation' ;
@@ -35,6 +36,7 @@ export const SETTINGS_SECTION_TITLES = {
3536 PENALTIES : 'Penalties' ,
3637 AGENTIC : 'Agentic' ,
3738 TOOLS : 'Tools' ,
39+ MCP : 'MCP' ,
3840 IMPORT_EXPORT : 'Import/Export' ,
3941 DEVELOPER : 'Developer'
4042} as const ;
@@ -657,6 +659,22 @@ const SETTINGS_REGISTRY: Record<string, SettingsSectionEntry> = {
657659 section : SETTINGS_SECTION_SLUGS . DEVELOPER
658660 }
659661 ]
662+ } ,
663+ [ SETTINGS_SECTION_SLUGS . MCP ] : {
664+ title : SETTINGS_SECTION_TITLES . MCP ,
665+ slug : SETTINGS_SECTION_SLUGS . MCP ,
666+ icon : McpLogo ,
667+ settings : [
668+ {
669+ key : SETTINGS_KEYS . MCP_REQUEST_TIMEOUT_SECONDS ,
670+ label : 'Request timeout (seconds)' ,
671+ help : 'Default timeout for individual MCP tool calls. Can be overridden per server.' ,
672+ defaultValue : DEFAULT_MCP_CONFIG . requestTimeoutSeconds ,
673+ type : SettingsFieldType . INPUT ,
674+ section : SETTINGS_SECTION_SLUGS . MCP ,
675+ isPositiveInteger : true
676+ }
677+ ]
660678 }
661679} as const ;
662680
@@ -727,6 +745,7 @@ export const SETTINGS_CHAT_SECTIONS: SettingsSection[] = [
727745 label : s . label ,
728746 type : s . type ,
729747 isExperimental : s . isExperimental ,
748+ isPositiveInteger : s . isPositiveInteger ,
730749 help : s . help ,
731750 options : s . options
732751 } ) )
0 commit comments