diff --git a/IdentityServer/v8/McpDemo/McpDemo.McpServer/Program.cs b/IdentityServer/v8/McpDemo/McpDemo.McpServer/Program.cs index 1e5db1be..472f50d7 100644 --- a/IdentityServer/v8/McpDemo/McpDemo.McpServer/Program.cs +++ b/IdentityServer/v8/McpDemo/McpDemo.McpServer/Program.cs @@ -33,9 +33,9 @@ { options.ResourceMetadata = new() { - Resource = new Uri(serverUrl), - ResourceDocumentation = new Uri("https://docs.example/api/weather"), - AuthorizationServers = { new Uri(inMemoryOAuthServerUrl) }, + Resource = serverUrl, + ResourceDocumentation = "https://docs.example/api/weather", + AuthorizationServers = { inMemoryOAuthServerUrl }, ScopesSupported = ["mcp:tools"] }; });