diff --git a/packages/agents-a365-tooling/src/Utility.ts b/packages/agents-a365-tooling/src/Utility.ts index d6955b0..da5c39f 100644 --- a/packages/agents-a365-tooling/src/Utility.ts +++ b/packages/agents-a365-tooling/src/Utility.ts @@ -129,12 +129,6 @@ export class Utility { * @returns The base MCP environments URL. */ public static GetMcpBaseUrl(): string { - const environment = this.getCurrentEnvironment().toLowerCase(); - - if (environment === 'development') { - return process.env.MOCK_MCP_SERVER_URL || 'http://localhost:5309/mcp-mock/agents/servers'; - } - return `${this.getMcpPlatformBaseUrl()}/agents/servers`; } @@ -153,20 +147,6 @@ export class Utility { return `${baseUrl}/${serverName}`; } - /** - * Reads the current environment name from process.env. - * Checks ASPNETCORE_ENVIRONMENT, DOTNET_ENVIRONMENT, and NODE_ENV in that order. - * If none are set this returns the string 'Development'. - * - * @returns The current environment identifier as a string. - */ - private static getCurrentEnvironment(): string { - return process.env.ASPNETCORE_ENVIRONMENT || - process.env.DOTNET_ENVIRONMENT || - process.env.NODE_ENV || - 'Development'; - } - /** * Gets the base URL for MCP platform, defaults to production URL if not set. *