semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Bug: Python - Semantic Kernel 1.35.1 is missing McpTools due to azure-ai-agents 1.1.0

Open karpikpl opened this issue 6 months ago • 6 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. create a new project
uv init
uv add "semantic-kernel[Azure]>=1.35.1" "azure-search-documents >= 11.6.0b4" --prerelease=allow
  1. Import McpTool from azure.ai.agents.models import McpTool

Expected behavior Import works because McpTool was in "azure-ai-agents >= 1.1.0b4"

McpTool is not in azure-ai-agents 1.1.0 released August 5th

Platform

  • Language: [e.g. C#, Python]: Python
  • Source: SK 1.35.1
  • AI model: [e.g. OpenAI:GPT-4o-mini(2024-07-18)] n/a
  • IDE: [e.g. Visual Studio, VS Code] VS Code
  • OS: [e.g. Windows, Mac] Ubuntu WSL

Additional context Add any other context about the problem here.

karpikpl avatar Aug 07 '25 16:08 karpikpl

Although this might be a uv issue. uv installs azure-ai-agents 1.1.0 but pip installs 1.2.0b1

so code with pip install "semantic-kernel[azure]>=1.35.1" worked :/

karpikpl avatar Aug 07 '25 18:08 karpikpl

With uv you may need to run with the --prerelease flag like: uv sync --all-extras --dev -U --prerelease=if-necessary-or-explicit.

moonbox3 avatar Aug 11 '25 02:08 moonbox3

I'm guessing that with the release of azure-ai-agents 1.1.0 the behavior changed, before I had I always had to do --prerelease.

uv sync --all-extras --dev -U --prerelease=if-necessary-or-explicit returns an error

ecause only azure-search-documents<11.6.0b4 is available and semantic-kernel[azure]>=1.35.1 depends on
      azure-search-documents>=11.6.0b4, we can conclude that semantic-kernel[azure]>=1.35.1 cannot be used.
      And because only the following versions of semantic-kernel[azure] are available:
          semantic-kernel[azure]<=1.35.1
          semantic-kernel[azure]==1.35.2
      we can conclude that all of:
          semantic-kernel[azure]>=1.35.1,<1.35.2
          semantic-kernel[azure]>1.35.2
       are incompatible. (1)

I'm not sure how SK can do a stable release while it depends on azure beta packages?

what works is uv sync --prerelease=allow uv run hello.py --prerelease=allow

azure-search-documents is still in beta, and MCP for agents is also only in beta

karpikpl avatar Aug 11 '25 02:08 karpikpl

@karpikpl, not everything in SK is at the "GA" level. We have various components marked as experimental until they're ready for GA. AzureAIAgent is one particular component marked as experimental.

moonbox3 avatar Aug 11 '25 06:08 moonbox3

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Nov 10 '25 02:11 github-actions[bot]

@moonbox3 - We just had another issue where SK pulled a new package, breaking the app.

SK depends on many beta packages:

  • "azure-ai-projects >= 1.0.0b12",
  • "azure-ai-agents >= 1.2.0b3"
  • "azure-ai-inference >= 1.0.0b6",
  • "azure-core-tracing-opentelemetry >= 1.0.0b11",
  • "azure-search-documents >= 11.6.0b4",

azure-ai-agents was released with 2.0.0b1 (or similar, it was pulled since then)

my understanding SK -> depending on 1.2.0b3 pulled breaking change package 2.0.0b1 and broke the application

karpikpl avatar Nov 14 '25 15:11 karpikpl