@@ -67,8 +67,8 @@ type Config struct {
6767 Model string `json:"model"`
6868 // Custom provider configurations and model overrides
6969 Provider map [string ]ConfigProvider `json:"provider"`
70- // Control sharing behavior: 'auto' enables automatic sharing, 'disabled' disables
71- // all sharing
70+ // Control sharing behavior:'manual' allows manual sharing via commands , 'auto'
71+ // enables automatic sharing, 'disabled' disables all sharing
7272 Share ConfigShare `json:"share"`
7373 // Theme name to use for the interface
7474 Theme string `json:"theme"`
@@ -206,6 +206,8 @@ type ConfigMcp struct {
206206 Enabled bool `json:"enabled"`
207207 // This field can have the runtime type of [map[string]string].
208208 Environment interface {} `json:"environment"`
209+ // This field can have the runtime type of [map[string]string].
210+ Headers interface {} `json:"headers"`
209211 // URL of the remote MCP server
210212 URL string `json:"url"`
211213 JSON configMcpJSON `json:"-"`
@@ -218,6 +220,7 @@ type configMcpJSON struct {
218220 Command apijson.Field
219221 Enabled apijson.Field
220222 Environment apijson.Field
223+ Headers apijson.Field
221224 URL apijson.Field
222225 raw string
223226 ExtraFields map [string ]apijson.Field
@@ -427,18 +430,19 @@ func (r configProviderModelsLimitJSON) RawJSON() string {
427430 return r .raw
428431}
429432
430- // Control sharing behavior: 'auto' enables automatic sharing, 'disabled' disables
431- // all sharing
433+ // Control sharing behavior:'manual' allows manual sharing via commands , 'auto'
434+ // enables automatic sharing, 'disabled' disables all sharing
432435type ConfigShare string
433436
434437const (
438+ ConfigShareManual ConfigShare = "manual"
435439 ConfigShareAuto ConfigShare = "auto"
436440 ConfigShareDisabled ConfigShare = "disabled"
437441)
438442
439443func (r ConfigShare ) IsKnown () bool {
440444 switch r {
441- case ConfigShareAuto , ConfigShareDisabled :
445+ case ConfigShareManual , ConfigShareAuto , ConfigShareDisabled :
442446 return true
443447 }
444448 return false
@@ -509,9 +513,9 @@ type KeybindsConfig struct {
509513 SessionShare string `json:"session_share,required"`
510514 // Unshare current session
511515 SessionUnshare string `json:"session_unshare,required"`
512- // Switch mode
516+ // Next mode
513517 SwitchMode string `json:"switch_mode,required"`
514- // Switch mode reverse
518+ // Previous Mode
515519 SwitchModeReverse string `json:"switch_mode_reverse,required"`
516520 // List available themes
517521 ThemeList string `json:"theme_list,required"`
@@ -638,7 +642,9 @@ type McpRemoteConfig struct {
638642 // URL of the remote MCP server
639643 URL string `json:"url,required"`
640644 // Enable or disable the MCP server on startup
641- Enabled bool `json:"enabled"`
645+ Enabled bool `json:"enabled"`
646+ // Headers to send with the request
647+ Headers map [string ]string `json:"headers"`
642648 JSON mcpRemoteConfigJSON `json:"-"`
643649}
644650
@@ -647,6 +653,7 @@ type mcpRemoteConfigJSON struct {
647653 Type apijson.Field
648654 URL apijson.Field
649655 Enabled apijson.Field
656+ Headers apijson.Field
650657 raw string
651658 ExtraFields map [string ]apijson.Field
652659}
0 commit comments