-
Notifications
You must be signed in to change notification settings - Fork 862
MCP/Approvals stabilization #7245
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
Closed
Closed
Changes from 3 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
2daa4b4
Initial plan
Copilot b5dac2d
Rebase
jozkee 052dbe3
Add CompatibilitySuppressions.xml
jozkee 59b5ebb
Fix ToolName->Name and CloneFcc to handle McpServerToolCallContent
Copilot 500863e
Remove duplicate assertion for mcpCallContent.Name
Copilot 0ee1ed6
Update handling of experimental McpServerTool types in sourcegen seri…
jozkee cd19f1e
Remove User prefix from Input contents and rename id -> requestId
jozkee d2d6aa2
Use string.Empty on mcp approval requests
jozkee b81cb33
Remove AuthorizationToken and make Headers settable
jozkee 4515843
Prefix RequestIds with ficc_ on FunctionInvokingChatClient
jozkee 7fe9c0d
Rename serverUrl -> serverAddress to align with string overload
jozkee b5bb861
OpenAI: Revert to use ErrorContent and TextContent
jozkee ca5d7d3
Remove Experimental
jozkee 23eed81
Update CompatibilitySuppressions.xml
jozkee 4cc083c
Cleanup JsonPolymorphic for Stabilized types
jozkee f5e3b37
Update test
jozkee 74a1165
Merge branch 'main' of https://github.com/dotnet/extensions into temp
jozkee 9a950b3
Fix merge errors
jozkee 66e28b1
Revert "Use string.Empty on mcp approval requests"
jozkee 8579d3c
Fix more merge errors
jozkee 2d8bd4f
Improve docs
jozkee 7fd2c4a
Address jsonpolymorphic feedback and improve tests
jozkee 2c5f6fb
McpToolCallApprovalResponseItem conversion to MEAI correctly and impl…
jozkee ced9e36
Fix roundtrip of McpServerToolResultContent.Result
jozkee 89a0ba9
Refactor approval request ID generation in FunctionInvokingChatClient
jozkee d0a56eb
Address documentation feedback for MCP content types and Headers prop…
Copilot f9e7e0e
Apply documentation suggestions from @jozkee
Copilot a43576a
Add remarks to McpServerToolCallContent constructor documentation
Copilot 420502e
Fix case-insensitive Bearer token extraction and add test, fix MakeAp…
Copilot ec9ebec
Trim both ends of header value and allow flexible whitespace after Be…
Copilot 6127a72
Address feedback
jozkee 80b4e96
Merge branch 'main' of https://github.com/dotnet/extensions into copi…
jozkee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
214 changes: 214 additions & 0 deletions
214
src/Libraries/Microsoft.Extensions.AI.Abstractions/CompatibilitySuppressions.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,214 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/apicompat/overview --> | ||
| <Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
| <Suppression> | ||
| <DiagnosticId>CP0001</DiagnosticId> | ||
| <Target>T:Microsoft.Extensions.AI.McpServerToolApprovalRequestContent</Target> | ||
| <Left>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0001</DiagnosticId> | ||
| <Target>T:Microsoft.Extensions.AI.McpServerToolApprovalResponseContent</Target> | ||
| <Left>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolCallContent.get_ToolName</Target> | ||
| <Left>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolCallContent.get_Arguments</Target> | ||
| <Left>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolResultContent.get_Output</Target> | ||
| <Left>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolResultContent.set_Output(System.Collections.Generic.IList{Microsoft.Extensions.AI.AIContent})</Target> | ||
| <Left>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net462/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0001</DiagnosticId> | ||
| <Target>T:Microsoft.Extensions.AI.McpServerToolApprovalRequestContent</Target> | ||
| <Left>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0001</DiagnosticId> | ||
| <Target>T:Microsoft.Extensions.AI.McpServerToolApprovalResponseContent</Target> | ||
| <Left>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolCallContent.get_ToolName</Target> | ||
| <Left>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolCallContent.get_Arguments</Target> | ||
| <Left>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolResultContent.get_Output</Target> | ||
| <Left>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolResultContent.set_Output(System.Collections.Generic.IList{Microsoft.Extensions.AI.AIContent})</Target> | ||
| <Left>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/netstandard2.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0001</DiagnosticId> | ||
| <Target>T:Microsoft.Extensions.AI.McpServerToolApprovalRequestContent</Target> | ||
| <Left>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0001</DiagnosticId> | ||
| <Target>T:Microsoft.Extensions.AI.McpServerToolApprovalResponseContent</Target> | ||
| <Left>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolCallContent.get_ToolName</Target> | ||
| <Left>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolCallContent.get_Arguments</Target> | ||
| <Left>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolResultContent.get_Output</Target> | ||
| <Left>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolResultContent.set_Output(System.Collections.Generic.IList{Microsoft.Extensions.AI.AIContent})</Target> | ||
| <Left>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net8.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0001</DiagnosticId> | ||
| <Target>T:Microsoft.Extensions.AI.McpServerToolApprovalRequestContent</Target> | ||
| <Left>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0001</DiagnosticId> | ||
| <Target>T:Microsoft.Extensions.AI.McpServerToolApprovalResponseContent</Target> | ||
| <Left>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolCallContent.get_ToolName</Target> | ||
| <Left>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolCallContent.get_Arguments</Target> | ||
| <Left>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolResultContent.get_Output</Target> | ||
| <Left>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolResultContent.set_Output(System.Collections.Generic.IList{Microsoft.Extensions.AI.AIContent})</Target> | ||
| <Left>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net9.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0001</DiagnosticId> | ||
| <Target>T:Microsoft.Extensions.AI.McpServerToolApprovalRequestContent</Target> | ||
| <Left>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0001</DiagnosticId> | ||
| <Target>T:Microsoft.Extensions.AI.McpServerToolApprovalResponseContent</Target> | ||
| <Left>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolCallContent.get_ToolName</Target> | ||
| <Left>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolCallContent.get_Arguments</Target> | ||
| <Left>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolResultContent.get_Output</Target> | ||
| <Left>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| <Suppression> | ||
| <DiagnosticId>CP0002</DiagnosticId> | ||
| <Target>M:Microsoft.Extensions.AI.McpServerToolResultContent.set_Output(System.Collections.Generic.IList{Microsoft.Extensions.AI.AIContent})</Target> | ||
| <Left>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Left> | ||
| <Right>lib/net10.0/Microsoft.Extensions.AI.Abstractions.dll</Right> | ||
| <IsBaselineSuppression>true</IsBaselineSuppression> | ||
| </Suppression> | ||
| </Suppressions> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
...ries/Microsoft.Extensions.AI.Abstractions/Contents/McpServerToolApprovalRequestContent.cs
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...ies/Microsoft.Extensions.AI.Abstractions/Contents/McpServerToolApprovalResponseContent.cs
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.