Skip to content

Please improve the integration with MEAI and C# MCP SDK. #466

@rwoodley

Description

@rwoodley

Confirm this is a feature request for the .NET library and not the underlying OpenAI API

  • This is a feature request for the .NET library

Describe the feature or improvement you are requesting

In order to get the "The official .NET library for the OpenAI API" to talk to the "official C# SDK for the Model Context Protocol" we have to write ~60 lines of code to convert from OpenAI's ChatToolCall to the argument dictionary expected by the MCP SDK.

It appears this was discussed internally at Microsoft in this PR: #422, and a decision was made there not to better integrate the 2 SDKs. I am requesting to restart this discussion and revisit the decisions made there.

The examples for the MCP SDK indicate that you can use the OpenAI SDK with MEAI, but in fact that is not the case.

The MCP SDK has a nice annotation-driven implementation that eliminates so much boiler plate. But the incompatibility discussed in the above PR basically destroys much of the concise-ness of the MCP SDK's implementation. Perhaps this is not a concern of the authors of the OpenAI SDK, but since both are from Microsoft, smoother integration would be hoped for.

Additional context

No response

Metadata

Metadata

Labels

feature-requestCategory: A new feature or enhancement to an existing feature is being requested.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions