Skip to content
Discussion options

You must be logged in to vote

Hey @sgandon

Yes, it is possible to configure the MCP server to use different base URLs for various environments like integration, staging, and production—even after the server has been generated.

The key is to externalize the base URL as an environment variable rather than hardcoding it. This way, your server can dynamically pick up the correct URL depending on the environment it's running in.

Here’s a common approach:

  1. Define the base URL as an environment variable in your configuration file or directly in your runtime environment.
  2. Inject this variable into your generated server configuration, possibly through a wrapper script or during the app’s initialization.
  3. If the codebase allows i…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sgandon
Comment options

@harsha-iiiv
Comment options

Answer selected by harsha-iiiv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants