Skip to content

Python: Local MCP tool support for Ollama client (native or OpenAIChatClient compatible) #5456

@chetantoshniwal

Description

@chetantoshniwal

Discussed in #5303

Originally posted by sashanknjs April 16, 2026
Hi,

I am trying to use the MCPStdioTool to integrate my mcp server with my agent using the Ollama client, however, the tool is not being used by the agent to give the response. Does this mean Ollama doesn't support MCPStdioTool? But according to the latest official documentation (https://learn.microsoft.com/en-us/agent-framework/agents/tools/?pivots=programming-language-python), the picture below shows that it is supported. If it is actually supported, how should I use it?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions