Skip to content

Remove Environment Check in GetMCPBaseUrl - #144

Merged
Jesus Daniel Terrazas (JesuTerraz) merged 2 commits into
mainfrom
users/jterrazas/fix-mcp-base-url
Jan 10, 2026
Merged

Remove Environment Check in GetMCPBaseUrl#144
Jesus Daniel Terrazas (JesuTerraz) merged 2 commits into
mainfrom
users/jterrazas/fix-mcp-base-url

Conversation

@JesuTerraz

@JesuTerraz Jesus Daniel Terrazas (JesuTerraz) commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

Remove some legacy code. The base url should be set using the MCP_PLATFORM_ENDPOINT environment variable.

@JesuTerraz
Jesus Daniel Terrazas (JesuTerraz) marked this pull request as ready for review January 9, 2026 20:02
Copilot AI review requested due to automatic review settings January 9, 2026 20:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes legacy development environment handling from the GetMcpBaseUrl() method, simplifying the URL resolution logic. The method now consistently uses the MCP_PLATFORM_ENDPOINT environment variable (or the production default) instead of having special-case logic for development environments.

Key Changes

  • Removed conditional logic that checked for 'development' environment
  • Removed special handling for MOCK_MCP_SERVER_URL environment variable
  • Simplified method to always delegate to getMcpPlatformBaseUrl()

@JesuTerraz
Jesus Daniel Terrazas (JesuTerraz) merged commit ea0ab84 into main Jan 10, 2026
7 checks passed
@JesuTerraz
Jesus Daniel Terrazas (JesuTerraz) deleted the users/jterrazas/fix-mcp-base-url branch January 10, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants