Skip to content

Commit 4193a2f

Browse files
jtcorbettandrew-lastmile
authored andcommitted
use the API base URL from settings (lastmile-ai#561)
### TL;DR Updated the `setup_authenticated_client` function to use the API base URL from settings instead of the default constant. This ensures that ENV var substitution works correctly <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Updated API URL configuration to use dynamic settings instead of a hard-coded constant, improving system flexibility and configuration management. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent cb304b9 commit 4193a2f

File tree

1 file changed

+1
-2
lines changed
  • src/mcp_agent/cli/cloud/commands

1 file changed

+1
-2
lines changed

src/mcp_agent/cli/cloud/commands/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from mcp_agent.cli.auth import load_api_key_credentials
77
from mcp_agent.cli.config import settings
88
from mcp_agent.cli.core.api_client import UnauthenticatedError
9-
from mcp_agent.cli.core.constants import DEFAULT_API_BASE_URL
109
from mcp_agent.cli.core.utils import run_async
1110
from mcp_agent.cli.exceptions import CLIError
1211
from mcp_agent.cli.mcp_app.api_client import (
@@ -34,7 +33,7 @@ def setup_authenticated_client() -> MCPAppClient:
3433
retriable=False,
3534
)
3635

37-
return MCPAppClient(api_url=DEFAULT_API_BASE_URL, api_key=effective_api_key)
36+
return MCPAppClient(api_url=settings.API_BASE_URL, api_key=effective_api_key)
3837

3938

4039
def validate_output_format(format: str) -> None:

0 commit comments

Comments
 (0)