-
-
Notifications
You must be signed in to change notification settings - Fork 518
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
Mcp #899
Mcp #899
Conversation
conversation add title query
merge latest code
merge latest code
It's a really big PR. We would better have some unit tests to cover these changes. Or split it into multiple small PRs. |
} | ||
|
||
var properties = tool.InputSchema?.Properties; | ||
var required = tool.InputSchema?.Required ?? new List<string>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the list readonly? If yes, just use singleton Array.Empty() here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list not readonly
var isConvMode = conv.IsConversationMode(); | ||
if (!isConvMode) return; | ||
|
||
agent.SecondaryFunctions ??= []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array.Empty
var mcps = agent.McpTools; | ||
foreach (var item in mcps) | ||
{ | ||
var ua = mcpClientManager.Factory.GetClientAsync(item.ServerId).Result; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two async=>sync here, suggest having a async method and do async to sync only in one place
merge with main
1、Json Data Save to State 2、mcpdotnet with source ref
mcpdotnet now is mcp offical sdk
use ModelContextProtocol nuget package replace source ref
No description provided.