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

Add MCP adapters to autogen-ext #5251

Merged
merged 17 commits into from
Feb 9, 2025
Merged

Add MCP adapters to autogen-ext #5251

merged 17 commits into from
Feb 9, 2025

Conversation

richard-gyiko
Copy link
Contributor

@richard-gyiko richard-gyiko commented Jan 29, 2025

Why are these changes needed?

The increasing popularity of MCP decided to migrate the community extension into the autogen-ext package.

Related issue number

Checks

@richard-gyiko richard-gyiko changed the title Add Stdio and SSE based MCP tool adapters Add MCP adapters to autogen-ext Jan 29, 2025
@richard-gyiko
Copy link
Contributor Author

@microsoft-github-policy-service agree

@richard-gyiko richard-gyiko marked this pull request as ready for review January 30, 2025 09:08
@victordibia
Copy link
Collaborator

Hi @richard-gyiko ,

Thanks for this PR ..
Can you provide some instructions on how to test with this a local MCP server? The example you have hints at some url with an mcp server and translate tool capabilities. Is there a clear way to set it up and test locally?
I tried setting up a sample mcp server (and could explore it locally using the mcp inspector), but it was unclear how to use it with the tool interface provided here.

@richard-gyiko
Copy link
Contributor Author

Hi @victordibia ,

I've updated the sample on the community repo which now includes the fetch and the file system MCP server tools:
https://github.com/richard-gyiko/autogen-ext-mcp/tree/main/samples

MCP Server installations and usage is covered in the README and the sample code.

Hope it gives sufficient amount of information. If not, please let me know.

Copy link

codecov bot commented Feb 9, 2025

Codecov Report

Attention: Patch coverage is 84.12698% with 20 lines in your changes missing coverage. Please review.

Project coverage is 78.33%. Comparing base (7fc7f38) to head (1e4e074).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../autogen-ext/src/autogen_ext/tools/mcp/_factory.py 38.46% 8 Missing ⚠️
.../autogen-ext/src/autogen_ext/tools/mcp/_session.py 50.00% 8 Missing ⚠️
...ges/autogen-ext/src/autogen_ext/tools/mcp/_base.py 90.47% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5251      +/-   ##
==========================================
+ Coverage   78.25%   78.33%   +0.08%     
==========================================
  Files         158      165       +7     
  Lines        9658     9783     +125     
==========================================
+ Hits         7558     7664     +106     
- Misses       2100     2119      +19     
Flag Coverage Δ
unittests 78.33% <84.12%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ekzhu
Copy link
Collaborator

ekzhu commented Feb 9, 2025

Could you also create a sample under python/samples to showcase a scenario, in a separate PR? E.g., chatting with a Git repo agent using the Git server.

@ekzhu ekzhu enabled auto-merge (squash) February 9, 2025 05:11
@ekzhu ekzhu merged commit 5308b76 into microsoft:main Feb 9, 2025
62 checks passed
@richard-gyiko
Copy link
Contributor Author

Could you also create a sample under python/samples to showcase a scenario, in a separate PR? E.g., chatting with a Git repo agent using the Git server.

Sure, leave it to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants