microsoft-agents-a365-tooling-extensions-agentframework 0.2.0.dev5__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_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/PKG-INFO +3 -1
  2. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/microsoft_agents_a365/tooling/extensions/agentframework/__init__.py +2 -1
  3. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/microsoft_agents_a365/tooling/extensions/agentframework/services/__init__.py +2 -1
  4. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/microsoft_agents_a365/tooling/extensions/agentframework/services/mcp_tool_registration_service.py +16 -12
  5. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/microsoft_agents_a365_tooling_extensions_agentframework.egg-info/PKG-INFO +3 -1
  6. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/microsoft_agents_a365_tooling_extensions_agentframework.egg-info/SOURCES.txt +3 -0
  7. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/microsoft_agents_a365_tooling_extensions_agentframework.egg-info/top_level.txt +1 -0
  8. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/pyproject.toml +4 -0
  9. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/setup.py +1 -1
  10. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/README.md +0 -0
  11. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/microsoft_agents_a365_tooling_extensions_agentframework.egg-info/dependency_links.txt +0 -0
  12. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-0.2.1.dev0}/microsoft_agents_a365_tooling_extensions_agentframework.egg-info/requires.txt +0 -0
  13. {microsoft_agents_a365_tooling_extensions_agentframework-0.2.0.dev5 → microsoft_agents_a365_tooling_extensions_agentframework-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-agentframework
3
- Version: 0.2.0.dev5
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
@@ -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: microsoft-agents-hosting-core<0.6.0,>=0.4.0
23
24
  Requires-Dist: agent-framework-azure-ai>=1.0.0b251114
@@ -32,6 +33,7 @@ Requires-Dist: mypy>=1.0.0; extra == "dev"
32
33
  Provides-Extra: test
33
34
  Requires-Dist: pytest>=7.0.0; extra == "test"
34
35
  Requires-Dist: pytest-asyncio>=0.21.0; extra == "test"
36
+ Dynamic: license-file
35
37
 
36
38
  # microsoft-agents-a365-tooling-extensions-agentframework
37
39
 
@@ -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.2.0.dev5
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
@@ -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: microsoft-agents-hosting-core<0.6.0,>=0.4.0
23
24
  Requires-Dist: agent-framework-azure-ai>=1.0.0b251114
@@ -32,6 +33,7 @@ Requires-Dist: mypy>=1.0.0; extra == "dev"
32
33
  Provides-Extra: test
33
34
  Requires-Dist: pytest>=7.0.0; extra == "test"
34
35
  Requires-Dist: pytest-asyncio>=0.21.0; extra == "test"
36
+ Dynamic: license-file
35
37
 
36
38
  # microsoft-agents-a365-tooling-extensions-agentframework
37
39
 
@@ -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/agentframework/__init__.py
5
8
  microsoft_agents_a365/tooling/extensions/agentframework/services/__init__.py
6
9
  microsoft_agents_a365/tooling/extensions/agentframework/services/mcp_tool_registration_service.py
@@ -67,6 +67,10 @@ target-version = ['py311']
67
67
  line-length = 100
68
68
  target-version = "py311"
69
69
 
70
+ [tool.ruff.lint.flake8-copyright]
71
+ notice-rgx = "# Copyright \\(c\\) Microsoft Corporation\\.\\r?\\n# Licensed under the MIT License\\."
72
+ min-file-size = 1
73
+
70
74
  [tool.mypy]
71
75
  python_version = "3.11"
72
76
  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)