Skip to content

Conversation

@4ndrelim
Copy link
Member

Place configurable URI in Cfg.

Copilot AI review requested due to automatic review settings November 11, 2025 09:38
@4ndrelim 4ndrelim requested a review from Junyi-99 November 11, 2025 09:39
Copy link
Contributor

Copilot AI left a comment

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 refactors the XtraMCP backend configuration by externalizing the hardcoded URI into a configurable environment variable, following the pattern used for other configuration values in the codebase.

  • Moved the XtraMCP server URI from hardcoded string to configuration
  • Added XtraMCPURI field to the Cfg struct with environment variable support
  • Updated the client initialization to use the configurable URI

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/libs/cfg/cfg.go Added XtraMCPURI field to config struct and xtraMCPURI() helper function with environment variable support and default fallback
internal/services/toolkit/client/client.go Updated XtraMCP loader initialization to use configurable URI from cfg instead of hardcoded string

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@Junyi-99 Junyi-99 left a comment

Choose a reason for hiding this comment

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

nice

@4ndrelim 4ndrelim merged commit 3175767 into main Nov 11, 2025
7 checks passed
@4ndrelim 4ndrelim deleted the refactor-mcp-config branch November 11, 2025 13:27
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.

3 participants