microsoft-agents-a365-tooling-extensions-agentframework 0.1.0.dev30__py3-none-any.whl → 0.2.1.dev0__py3-none-any.whl

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.
@@ -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
  Agent 365 Tooling Agent Framework Extensions
@@ -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
  Services module for Agent Framework tooling.
@@ -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
  from typing import Optional, List, Any, Union
4
5
  import logging
@@ -13,6 +14,7 @@ from microsoft_agents_a365.runtime.utility import Utility
13
14
  from microsoft_agents_a365.tooling.services.mcp_tool_server_configuration_service import (
14
15
  McpToolServerConfigurationService,
15
16
  )
17
+ from microsoft_agents_a365.tooling.models import ToolOptions
16
18
  from microsoft_agents_a365.tooling.utils.constants import Constants
17
19
 
18
20
  from microsoft_agents_a365.tooling.utils.utility import (
@@ -28,6 +30,8 @@ class McpToolRegistrationService:
28
30
  tool servers with Agent Framework agents.
29
31
  """
30
32
 
33
+ _orchestrator_name: str = "AgentFramework"
34
+
31
35
  def __init__(self, logger: Optional[logging.Logger] = None):
32
36
  """
33
37
  Initialize the MCP Tool Registration Service for Agent Framework.
@@ -77,10 +81,13 @@ class McpToolRegistrationService:
77
81
 
78
82
  self._logger.info(f"Listing MCP tool servers for agent {agentic_app_id}")
79
83
 
84
+ options = ToolOptions(orchestrator_name=self._orchestrator_name)
85
+
80
86
  # Get MCP server configurations
81
87
  server_configs = await self._mcp_server_configuration_service.list_tool_servers(
82
88
  agentic_app_id=agentic_app_id,
83
89
  auth_token=auth_token,
90
+ options=options,
84
91
  )
85
92
 
86
93
  self._logger.info(f"Loaded {len(server_configs)} MCP server configurations")
@@ -90,14 +97,10 @@ class McpToolRegistrationService:
90
97
 
91
98
  # Add servers as MCPStreamableHTTPTool instances
92
99
  for config in server_configs:
93
- try:
94
- server_url = getattr(config, "server_url", None) or getattr(
95
- config, "mcp_server_unique_name", None
96
- )
97
- if not server_url:
98
- self._logger.warning(f"MCP server config missing server_url: {config}")
99
- continue
100
+ # Use mcp_server_name if available (not None or empty), otherwise fall back to mcp_server_unique_name
101
+ server_name = config.mcp_server_name or config.mcp_server_unique_name
100
102
 
103
+ try:
101
104
  # Prepare auth headers
102
105
  headers = {}
103
106
  if auth_token:
@@ -105,18 +108,20 @@ class McpToolRegistrationService:
105
108
  f"{Constants.Headers.BEARER_PREFIX} {auth_token}"
106
109
  )
107
110
 
108
- server_name = getattr(config, "mcp_server_name", "Unknown")
111
+ headers[Constants.Headers.USER_AGENT] = Utility.get_user_agent_header(
112
+ self._orchestrator_name
113
+ )
109
114
 
110
115
  # Create and configure MCPStreamableHTTPTool
111
116
  mcp_tools = MCPStreamableHTTPTool(
112
117
  name=server_name,
113
- url=server_url,
118
+ url=config.url,
114
119
  headers=headers,
115
120
  description=f"MCP tools from {server_name}",
116
121
  )
117
122
 
118
123
  # Let Agent Framework handle the connection automatically
119
- self._logger.info(f"Created MCP plugin for '{server_name}' at {server_url}")
124
+ self._logger.info(f"Created MCP plugin for '{server_name}' at {config.url}")
120
125
 
121
126
  all_tools.append(mcp_tools)
122
127
  self._connected_servers.append(mcp_tools)
@@ -124,7 +129,6 @@ class McpToolRegistrationService:
124
129
  self._logger.info(f"Added MCP plugin '{server_name}' to agent tools")
125
130
 
126
131
  except Exception as tool_ex:
127
- server_name = getattr(config, "mcp_server_name", "Unknown")
128
132
  self._logger.warning(
129
133
  f"Failed to create MCP plugin for {server_name}: {tool_ex}"
130
134
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-a365-tooling-extensions-agentframework
3
- Version: 0.1.0.dev30
3
+ Version: 0.2.1.dev0
4
4
  Summary: Agent Framework integration tools for Agent 365 AI agent tooling
5
5
  Author-email: Microsoft <support@microsoft.com>
6
6
  License: MIT
@@ -55,7 +55,7 @@ For usage examples and detailed documentation, see the [Tooling documentation](h
55
55
  For issues, questions, or feedback:
56
56
 
57
57
  - File issues in the [GitHub Issues](https://github.com/microsoft/Agent365-python/issues) section
58
- - See the [main documentation](../../../README.md) for more information
58
+ - See the [main documentation](../../README.md) for more information
59
59
 
60
60
  ## Trademarks
61
61
 
@@ -65,4 +65,4 @@ For issues, questions, or feedback:
65
65
 
66
66
  Copyright (c) Microsoft Corporation. All rights reserved.
67
67
 
68
- Licensed under the MIT License - see the [LICENSE](../../../LICENSE.md) file for details.
68
+ Licensed under the MIT License - see the [LICENSE](../../LICENSE.md) file for details.
@@ -0,0 +1,7 @@
1
+ microsoft_agents_a365/tooling/extensions/agentframework/__init__.py,sha256=f_v_Uqi-rG_ramG91wrw-u8hzANbn5qS2wbp62S_bNw,905
2
+ microsoft_agents_a365/tooling/extensions/agentframework/services/__init__.py,sha256=Xw_MZvaAiiPCFnTTU59FnG6AS6FxVj5qN2vxazB1I50,363
3
+ microsoft_agents_a365/tooling/extensions/agentframework/services/mcp_tool_registration_service.py,sha256=DM58nE_9wdirA4YDeR6SpdSbt48NtALz1qqhF91lZ5Q,6353
4
+ microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0.dist-info/METADATA,sha256=PMGWjKcpyurLNuRmU__l5PH2one07s4gLxB3peib40Y,3492
5
+ microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
6
+ microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0.dist-info/top_level.txt,sha256=m90AvzRnjbL6fpi20mzOj6HUVkR2LWuf2JuXm4LL9LU,27
7
+ microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +0,0 @@
1
- microsoft_agents_a365/tooling/extensions/agentframework/__init__.py,sha256=IPaHio1uop6iVK6KYeI5ERhTm3uPQRO6__21SYQqpQ4,880
2
- microsoft_agents_a365/tooling/extensions/agentframework/services/__init__.py,sha256=TcxL8IstydK8bZ2H3hFVKRvO67VYDqY7JOTBEA9ylXc,338
3
- microsoft_agents_a365/tooling/extensions/agentframework/services/mcp_tool_registration_service.py,sha256=Ic_yrUMQZs-Vc5IcSKMMdZCX1oZVJZw1EkDzyX14Q2c,6237
4
- microsoft_agents_a365_tooling_extensions_agentframework-0.1.0.dev30.dist-info/METADATA,sha256=IzRe26oGb8gaO7wUm6z_jIs7fEKxDiiFa0j7W3A2d3A,3499
5
- microsoft_agents_a365_tooling_extensions_agentframework-0.1.0.dev30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- microsoft_agents_a365_tooling_extensions_agentframework-0.1.0.dev30.dist-info/top_level.txt,sha256=G3c2_4sy5_EM_BWO67SbK2tKj4G8XFn-QXRbh8g9Lgk,22
7
- microsoft_agents_a365_tooling_extensions_agentframework-0.1.0.dev30.dist-info/RECORD,,