Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Add initial MCP Connector Version #10778

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

nmoeller
Copy link
Contributor

@nmoeller nmoeller commented Mar 4, 2025

Motivation and Context

With MCP getting more and more popular, i thought it's a cool idea to have plugins loaded and executed remotely with Semantic Kernel.

Description

What is included ?

  • Sample on how to use a MCP Server with Semantic Kernel
  • New Connector that can read Tools from the MCP Server
  • The Connector creates a Plugin with the corresponding MCP Tools
  • Connection can be done via stdio & sse

What is not included ?

  • Loading of Resources, Prompts etc.
  • Handling Authentication to the MCP Server

What needs to be done ?

  • Load MCP Tools as Plugins
  • Enhance Parameter Parsing between KernelParameters and MCP Tool Parameters
  • Add Unit Tests
  • Add Integration Tests

Contribution Checklist

@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Mar 4, 2025
@github-actions github-actions bot changed the title Add initial MCP Connector Version Python: Add initial MCP Connector Version Mar 4, 2025
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Mar 4, 2025

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
semantic_kernel/connectors/mcp
   mcp_manager.py23230%2–56
   mcp_server_settings.py25964%19–28, 41, 50
semantic_kernel/functions
   kernel_plugin.py185896%399–401, 419, 422, 435, 460, 481, 506
TOTAL19639258587% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3207 5 💤 0 ❌ 0 🔥 1m 40s ⏱️

@eavanvalkenburg
Copy link
Member

@markwallace-microsoft would be good to get your thought on this, compared to dotnet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants