Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_tooling_gateway_for_digital_worker(agent_user_id: str) -> str:
str: The tooling gateway URL for the digital worker.
"""
# The endpoint needs to be updated based on the environment (prod, dev, etc.)
return f"{_get_mcp_platform_base_url()}/agentGateway/agentApplicationInstances/{agent_user_id}/mcpServers"
return f"{_get_mcp_platform_base_url()}/agents/{agent_user_id}/mcpServers"
Comment thread
sellakumaran marked this conversation as resolved.
Outdated


def get_mcp_base_url() -> str:
Expand Down Expand Up @@ -136,6 +136,11 @@ def get_ppapi_token_scope():
"""
environment = _get_current_environment().lower()

envScope = os.getenv("MCP_PLATFORM_AUTHENTICATION_SCOPE", "")
Comment thread
pontemonti marked this conversation as resolved.

if envScope:
return envScope

if environment == "development":
Comment thread
sellakumaran marked this conversation as resolved.
Outdated
return [PPAPI_TEST_TOKEN_SCOPE + "/.default"]
else:
Expand Down
Loading