Browse Source

Use cached MCP server URL in HttpClientService

Replaces the hardcoded localhost URL with the cached server URL in GetMcpServerUrlAsync, enabling dynamic server address resolution.
pull/24677/head
Mansur Besleney 3 weeks ago
parent
commit
9cb407de7c
  1. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/McpHttpClientService.cs

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/McpHttpClientService.cs

@ -48,7 +48,7 @@ public class McpHttpClientService : ITransientDependency
private async Task<string> GetMcpServerUrlAsync()
{
return "http://localhost:5100";//await _cachedServerUrlLazy.Value;
return await _cachedServerUrlLazy.Value;
}
private async Task<string> GetMcpServerUrlInternalAsync()

Loading…
Cancel
Save