feat: desc

This commit is contained in:
xbingW
2025-04-10 19:33:42 +08:00
parent eeae48affb
commit 66c4e60255

View File

@@ -127,6 +127,7 @@ func RegisterTool[T any, R any](s *MCPServer, tool Tool[T, R]) error {
if err != nil {
return err
}
opts = append(opts, mcp.WithDescription(tool.Description()))
t := mcp.NewTool(tool.Name(),
opts...,
)