microsoft-agents-a365-tooling-extensions-azureaifoundry 0.1.0.dev30__tar.gz → 0.2.1.dev0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (13) hide show
  1. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/PKG-INFO +5 -3
  2. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/README.md +2 -2
  3. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/microsoft_agents_a365/tooling/extensions/azureaifoundry/services/__init__.py +2 -1
  4. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/microsoft_agents_a365/tooling/extensions/azureaifoundry/services/mcp_tool_registration_service.py +15 -3
  5. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/microsoft_agents_a365_tooling_extensions_azureaifoundry.egg-info/PKG-INFO +5 -3
  6. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/microsoft_agents_a365_tooling_extensions_azureaifoundry.egg-info/SOURCES.txt +3 -0
  7. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/microsoft_agents_a365_tooling_extensions_azureaifoundry.egg-info/top_level.txt +1 -0
  8. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/pyproject.toml +4 -0
  9. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/setup.py +1 -1
  10. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/microsoft_agents_a365/tooling/extensions/azureaifoundry/__init__.py +0 -0
  11. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/microsoft_agents_a365_tooling_extensions_azureaifoundry.egg-info/dependency_links.txt +0 -0
  12. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/microsoft_agents_a365_tooling_extensions_azureaifoundry.egg-info/requires.txt +0 -0
  13. {microsoft_agents_a365_tooling_extensions_azureaifoundry-0.1.0.dev30 → microsoft_agents_a365_tooling_extensions_azureaifoundry-0.2.1.dev0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-a365-tooling-extensions-azureaifoundry
3
- Version: 0.1.0.dev30
3
+ Version: 0.2.1.dev0
4
4
  Summary: Azure AI Foundry integration for Agent 365 Tooling SDK
5
5
  Author-email: Microsoft <support@microsoft.com>
6
6
  License: MIT
@@ -18,6 +18,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
18
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
19
  Requires-Python: >=3.11
20
20
  Description-Content-Type: text/markdown
21
+ License-File: LICENSE
21
22
  Requires-Dist: microsoft-agents-a365-tooling>=0.0.0
22
23
  Requires-Dist: azure-ai-projects>=2.0.0b1
23
24
  Requires-Dist: azure-ai-agents>=1.0.0b251001
@@ -31,6 +32,7 @@ Requires-Dist: mypy>=1.0.0; extra == "dev"
31
32
  Provides-Extra: test
32
33
  Requires-Dist: pytest>=7.0.0; extra == "test"
33
34
  Requires-Dist: pytest-asyncio>=0.21.0; extra == "test"
35
+ Dynamic: license-file
34
36
 
35
37
  # microsoft-agents-a365-tooling-extensions-azureaifoundry
36
38
 
@@ -54,7 +56,7 @@ For usage examples and detailed documentation, see the [Tooling documentation](h
54
56
  For issues, questions, or feedback:
55
57
 
56
58
  - File issues in the [GitHub Issues](https://github.com/microsoft/Agent365-python/issues) section
57
- - See the [main documentation](../../../README.md) for more information
59
+ - See the [main documentation](../../README.md) for more information
58
60
 
59
61
  ## Trademarks
60
62
 
@@ -64,4 +66,4 @@ For issues, questions, or feedback:
64
66
 
65
67
  Copyright (c) Microsoft Corporation. All rights reserved.
66
68
 
67
- Licensed under the MIT License - see the [LICENSE](../../../LICENSE.md) file for details.
69
+ Licensed under the MIT License - see the [LICENSE](../../LICENSE.md) file for details.
@@ -20,7 +20,7 @@ For usage examples and detailed documentation, see the [Tooling documentation](h
20
20
  For issues, questions, or feedback:
21
21
 
22
22
  - File issues in the [GitHub Issues](https://github.com/microsoft/Agent365-python/issues) section
23
- - See the [main documentation](../../../README.md) for more information
23
+ - See the [main documentation](../../README.md) for more information
24
24
 
25
25
  ## Trademarks
26
26
 
@@ -30,4 +30,4 @@ For issues, questions, or feedback:
30
30
 
31
31
  Copyright (c) Microsoft Corporation. All rights reserved.
32
32
 
33
- Licensed under the MIT License - see the [LICENSE](../../../LICENSE.md) file for details.
33
+ Licensed under the MIT License - see the [LICENSE](../../LICENSE.md) file for details.
@@ -1,4 +1,5 @@
1
- # Copyright (c) Microsoft. All rights reserved.
1
+ # Copyright (c) Microsoft Corporation.
2
+ # Licensed under the MIT License.
2
3
 
3
4
  """
4
5
  Azure Foundry Services Module.
@@ -1,4 +1,5 @@
1
- # Copyright (c) Microsoft. All rights reserved.
1
+ # Copyright (c) Microsoft Corporation.
2
+ # Licensed under the MIT License.
2
3
 
3
4
  """
4
5
  MCP Tool Registration Service implementation for Azure Foundry.
@@ -21,6 +22,7 @@ from microsoft_agents_a365.runtime.utility import Utility
21
22
  from microsoft_agents_a365.tooling.services.mcp_tool_server_configuration_service import (
22
23
  McpToolServerConfigurationService,
23
24
  )
25
+ from microsoft_agents_a365.tooling.models import ToolOptions
24
26
  from microsoft_agents_a365.tooling.utils.constants import Constants
25
27
  from microsoft_agents_a365.tooling.utils.utility import get_mcp_platform_authentication_scope
26
28
 
@@ -45,6 +47,8 @@ class McpToolRegistrationService:
45
47
  >>> service.add_tool_servers_to_agent(project_client, agent_id, token)
46
48
  """
47
49
 
50
+ _orchestrator_name: str = "AzureAIFoundry"
51
+
48
52
  def __init__(
49
53
  self,
50
54
  logger: Optional[logging.Logger] = None,
@@ -139,9 +143,10 @@ class McpToolRegistrationService:
139
143
  return ([], None)
140
144
 
141
145
  # Get MCP server configurations
146
+ options = ToolOptions(orchestrator_name=self._orchestrator_name)
142
147
  try:
143
148
  servers = await self._mcp_server_configuration_service.list_tool_servers(
144
- agentic_app_id, auth_token
149
+ agentic_app_id, auth_token, options
145
150
  )
146
151
  except Exception as ex:
147
152
  self._logger.error(
@@ -174,8 +179,11 @@ class McpToolRegistrationService:
174
179
  else server.mcp_server_name
175
180
  )
176
181
 
182
+ # Use the URL from server (always populated by the configuration service)
183
+ server_url = server.url
184
+
177
185
  # Create MCP tool using Azure Foundry SDK
178
- mcp_tool = McpTool(server_label=server_label, server_url=server.mcp_server_unique_name)
186
+ mcp_tool = McpTool(server_label=server_label, server_url=server_url)
179
187
 
180
188
  # Configure the tool
181
189
  mcp_tool.set_approval_mode("never")
@@ -189,6 +197,10 @@ class McpToolRegistrationService:
189
197
  )
190
198
  mcp_tool.update_headers(Constants.Headers.AUTHORIZATION, header_value)
191
199
 
200
+ mcp_tool.update_headers(
201
+ Constants.Headers.USER_AGENT, Utility.get_user_agent_header(self._orchestrator_name)
202
+ )
203
+
192
204
  # Add to collections
193
205
  tool_definitions.extend(mcp_tool.definitions)
194
206
  if mcp_tool.resources and mcp_tool.resources.mcp:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-a365-tooling-extensions-azureaifoundry
3
- Version: 0.1.0.dev30
3
+ Version: 0.2.1.dev0
4
4
  Summary: Azure AI Foundry integration for Agent 365 Tooling SDK
5
5
  Author-email: Microsoft <support@microsoft.com>
6
6
  License: MIT
@@ -18,6 +18,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
18
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
19
  Requires-Python: >=3.11
20
20
  Description-Content-Type: text/markdown
21
+ License-File: LICENSE
21
22
  Requires-Dist: microsoft-agents-a365-tooling>=0.0.0
22
23
  Requires-Dist: azure-ai-projects>=2.0.0b1
23
24
  Requires-Dist: azure-ai-agents>=1.0.0b251001
@@ -31,6 +32,7 @@ Requires-Dist: mypy>=1.0.0; extra == "dev"
31
32
  Provides-Extra: test
32
33
  Requires-Dist: pytest>=7.0.0; extra == "test"
33
34
  Requires-Dist: pytest-asyncio>=0.21.0; extra == "test"
35
+ Dynamic: license-file
34
36
 
35
37
  # microsoft-agents-a365-tooling-extensions-azureaifoundry
36
38
 
@@ -54,7 +56,7 @@ For usage examples and detailed documentation, see the [Tooling documentation](h
54
56
  For issues, questions, or feedback:
55
57
 
56
58
  - File issues in the [GitHub Issues](https://github.com/microsoft/Agent365-python/issues) section
57
- - See the [main documentation](../../../README.md) for more information
59
+ - See the [main documentation](../../README.md) for more information
58
60
 
59
61
  ## Trademarks
60
62
 
@@ -64,4 +66,4 @@ For issues, questions, or feedback:
64
66
 
65
67
  Copyright (c) Microsoft Corporation. All rights reserved.
66
68
 
67
- Licensed under the MIT License - see the [LICENSE](../../../LICENSE.md) file for details.
69
+ Licensed under the MIT License - see the [LICENSE](../../LICENSE.md) file for details.
@@ -1,6 +1,9 @@
1
1
  README.md
2
2
  pyproject.toml
3
3
  setup.py
4
+ ../../LICENSE
5
+ docs/../../LICENSE
6
+ microsoft_agents_a365/../../LICENSE
4
7
  microsoft_agents_a365/tooling/extensions/azureaifoundry/__init__.py
5
8
  microsoft_agents_a365/tooling/extensions/azureaifoundry/services/__init__.py
6
9
  microsoft_agents_a365/tooling/extensions/azureaifoundry/services/mcp_tool_registration_service.py
@@ -66,6 +66,10 @@ target-version = ['py311']
66
66
  line-length = 100
67
67
  target-version = "py311"
68
68
 
69
+ [tool.ruff.lint.flake8-copyright]
70
+ notice-rgx = "# Copyright \\(c\\) Microsoft Corporation\\.\\r?\\n# Licensed under the MIT License\\."
71
+ min-file-size = 1
72
+
69
73
  [tool.mypy]
70
74
  python_version = "3.11"
71
75
  strict = true
@@ -13,7 +13,7 @@ package_version = environ.get("AGENT365_PYTHON_SDK_PACKAGE_VERSION", "0.0.0")
13
13
  helper_path = Path(__file__).parent.parent.parent / "versioning" / "helper"
14
14
  sys.path.insert(0, str(helper_path))
15
15
 
16
- from setup_utils import get_dynamic_dependencies
16
+ from setup_utils import get_dynamic_dependencies # noqa: E402
17
17
 
18
18
  # Use minimum version strategy:
19
19
  # - Internal packages get: >= current_base_version (e.g., >= 0.1.0)