-
Notifications
You must be signed in to change notification settings - Fork 7
Update get_tooling_gateway_for_digital_worker #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Also get the platform scope from env similar to dotnet sdk.
There was a problem hiding this 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 updates the tooling gateway URL structure and adds support for environment-based authentication scope configuration.
- Simplified the tooling gateway URL path from
/agentGateway/agentApplicationInstances/{agent_user_id}/mcpServersto/agents/{agent_user_id}/mcpServers - Added support for overriding the PPAPI token scope via the
MCP_PLATFORM_AUTHENTICATION_SCOPEenvironment variable
libraries/microsoft-agents-a365-tooling/microsoft_agents_a365/tooling/utils/utility.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-a365-tooling/microsoft_agents_a365/tooling/utils/utility.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
libraries/microsoft-agents-a365-tooling/microsoft_agents_a365/tooling/utils/utility.py:1
- The copyright header format does not match the required format. It should be '# Copyright (c) Microsoft Corporation.' followed by '# Licensed under the MIT License.' on the next line.
# Copyright (c) Microsoft. All rights reserved.
libraries/microsoft-agents-a365-tooling/microsoft_agents_a365/tooling/utils/utility.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-a365-tooling/microsoft_agents_a365/tooling/utils/utility.py
Show resolved
Hide resolved
libraries/microsoft-agents-a365-tooling/microsoft_agents_a365/tooling/utils/utility.py
Outdated
Show resolved
Hide resolved
Replaced `agent_user_id` with `agent_instance_id` across the codebase to standardize the unique identifier for agents. Updated method signatures, arguments, logging, and validation logic to reflect this change. Aligned token scope handling with the new authentication mechanism by replacing `get_ppapi_token_scope` with `get_mcp_platform_authentication_scope`. Removed legacy token scopes and updated constants accordingly. Modified tooling gateway URL generation to use `agent_instance_id`. Updated documentation, examples, and logging to ensure consistency with the new identifier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/microsoft_agents_a365/tooling/extensions/azureaifoundry/services/mcp_tool_registration_service.py:27
- The imports reference 'microsoft_kairo' which appears to be a legacy reference. These should be updated to use the appropriate 'microsoft_agents_a365' package imports instead, consistent with the rest of the codebase.
from microsoft_kairo.tooling.common.services.mcp_tool_server_configuration_service import (
McpToolServerConfigurationService,
)
from microsoft_kairo.tooling.common.utils.constants import Constants
...soft_agents_a365/tooling/extensions/agentframework/services/mcp_tool_registration_service.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (2)
libraries/microsoft-agents-a365-tooling/microsoft_agents_a365/tooling/utils/init.py:4
- The docstring contains the legacy 'Kairo' keyword. It should be updated to reflect the current product name.
Utility modules for the Kairo SDK Tooling Common components.
libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/microsoft_agents_a365/tooling/extensions/azureaifoundry/services/mcp_tool_registration_service.py:27
- The imports reference
microsoft_kairomodule which appears to be a legacy package name. These imports should be updated to use the correct package name (likelymicrosoft_agents_a365.toolingbased on other files).
from microsoft_kairo.tooling.common.services.mcp_tool_server_configuration_service import (
McpToolServerConfigurationService,
)
from microsoft_kairo.tooling.common.utils.constants import Constants
Also get the platform scope from env similar to dotnet sdk.