@@ -12,8 +12,6 @@ internal class McpCustomHandlerConfigurationProfile : IConfigurationProfile
1212 {
1313 // This feature flag enables MCP (Model Context Protocol) support for custom handlers
1414 // This flag is not required locally, but is required when deploying to Azure environments.
15- private const string McpFeatureFlag = "EnableMcpCustomHandlerPreview" ;
16-
1715 public string Name { get ; } = "mcp-custom-handler" ;
1816
1917 public async Task ApplyAsync ( WorkerRuntime workerRuntime , bool force = false )
@@ -102,19 +100,19 @@ internal async Task ApplyLocalSettingsAsync(WorkerRuntime workerRuntime, bool fo
102100 . Where ( f => ! string . IsNullOrWhiteSpace ( f ) )
103101 . ToList ( ) ;
104102
105- if ( ! flags . Contains ( McpFeatureFlag , StringComparer . OrdinalIgnoreCase ) )
103+ if ( ! flags . Contains ( Constants . EnableMcpCustomHandlerFeatureFlag , StringComparer . OrdinalIgnoreCase ) )
106104 {
107- flags . Add ( McpFeatureFlag ) ;
105+ flags . Add ( Constants . EnableMcpCustomHandlerFeatureFlag ) ;
108106 values [ Constants . AzureWebJobsFeatureFlags ] = string . Join ( "," , flags ) ;
109107 updatedFeatureFlag = true ;
110108
111109 if ( ! hasFlagsKey )
112110 {
113- SetupProgressLogger . Ok ( Constants . LocalSettingsJsonFileName , $ "Added feature flag '{ McpFeatureFlag } '") ;
111+ SetupProgressLogger . Ok ( Constants . LocalSettingsJsonFileName , $ "Added feature flag '{ Constants . EnableMcpCustomHandlerFeatureFlag } '") ;
114112 }
115113 else
116114 {
117- SetupProgressLogger . Ok ( Constants . LocalSettingsJsonFileName , $ "Appended feature flag '{ McpFeatureFlag } '") ;
115+ SetupProgressLogger . Ok ( Constants . LocalSettingsJsonFileName , $ "Appended feature flag '{ Constants . EnableMcpCustomHandlerFeatureFlag } '") ;
118116 }
119117 }
120118
0 commit comments