From c469e6075fde1aa14f35b246700eac5366085b0a Mon Sep 17 00:00:00 2001 From: Roland Guijt Date: Fri, 24 Apr 2026 10:51:19 +0200 Subject: [PATCH] Mcp demo fix --- IdentityServer/v8/McpDemo/McpDemo.McpServer/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"] }; });